摘要:
设置log_format,添加request_time,$upstream_response_time,位置随意 og_format main '"$request_time" "$upstream_response_time" $remote_addr - $remote_user [$time_ 阅读全文
摘要:
root@ubuntu1604:~# more /etc/os-release NAME="Ubuntu"VERSION="16.04.5 LTS (Xenial Xerus)"ID=ubuntuID_LIKE=debianPRETTY_NAME="Ubuntu 16.04.5 LTS"VERSIO 阅读全文
摘要:
https://razeencheng.com/post/simple-use-go-exec-command.html 阅读全文
摘要:
systemd 启动的服务, 跟系统的ulimit 没有关系. 大概的意思就是通过systemd启动的服务,不会使用ulimit中的配置,需要在systemd中或者service配置文件中定义,可以通过查看 /proc/<pid>/limits文件中的内容来确定 修改service定义,增加"Lim 阅读全文
摘要:
在Mac上用brew安装Nginx,然后修改Nginx配置文件,再重启时报出如下错误: nginx: [error] invalid PID number "" in "/usr/local/var/run/nginx/nginx.pid" 解决办法: $ sudo nginx -c /usr/lo 阅读全文