关于tomcat:Tomcat端口地址已在使用-Bind-failed

43次阅读

共计 630 个字符,预计需要花费 2 分钟才能阅读完成。

环境

  • Linux/Ubuntu20.04LTS
  • IntelliJ IDEA Community Editon 2021.1
  • java-11-openjdk-amd64
  • apache-tomcat-7.0.109

异样

tomcat 服务端口被占用!

 重大: Failed to initialize end point associated with ProtocolHandler ["http-bio-8087"]
java.net.BindException: 地址已在应用 (Bind failed) <null>:8087
 7 月 14, 2021 9:45:36 下午 org.apache.catalina.core.StandardServer await
重大: StandardServer.await: create[localhost:8005]: 

起因

  1. 端口地址已在应用,端口地址抵触
  2. 上次运行服务没有及时敞开,服务仍在运行,故造成端口抵触

计划

  1. 端口抵触,间接批改配置文件里的端口号后,从新运行我的项目

  1. 服务未及时敞开造成,敞开上次运行的服务,关上 tomcat 目录所在文件,间接敞开服务, 执行 $ ./shutdown.sh
lauiji@lauiji-IdeaPad-15sIML-2020:/usr/local/apache-tomcat-7.0.109/bin$ ./shutdown.sh

从新运行我的项目即可

阐明

  • 【遇上旱季,吃定彩虹】–Layuji
  • 由集体整顿公布,编写过程不免有所脱漏或谬误,恳请指出,免得误导大家!

正文完
 0