tomcat啟動報錯java.net.MalformedURLException: Local host name unknown
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 檔案中