Nginx的启动、停止、重启、加载配置

  • 启动nginx
service nginx start

  • 停止
a、service nginx stop 
b、kill pid(master pid)
  • 重启,服务停止后,重新启动
service nginx restart
  • 加载配置,服务不停止,重新加载新配置
a、service nginx reload
b、kill -HUP pid(master pid)

发表评论

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>