查詢nginx主進(jìn)程
ps -ef | grep nginx
得到的結(jié)果
![image.png](http://upload-images.jianshu.io/upload_images/4146576-57a7bcf1ddfbe643.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
第二列就是pid
根據(jù)pid關(guān)閉進(jìn)程
kill pid
ps -ef | grep nginx
得到的結(jié)果
![image.png](http://upload-images.jianshu.io/upload_images/4146576-57a7bcf1ddfbe643.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
第二列就是pid
kill pid