欢迎来到梦飞科技

服务器租用

当前优惠活动:

Linux系统中nginx的启动、从头启动要领

nginx的启动呼吁是:

/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

-c拟定设置文件的路径,香港网存空间 北京主机,不加-nginx会自动加载默认路径的设置文件。

以上是通用的启动呼吁


以下是转载的,对付有以下呼吁的nginx可以利用,没有以下呼吁的nginx,可以利用上面的要领

研究了一下nginx辅佐后发明,有-s参数可对nginx处事举办打点:
# /usr/local/nginx/sbin/nginx -h
nginx version: nginx/0.7.63
Usage: nginx [-?hvVt] [-s signal] [-c filename] [-p prefix] [-g directives]

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

于是我执行
# /usr/local/nginx/sbin/nginx -s  reload 
nginx已经重启乐成

梦飞科技 - 全球数据中心基础服务领先供应商

Copyright © 2003-2019 MFISP.COM. 国外服务器租用 IDC公司 版权所有 粤ICP备11019662号