摘要: 安装 libgdiplus-devel yum install libgdiplus-devel 如果出现错误 No package libgdiplus-devel available. 原因可能是yum源不支持该安装包 更换yum源为 EPEL yum 源 rpm -ivh https://dl 阅读全文
posted @ 2020-05-22 13:08 冬音 阅读(1821) 评论(0) 推荐(1) 编辑
摘要: 背景: .net core 中默认已经取消可以直接访问图片,因为这样不安全. 导致我们上传的图片无法直接通过url访问. 解决方案: 一: 通过修改项目配置,使可以直接通过url访问.(方法略,可以百度); 二: 图片都通过接口返回,接口里面读取项目的图片,然后返回流; 步骤: 1. 新建.net 阅读全文
posted @ 2020-05-21 01:02 冬音 阅读(2550) 评论(0) 推荐(0) 编辑
摘要: 在新版谷歌浏览器中,默认并没有开启多线程下载,所以,需要我们手动开启,在谷歌浏览器地址栏输入 chrome://flags/ 命令并回车,进入Chrome实验功能设置。 在Search Flags的搜索框里,输入 Parallel downloading 并回车,该选项默认是Default设置,将该 阅读全文
posted @ 2020-05-20 00:12 冬音 阅读(1922) 评论(0) 推荐(0) 编辑
摘要: 首先进入项目所在文件夹,右键git bash (1)查看当前的远程地址 git remote -v (2)删除当前的远程地址 git remote rm origin (3)添加远程地址 git remote add origin (git@...) (*4)首次推代码 git push -u or 阅读全文
posted @ 2020-05-19 10:49 冬音 阅读(2700) 评论(0) 推荐(0) 编辑
摘要: 从ASP.NET Core RC2开始,可以通过注入 IHostingEnvironment 服务对象来取得Web根目录和内容根目录的物理路径,如下所示: using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; name 阅读全文
posted @ 2020-05-17 19:30 冬音 阅读(3664) 评论(1) 推荐(0) 编辑
摘要: 1.json形式 body如下(注意是中括号): [ *, *, * ] postman: fiddler: 2.x-www-form-urlencoded postman: fiddler: 3.服务器端 以MVC为例 阅读全文
posted @ 2020-05-14 15:21 冬音 阅读(12767) 评论(0) 推荐(0) 编辑
摘要: 1.问题 前端报跨域错误,导致页面错误或展示异常等问题,如图 2.原因 CORS,常被大家称之为跨越问题,准确的叫法是跨域资源共享(CORS,Cross-origin resource sharing),是W3C标准,是一种机制,它使用额外的HTTP头来告诉浏览器 让运行在一个 origin (do 阅读全文
posted @ 2020-05-11 11:12 冬音 阅读(4100) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/zhao123/p/12201928.html 阅读全文
posted @ 2020-05-08 01:17 冬音 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 搭建在 IIS 上的 Web API 若长时间不访问,会出现第一次访问耗时较长的现象,这与其调用应用程序池的 Idle Time-out(minutes) 即闲置超时设置有关。默认值为20,修改为0即可。 https://www.cnblogs.com/xunzhiyou/p/10796190.ht 阅读全文
posted @ 2020-05-07 19:23 冬音 阅读(878) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/lindexi/p/8970466.html 阅读全文
posted @ 2020-05-06 23:20 冬音 阅读(436) 评论(0) 推荐(0) 编辑
摘要: journalctl 查看系统日志参数 -f 表示日志跟中-u 指定的是 unit 指定要查看的服务日志,如果不指定的话会显示所有服务的日志 journalctl -f -u 要查看的服务日志 journalctl -f -u etc.service https://www.jianshu.com/ 阅读全文
posted @ 2020-05-05 22:07 冬音 阅读(4626) 评论(0) 推荐(0) 编辑
摘要: <div style="margin:0 auto;width:500px;text-align:left"> </div> https://zhidao.baidu.com/question/488207758.html 阅读全文
posted @ 2020-05-05 18:17 冬音 阅读(2367) 评论(0) 推荐(0) 编辑
摘要: 静态文件要放到wwwroot目录中才能访问 linux服务器部署运行报错 System.Net.Http.HttpRequestException: The SSL connection could not be establ ... 在发布文件 *runtimeconfig.json 中添加配置 阅读全文
posted @ 2020-05-04 23:31 冬音 阅读(964) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/liuhenghui5201/article/details/90720442 阅读全文
posted @ 2020-04-29 12:08 冬音 阅读(109) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/dearzhoubi/p/9842452.html 阅读全文
posted @ 2020-04-27 19:16 冬音 阅读(572) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/m0_37668842/article/details/89138733 https://www.cnblogs.com/jamesvoid/p/11297843.html https://blog.csdn.net/qq_32331073/article 阅读全文
posted @ 2020-04-13 23:59 冬音 阅读(1596) 评论(0) 推荐(0) 编辑
摘要: https://www.jb51.net/article/135130.htm http://www.voidcn.com/article/p-ojoqxonr-bsw.html https://blog.csdn.net/weixin_30340353/article/details/966113 阅读全文
posted @ 2020-04-12 23:21 冬音 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 1.本地编写一个mvc网站 代码编辑器:Visual studio 2017、2019、Visual Code 均可 1)搭建 略. (请自行搜索如何编辑mvc,或看文末参考链接) 2)配置 Program.cs需要配置绑定ip,否则linux服务器上默认localhost公网是访问不到的 publ 阅读全文
posted @ 2020-04-06 21:22 冬音 阅读(753) 评论(0) 推荐(0) 编辑
摘要: CentOS 安装: 方法一: pip install streamlink 方法二(新): apt-get update apt-get install python3-pip pip3 install streamlink 方法三(CentOS): yum update yum install 阅读全文
posted @ 2020-04-05 00:44 冬音 阅读(4494) 评论(0) 推荐(0) 编辑
摘要: <html class="gray"> .gray { -webkit-filter: grayscale(100%); filter: grayscale(100%); -webkit-filter: grey; filter: #808080; } 效果: 深切哀悼抗击新冠肺炎疫情斗争牺牲烈士和 阅读全文
posted @ 2020-04-04 17:21 冬音 阅读(273) 评论(0) 推荐(0) 编辑