Linux tomcat启动报错 java.net.BindException: 无法指定被请求的地址

#hostname // 查看主机名称

localserver

#vi /etc/hosts //修改映射

127.0.0.1   localhost localhost.localdomain localhost4localhost4.localdomain4

::1         localhost localhost.localdomainlocalhost6 localhost6.localdomain6

改为

127.0.0.1   localserver localhost localhost.localdomainlocalhost4 localhost4.localdomain4

::1         localhost localhost.localdomainlocalhost6 localhost6.localdomain6

你可能感兴趣的:(Linux tomcat启动报错 java.net.BindException: 无法指定被请求的地址)