curl: (7) Failed connect to xxxx:1234; Connection refused

1 개요[ | ]

curl: (7) Failed connect to (host):(port); Connection refused
  • host가 해당 port에 대한 접근을 거부한 경우
  • 해당 port를 LISTEN하지 않고 있는 경우도 포함된다.
Console
Copy
root@localhost:~# curl localhost:1
curl: (7) Failed connect to localhost:1; Connection refused
Console
Copy
root@localhost:~# curl 127.0.0.1:2
curl: (7) Failed connect to 127.0.0.1:2; Connection refused
Console
Copy
[root@localhost ~]# curl 135.79.246.80
curl: (7) Failed connect to 135.79.246.80:80; Connection refused
Console
Copy
[root@localhost ~]# curl -v 135.79.246.80
* About to connect() to 135.79.246.80 port 80 (#0)
*   Trying 135.79.246.80...
* Connection refused
* Failed connect to 135.79.246.80:80; Connection refused
* Closing connection 0
curl: (7) Failed connect to 135.79.246.80:80; Connection refused

2 같이 보기[ | ]