1.找到Tomcat安装目录下的文件“/conf/server.xml”; 2.使用记事本或写字板打开文件,在文件中找到“Connector port=8080”; 3.将“8080”改为想要的端口号,然后保存,重启Tomcat服务器