马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
用过Nginx的都知道,热重启是个很重要的功能,假设你没有使用init的启动脚本来控制Nginx的启动,那么就必须通过手动方式来热重启Nginx了,这里提供一种简单的方法。 首先找到Nginx的pid,
root 3909 13650 0 00:35 pts/0 00:00:00 grep nginx
root 5875 1 0 Mar28 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx
nobody 5877 5875 0 Mar28 ? 00:00:19 nginx: worker process
nobody 5878 5875 0 Mar28 ? 00:00:17 nginx: worker process
nobody 5880 5875 0 Mar28 ? 00:00:18 nginx: worker process
nobody 5882 5875 0 Mar28 ? 00:00:17 nginx: worker process
然后热重启,
记得替换pid为你自己机器上nginx进程的pid。
|