Host 'localhost' has multiple addresses. 解决办法

phpstorm调试php

错误提示:

Host 'localhost' has multiple addresses. You must choose one explicitly!
Couldn't create FastCGI listen socket on port localhost:35687

vi /etc/hosts

只保留127.0.0.1   localhost这一个关联项,其他的都注释掉。

127.0.0.1   localhost   #localhost.localdomain localhost4 localhost4.localdomain4
#::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

操作系统Centos6.5,php  5.4.28,ngnix

原文地址:https://www.cnblogs.com/flyingskya/p/3798383.html