歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

ngxin修改配置重啟

ngxin修改配置重啟   1 修改nginx.conf   ps -ef |grep ngxin   kill -QUIT 主進程號   /usr/local/nginx/sbin/nginx -s reload   nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed       改用   /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf   重啟成功       原因   nginx -s reload is only used to tell a running nginx process to reload its config. After a stop, you don't have a running nginx process to send a signal to. Just run nginx (possibly with a -c /path/to/config/file)   於是我用了這方法,也就是nginx -c /path/to/config/file)  //在我機器上是這樣的/alidata/server/nginx/sbin/nginx -c /alidata/server/nginx/conf/nginx.conf
Copyright © Linux教程網 All Rights Reserved