![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
微风中的一只小刺猬
微风中的一只小刺猬
展开
-
nginx基本命令
启动:nginx -c [nginx的配置文件地址]例如: nginx -c /etc/nginx/nginx.conf验证配置是否正确: nginx -t查看Nginx的版本号:nginx -V快速停止或关闭Nginx:nginx -s stop正常停止或关闭Nginx:nginx -s quit配置文件修改重装载命令:nginx -s reload...原创 2018-03-21 14:40:40 · 298 阅读 · 0 评论 -
nginx 开启了日志,但是日志当自动打包后,将无法记录日志信息
nginx 开启了日志,但是日志当自动打包后,将无法记录日志信息。先查看配置vim /etc/logrotate.d/nginx/var/log/nginx/*log { daily rotate 10 missingok notifempty compress sharedscripts postrotate /bin/kill -USR1...原创 2018-03-21 14:46:45 · 1263 阅读 · 0 评论 -
nginx之长连接keepalive
一、nginx之tcp_nopush、tcp_nodelay、sendfile1、TCP_NODELAY你怎么可以强制 socket 在它的缓冲区里发送数据?一个解决方案是 TCP 堆栈的 TCP_NODELAY选项。这样就可以使缓冲区中的数据立即发送出去。Nginx的 TCP_NODELAY 选项使得在打开一个新的 socket 时增加了TCP_NODELAY选项。但这时会造成一种情...转载 2019-07-18 20:00:29 · 1154 阅读 · 0 评论