我telnet localhost
在Mac OS X Lion上尝试过,这是我得到的输出。
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
Trying fe80::1%lo0...
telnet: connect to address fe80::1%lo0: Connection refused
telnet: Unable to connect to remote host: Connection refused
它尝试三个不同的地址。我希望它只尝试127.0.0.1,或者至少首先尝试。这些其他地址是什么?
/etc/hosts
浏览一下的条目localhost
。