摘要: 阅读全文
posted @ 2019-11-22 16:22 ma_fighting 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 设置log_format,添加request_time,$upstream_response_time,位置随意 og_format main '"$request_time" "$upstream_response_time" $remote_addr - $remote_user [$time_ 阅读全文
posted @ 2019-11-22 16:12 ma_fighting 阅读(13901) 评论(0) 推荐(1) 编辑
摘要: 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 阅读全文
posted @ 2019-11-22 14:43 ma_fighting 阅读(547) 评论(0) 推荐(0) 编辑
摘要: https://razeencheng.com/post/simple-use-go-exec-command.html 阅读全文
posted @ 2019-11-22 14:03 ma_fighting 阅读(261) 评论(0) 推荐(0) 编辑
摘要: systemd 启动的服务, 跟系统的ulimit 没有关系. 大概的意思就是通过systemd启动的服务,不会使用ulimit中的配置,需要在systemd中或者service配置文件中定义,可以通过查看 /proc/<pid>/limits文件中的内容来确定 修改service定义,增加"Lim 阅读全文
posted @ 2019-11-22 14:01 ma_fighting 阅读(883) 评论(0) 推荐(0) 编辑
摘要: 在Mac上用brew安装Nginx,然后修改Nginx配置文件,再重启时报出如下错误: nginx: [error] invalid PID number "" in "/usr/local/var/run/nginx/nginx.pid" 解决办法: $ sudo nginx -c /usr/lo 阅读全文
posted @ 2019-11-22 13:55 ma_fighting 阅读(750) 评论(0) 推荐(0) 编辑
历史天气查