启动:

 -c filename   : set configuration file (default: conf/nginx.conf)

[root@LinuxServer sbin]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

 

停止:

-s signal    : send signal to a master process: stop, quit, reopen, reload

1、 pkill -9 nginx

2、 /usr/local/nginx/sbin/nginx -s stop

 

重启:

/usr/local/nginx/sbin/nginx -s reload

相关文章:

  • 2021-12-13
  • 2021-11-04
  • 2021-07-20
  • 2022-01-05
猜你喜欢
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-12-12
  • 2022-12-23
  • 2021-09-03
相关资源
相似解决方案