4 回答

TA貢獻(xiàn)1804條經(jīng)驗 獲得超8個贊
方法
也就是nginx -c /path/to/config/file) //在我機器上是這樣的/alidata/server/nginx/sbin/nginx -c /alidata/server/nginx/conf/nginx.conf

TA貢獻(xiàn)1818條經(jīng)驗 獲得超11個贊
[root@iZ259r7h4pfZ ~]# ps aux|grep nginx
root 961 0.0 0.0 46288 1480 ? Ss Mar19 0:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
[root@iZ259r7h4pfZ ~]# lsof -p 961
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
nginx 961 root cwd DIR 202,1 4096 2 /
nginx 961 root rtd DIR 202,1 4096 2 /
nginx 961 root txt REG 202,1 5027882 1078631 /usr/local/nginx/sbin/nginx
- 4 回答
- 0 關(guān)注
- 2098 瀏覽
添加回答
舉報