nginxサーバが8080ポートでリッスンし、telnetにlocalhostと127.0.0.1があります。 1つは接続され、1つは接続されずに失敗します'localhost'と '127.0.0.1'の違いは何ですか?
[[email protected] sbin]$ telnet localhost 8080
Trying ::1...
telnet: connect to address ::1: Connection refused
[[email protected] sbin]$ telnet 127.0.0.1 8080
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
「localhost」と「127.0.0.1」の違いは何ですか?localhost connectが失敗する理由はありますか?ありがとうございます!