- 工信部備案號 滇ICP備05000110號-1
- 滇公安備案 滇53010302000111
- 增值電信業(yè)務(wù)經(jīng)營許可證 B1.B2-20181647、滇B1.B2-20190004
- 云南互聯(lián)網(wǎng)協(xié)會理事單位
- 安全聯(lián)盟認(rèn)證網(wǎng)站身份V標(biāo)記
- 域名注冊服務(wù)機構(gòu)許可:滇D3-20230001
- 代理域名注冊服務(wù)機構(gòu):新網(wǎng)數(shù)碼
查看nginx進(jìn)程看看有沒有啟動,并可以查看進(jìn)程ID
[root@ uu]# ps -ef|grep nginx
root 20538 1 0 13:51 ? 00:00:00 nginx: master process /opt/nginx/sbin/nginx
root 20539 20538 0 13:51 ? 00:00:00 nginx: worker process
root 20540 20538 0 13:51 ? 00:00:00 nginx: worker process
root 24132 1 0 15:03 ? 00:00:00 nginx: master process sbin/nginx
nobody 24133 24132 0 15:03 ? 00:00:00 nginx: worker process
root 24552 20113 0 15:12 pts/2 00:00:00 grep nginx
[root@ uu]#
停止nginx,其實就是殺掉進(jìn)程,但是要注意不能用kill -9 進(jìn)程id,因為nginx啟動時有子進(jìn)程,所以要用下面方式殺死
[root@ uu]# ps -ef|grep nginx
root 20538 1 0 13:51 ? 00:00:00 nginx: master process /opt/nginx/sbin/nginx
root 20539 20538 0 13:51 ? 00:00:00 nginx: worker process
root 20540 20538 0 13:51 ? 00:00:00 nginx: worker process
root 20544 1 0 13:51 ? 00:00:00 nginx: master process /opt/nginxcs/sbin/nginx
nobody 24052 20544 0 15:02 ? 00:00:00 nginx: worker process
root 24066 20113 0 15:02 pts/2 00:00:00 grep nginx
[root@ uu ]# kill 20544
[root@ uu]# ps -ef|grep nginx
root 20538 1 0 13:51 ? 00:00:00 nginx: master process /opt/nginx/sbin/nginx
root 20539 20538 0 13:51 ? 00:00:00 nginx: worker process
root 20540 20538 0 13:51 ? 00:00:00 nginx: worker process
root 24104 20113 0 15:03 pts/2 00:00:00 grep nginx
啟動nginx
[root@ uu]# ps -ef|grep nginx
root 20538 1 0 13:51 ? 00:00:00 nginx: master process /opt/nginx/sbin/nginx
root 20539 20538 0 13:51 ? 00:00:00 nginx: worker process
root 20540 20538 0 13:51 ? 00:00:00 nginx: worker process
root 24104 20113 0 15:03 pts/2 00:00:00 grep nginx
[root@ uu]# sbin/nginx
[root@ uu]# ps -ef|grep nginx
root 20538 1 0 13:51 ? 00:00:00 nginx: master process /opt/nginx/sbin/nginx
root 20539 20538 0 13:51 ? 00:00:00 nginx: worker process
root 20540 20538 0 13:51 ? 00:00:00 nginx: worker process
root 24132 1 0 15:03 ? 00:00:00 nginx: master process sbin/nginx
nobody 24133 24132 0 15:03 ? 00:00:00 nginx: worker process
root 24139 20113 0 15:03 pts/2 00:00:00 grep nginx
售前咨詢
售后咨詢
備案咨詢
二維碼
TOP