tomcat启动报错java.net.MalformedURLException: Local host name unknown

来源:互联网 发布:java编程工具哪个好 编辑:程序博客网 时间:2024/06/02 00:02

tomcat启动报错

Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: int2: int2: Temporary failure in name resolution


原因为/etc/hosts文件中未配置主机名

解决方法:

1、查看主机名,命令hostname

2、root用户把当前主机名加到/etc/hosts 文件中




当时公司路由器重启改启动起来,

阅读全文
0 0
原创粉丝点击