Nginx Command
时间:2015-10-06 23:01 来源:linux.it.net.cn 作者:IT
nginx的启动命令是:
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
-c制定配置文件的路径,不加自动加载默认路径的配置文件。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[root@localhost nginx]# /usr/local/nginx/sbin/nginx -h
nginx version: nginx/1.5.10
Usage: nginx [-?hvVtq] [-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
-q : suppress non-error messages during configuration testing
-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
查看nginx进程信息
1
2
3
4
[root@localhost nginx]# ps -ef | grep nginx
root 6202 1 0 22:55 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx
nobody 9107 6202 0 23:14 ? 00:00:00 nginx: worker process
root 9191 5917 0 23:16 pts/0 00:00:00 grep --color=auto nginx
(责任编辑:IT)
nginx的启动命令是: /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf -c制定配置文件的路径,不加自动加载默认路径的配置文件。
查看nginx进程信息
(责任编辑:IT) |