码迷,mamicode.com
首页 > 其他好文 > 详细

nginx服务相关操作

时间:2018-01-29 15:44:05      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:lob   class   操作   nginx   out   安装   top   gpo   conf   

安装目录

和大多软件一样一般安装在 /usr/local/ 目录下
/usr/local/

命令man

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 -c /usr/local/nginx/conf/nginx.conf

重启

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

关闭

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

nginx服务相关操作

标签:lob   class   操作   nginx   out   安装   top   gpo   conf   

原文地址:https://www.cnblogs.com/b3051/p/8376330.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!