Linux服务器修改Tomcat默认端口
2019-02-16 本文已影响0人
越过_1b61
1.先安装lsof
yum install lsof
2.查看端口占用情况
lsof -i:80
3.修改/tomcat/conf/server.xml里的8080到80;
4.发现aliyundun进程占用了80端口
service aegis stop;
5.重启tomcat
cd tomcat/bin
./shutdown.sh
./startup.sh
1.先安装lsof
yum install lsof
2.查看端口占用情况
lsof -i:80
3.修改/tomcat/conf/server.xml里的8080到80;
4.发现aliyundun进程占用了80端口
service aegis stop;
5.重启tomcat
cd tomcat/bin
./shutdown.sh
./startup.sh