Mac下IDEA 报错Unable to ping server at localhost:1099
来源:互联网 发布:ios6旧版软件 编辑:程序博客网 时间:2024/04/30 12:31
这个问题折腾了我好几个小时,不知道是我上次配置tomcat还是配置IDEA的时候改动了什么,结果导致一个helloworld的web项目都无法启动了,始终报错Unable to ping server at localhost:1099,查了下网络上的解决方案,发现无论是更改catlina.bat文件还是修改setenv文件,都不能解决我的问题。google了一下这个问题,找到了解决的办法,这里贴上原文地址stackoverflow。
问题原文如下:
I'm trying to make a simple web app in IntelliJ by following this tutorial:http://wiki.jetbrains.net/intellij/Creating_a_simple_Web_application_for_Tomcat_in_IntelliJ_IDEA_12
I believe my Tomcat is installed correctly since I see the tomcat pictures when I go to http://localhost:8080/
I've followed all the steps up until the part it tells me to run index.jsp
, at which point I get the error:
Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: nodename nor servname provided, or not known
I see this in the log:
Application Server was not connected before run configuration stop, reason: Unable to ping server at localhost:1099
答案如下:
To fix this you need add your machine name in the /etc/hosts file to point to localhost(127.0.0.1).
如果你是mac用户,可以在终端中输入hostname,即可获得hostname
$ hostnamemacbook-pro
From the output above you know your hostname is "macbook-pro". Edit "/etc/hosts" file and add that name at the end of line that lists 127.0.0.1
既然已经知道了hostname,替换下面macbook-pro为自己的hostname,然后将下面的这段添加在host文件末尾
127.0.0.1 localhost macbook-pro
该方法完美解决了在mac版本的问题。
- Mac下IDEA 报错Unable to ping server at localhost:1099
- Intellij IDEA Tomcat 启动报错, Unable to ping server at localhost:1099
- Intellij IDEA Tomcat 启动报错, Unable to ping server at localhost:1099
- IDEA启动tomcat报Unable to ping server at localhost:1099 解决
- IntelliJ IDE运行Tomcat报错:Unable to ping server at localhost:1099
- 启动JRebel报错 Unable to ping server at localhost:1099
- Intellij IDEA Tomcat,提示“Unable to ping server at localhost:1099”
- idea启动tomcat无效:Unable to ping server at localhost:1099
- Mac系统开发常见问题-IntelliJIDEA-TOMCAT-Unable to ping server at localhost:1099
- < Unable to ping server at localhost:1099>问题解决---小记
- java_home should point to a jdk not a jre/unable to ping server at localhost:1099
- tomcat启动失败,提示信息:Unable to ping server at localhost:1099
- Server Tomcat v7.0 Server at localhost was unable to&nbs 报错问题解决
- Server Tomcat v7.0 Server at localhost was unable to&nbs 报错问题解决
- 报错:Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds
- Server Tomcat v8.5 Server at localhost was unable to start within 45 seconds. If the server requir报错
- Tomcat : unable to ping server at localhost1099
- eclipse启动报错Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds
- UISwipeGestureRecognizer
- android 桌面 未读角标
- CSDN-markdown编辑器 语法学习 笔记
- 06-浅谈MITM攻击之信息窃取
- 微信小程序画布详解
- Mac下IDEA 报错Unable to ping server at localhost:1099
- 开发运维实用linux命令
- aaaa
- linux 添加静态路由
- Android 百度地图导航引擎初始化失败
- 刷新android中的媒体库
- MongoDB 3.2.x 集群
- 这5个newsletter,设计师们可能想要放在收件箱
- uva 165 Stamps