运行时报错:java.net.BindException: Address already in use: JVM_Bind :8080 (或8009或8005)

时间:2022-06-30 19:30:10
修改Tomcat端口号步骤:
1.找到Tomcat目录下的conf文件夹
2.进入conf文件夹里面找到server.xml文件
3.打开server.xml文件(打开方式选择记事本)
4.在server.xml文件里面找到下列信息

运行时报错:java.net.BindException: Address already in use: JVM_Bind <null>:8080 (或8009或8005)

图1:8080修改

运行时报错:java.net.BindException: Address already in use: JVM_Bind <null>:8080 (或8009或8005)
图2:8005修改

运行时报错:java.net.BindException: Address already in use: JVM_Bind <null>:8080 (或8009或8005)

图3:8009修改

5.例如:把port="8080"改成port="8088",并且保存
6.启动Tomcat,并且在IE浏览器里面的地址栏输入http://127.0.0.1:8088/
如果出现一只猫等信息,端口号就修改成功了!