killall -9 nginx
sudo nginx -s quit;
sudo nginx
chomd 755 static
ps aux | grep nginx
sudo rm -rf /etc/nginx/
sudo rm -rf /usr/sbin/nginx
设置环境变量
cd~
vim .bash_profile
设置hosts文件
/etc/hosts
查找端口
使用命令:
ps -aux | grep tomcat
方法二:直接使用 netstat -anp | grep portno
即:netstat –apn | grep 8080