app教程网 学习教程 iis重启命令(重启mysql服务命令)

iis重启命令(重启mysql服务命令)

最近我的很多VP经常出现502错误,经常需要重启nginx,但是很多在线教程需要繁琐的启动脚本,远没有apache的重启命令简单。

有-SParameter sind richtignginx服务管理:#/usr/local/nginx/sbin/nginx-h nginx版本:nginx/0.7.63用法:nginx [-]HVVt] [-s信号] [-c文件名] [-p前缀] [-g指南]

Options: -?-h : this help -v : show version and exit -V : show version and configure options then exit -t : test configuration and exit -s signal : send signal to a master process: stop, quit, reopen, reload -p prefix : set prefix path (default: /usr/local/nginx/) -c filename : set configuration file (default: conf/nginx.conf) -g directives : set global directives out of configuration file

So I executed # /usr/local/nginx/sbin/nginx -s to reload nginx, which has been successfully restarted.

具有root权限

#killall nginx

#nginx

其他相关命令:

1.显示nginx进行id #ps -aux | grep nginx

2. Results The master of nginx was pid #kill -HUP 635.

3.重启ngnix #nginx

本文来自网络,不代表本站立场,转载请注明出处:https: