JAVA专题-----解决MAC电脑上一个关于(IntelliJ, can't start simple web application: Unable to ping server at lo...

现象:

IntelliJ, can't start simple web application:
Unable to ping server at localhost:1099

第一种情况,端口却是被占用:

lsof -i:1099
kill -9 xxxx

第二种情况,TM端口没有被占用://被困扰了3天时间~~~~

cat /etc/hosts //如果没有关于 127.0.0.1 localhost的设置继续往下,
$hostname
vi  /etc/hosts //填入 127.0.0.1 localhost HackWancBookPro

OK ,Problem resolved!

Tks,国外的大神:


JAVA专题-----解决MAC电脑上一个关于(IntelliJ, can't start simple web application: Unable to ping server at lo..._第1张图片
image.png

https://stackoverflow.com/questions/19068977/intellij-cant-start-simple-web-application-unable-to-ping-server-at-localhost?rq=1

你可能感兴趣的:(JAVA专题-----解决MAC电脑上一个关于(IntelliJ, can't start simple web application: Unable to ping server at lo...)