1.打開tomcat中conf目錄下的server.xml; 2. 找到<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />,把8080改成想要改成的端口,如8088; 3.打開Eclipse,Window->Preferences->Server->Runtime Environments,在Server runtime environments中把Apache Tomcat Remove掉,然后再重新Add一次,確認(rèn)。 4. 重啟,OK!Tomcat端口成功修改為8088! |
|