java.net.BindException: Cannot assign requested address (Bind failed)
经过分析:
经过多次排查,发现tomcat在绑定数据的时候是绑定在localhost上面的,那么localhost的怎么可能出错的呢?
难道是hosts?
果断排查hosts,果然发现了问题?谁把127.0.0.1 localhost这段自带的去掉了?
于是果断加上这个
127.0.0.1 localhost
再次运行,果然这次成功启动了!
[root@paas-5529g-qswtm ~]# cat /etc/hosts
114.115.137.172 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 127.0.0.1 localhost [root@paas-5529g-qswtm ~]#
127.0.0.1 localhost
[root@paas-5529g-qswtm ~]# cat /etc/hosts
114.115.137.172 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 127.0.0.1 localhost [root@paas-5529g-qswtm ~]#
172
129