09 2019 档案

摘要:(完) 阅读全文
posted @ 2019-09-27 16:14 lishidefengchen 编辑
摘要:block容量的大小直接关系到文件系统存储使用是否合理的问题; 因为每个block只能供一个文件使用,所以如果Linux系统的block容量太大,但系统经常存储的都是小文件那么会很浪费系统磁盘; 但如果block容量太小,那么会导致文件系统中inode记录过多的block编号,这样就又会导致读取效能 阅读全文
posted @ 2019-09-23 18:27 lishidefengchen 编辑
摘要:.netcore项目创建完毕后,会发现项目中有好几个配置文件: appsettings.json appsettings.Development.json appsettings.Production.json 等等自定义的或系统自带的配置文件; 但是当你使用EF的codefirst功能进行更新数据 阅读全文
posted @ 2019-09-23 10:08 lishidefengchen 编辑
摘要:0、买服务 1、安装GIT 2、下载ss脚本 3、运行 4、开启bbr 5、重启reboot 6、验证 附:IP被封情况查询地址:http://t.cn/Ai9IymoR (完) 阅读全文
posted @ 2019-09-18 15:59 lishidefengchen 编辑
摘要:Fiddler里面设置请求头的时候ContentType和Content-Type这两种写法都可以; 这两种写法都可以。 但是在JMeter中必须要用Content-Type才行,如下图所示: (完) 阅读全文
posted @ 2019-09-16 18:28 lishidefengchen 编辑
摘要:一、【LPAD左侧补齐】 LPAD(str,len,padstr) 返回字符串 str, 其左边由字符串padstr 填补到len 字符长度。假如str 的长度大于len, 则返回值被缩短至 len 字符。 二、【RPAD右侧补齐】 RPAD(str,len,padstr) 返回字符串 str, 其 阅读全文
posted @ 2019-09-16 17:44 lishidefengchen 编辑
摘要:grep fail:过滤包含fail的日志内容 阅读全文
posted @ 2019-09-12 10:52 lishidefengchen 编辑
摘要:新建文件docker-clear-log,放在/usr/local/bin/目录下,文件内容如下: 赋予文件相应的权限,我仅仅给了它所有者读写执行的权限,其他人无权限执行: 最后,执行 即可清空相应容器的日志内容。 原文:https://www.axllent.org/docs/view/clear 阅读全文
posted @ 2019-09-12 10:44 lishidefengchen 编辑
摘要:1 fail: Microsoft.AspNetCore.Server.Kestrel[13] 2 Connection id "0HLPN4417RVEM", Request id "0HLPN4417RVEM:00000001": An unhandled exception was thrown by the application. 3 MySql.Data.MySql... 阅读全文
posted @ 2019-09-12 10:30 lishidefengchen 编辑
摘要:文件权限共10个字符,第一个字符表示该文件是【文件夹】或【文件】——如果是字符“d"则表示该文件是文件夹;如果是字符“-”则表示是文件。 后九个字符,三个一组,共三组,分别表示【所有者权限】、【所属组权限】、【其他人的权限】,固定位置固定字符 rwx,分别表示为:r-读取;w-写入;x-执行。对应的 阅读全文
posted @ 2019-09-11 10:11 lishidefengchen 编辑
摘要:more的源码量大约2000行; less的源码量大约27000行; more历史比less久; less功能比more多; 其实本质没啥太大区别,都是为了查看文件方便。 (完) 阅读全文
posted @ 2019-09-10 14:39 lishidefengchen 编辑
摘要:2019-09-09 08:22:08.620 +00:00 [ERR] Connection id "0HLPKVK52H2OU", Request id "0HLPKVK52H2OU:00000001": An unhandled exception was thrown by the application. MySql.Data.MySqlClient.MySqlException (0x 阅读全文
posted @ 2019-09-09 16:43 lishidefengchen 编辑
摘要:最近一段时间,我的英语助教由于个人原因辞职了,平台为我更换了新的助教老师。大概已经更换了一个多星期了吧,还是不太适应,已经习惯了之前老师的声音。挺可惜的,哎,我还真是个念旧的人。。。 阅读全文
posted @ 2019-09-08 17:37 lishidefengchen 编辑
摘要:(完) 阅读全文
posted @ 2019-09-06 11:42 lishidefengchen 编辑
摘要:官网:https://msgpack.org/ 这个序列化的工具是今天看了dudu 的博客后去尝试使用的,果然差距很大。 对同样的对象进行序列化后,发现msgpack的大小仅有通常压缩工具Newtonsoft.Json.Bson压缩后的1/5。 发现新大陆了,哈哈。 (完) 阅读全文
posted @ 2019-09-06 11:20 lishidefengchen 编辑
摘要:https://standardebooks.org/ (完) 阅读全文
posted @ 2019-09-06 10:22 lishidefengchen 编辑
摘要:DROP PROCEDURE IF EXISTS xxxxxx; 阅读全文
posted @ 2019-09-05 17:13 lishidefengchen 编辑
摘要:做了一个动态的GIF来做演示,应该更加直观些。 (完) 阅读全文
posted @ 2019-09-05 10:52 lishidefengchen 编辑
摘要:从日志可以看到,SELinux的Mode已经修改位了permissive = 1,也就是允许模式,但它前面的日志仍然显示的是“denied"。本来我还以为是自己哪里没弄好导致的这个问题,但访问了Gentoo wiki上面的介绍后才知道,它就是这样设计的。 资源: https://wiki.gento 阅读全文
posted @ 2019-09-03 11:38 lishidefengchen 编辑
摘要:systemctl start / stop nginx 阅读全文
posted @ 2019-09-02 18:17 lishidefengchen 编辑
摘要:参考:https://www.jianshu.com/p/b1f573ca50c7 跟着做到,配置nginx访问dotnet core网站时,报错了。 错误如下所示—— 查看nginx的错误日志: cat /var/log/nginx/error.log | more 再查看系统的nginx相关的审 阅读全文
posted @ 2019-09-02 16:35 lishidefengchen 编辑
摘要:CentOS升级到7之后用firewall代替了iptables来设置Linux端口, 下面是具体的设置方法: []:选填 <>:必填 [<zone>]:作用域(block、dmz、drop、external、home、internal、public、trusted、work) <port>:端口号 阅读全文
posted @ 2019-09-02 14:40 lishidefengchen 编辑
摘要:type nul> 123.txt 阅读全文
posted @ 2019-09-02 10:33 lishidefengchen 编辑
摘要:$lsb_release -a #Ubuntu下执行 Distributor ID: Ubuntu Description: Ubuntu 16.04.2 LTS Release: 16.04 Codename: xenial $cat /etc/redhat-release #CentOS下执行 阅读全文
posted @ 2019-09-02 09:59 lishidefengchen 编辑

点击右上角即可分享
微信分享提示