1. 修改文件如下 vim /lib/systemd/system/docker.service [Service]Type=notifyLimitNOFILE=1048576LimitNPROC=1048576LimitCORE=infinity 2. 重启服务 sudo systemctl da ...
分类:
其他好文 时间:
2021-03-09 13:55:48
阅读次数:
0
linux上nginx位置/usr/local/nginx。 停止nginx ps -ef | grep nginx 找到nginx进程(会列出三个) kill -QUIT <进程号> 杀掉进程(上面中,找到root且是nginx的根进程号) 后台nginx启动 /usr/local/nginx/s ...
分类:
系统相关 时间:
2021-03-08 14:17:06
阅读次数:
0
修改host文件 sudo vim /etc/host 添加以下内容 # Github?151.101.185.194 github.global.ssl.fastly.net140.82.114.3 github.com 151.101.112.133 assets-cdn.github.com ...
分类:
系统相关 时间:
2021-03-08 13:06:17
阅读次数:
0
cd /usr/local/nginx #到nginx目录下 ./sbin/nginx #启动nginx ./sbin/nginx -t #检测配置文件 ps aux|grep nginx #查看nginx进程 nginx配置文件修改后,执行nginx -t successful。执行nginx - ...
分类:
其他好文 时间:
2021-03-05 13:30:31
阅读次数:
0
在允许nginx服务器中,输入命令: netstat -ano | grep "TIME_WAIT" 可以看到出现很多TIME_WAIT的端口, 输入命令: netstat -an|awk '/tcp/ {print $6}'|sort|uniq -c 可以看到结果: 76 CLOSE_WAIT 3 ...
分类:
其他好文 时间:
2021-03-04 13:10:09
阅读次数:
0
sudo find /etc/ -type f -name "rc*" -exec ls -l {} \;find . -name "t*" -perm 777 -printfind . -mtime -180find /var/log/ -mtime -3 -ok rm {} \; vim 替换: ...
分类:
系统相关 时间:
2021-03-04 13:03:44
阅读次数:
0
zabbix添加自定义监控项 监控nginx web的80端口连接数,zabbix监控中心创建监控项目,针对监控以图形展现 需要到客户端zabbix_agent定义脚本 vim /usr/local/sbin/estab.sh //内容如下 #!/bin/bash ##获取80端口并发连接数 net ...
分类:
微信 时间:
2021-03-03 12:16:54
阅读次数:
0
将asp.net 5项目部署到linux项目,部署的时候没问题,但是连接Mysql数据库的时候一直报错: 打出所有的异常信息: 通过搜索github上相关的issue,发现这是一个net 5的已知BUG,但是不知道为什么在有些环境上依然会出现; 解决方案: vim /etc/ssl/openssl. ...
分类:
数据库 时间:
2021-03-03 12:14:06
阅读次数:
0
网络命令 - ifconfig 1. 查看所有网卡信息 ifconfig -a 2. 查看本机所有IP值信息 ifconfig | grep inet 3. 查看指定网卡IP值 ifconfig '网卡名称' ...
分类:
其他好文 时间:
2021-03-03 12:01:55
阅读次数:
0
1、出现TLS handshake timeout错误时: 执行 vim /etc/docker/daemon.json命令,在阿里云https://cr.console.aliyun.com/cn-hangzhou/instances源中获取专属的加速源 { "registry-mirrors": ...
分类:
其他好文 时间:
2021-03-03 11:46:15
阅读次数:
0