problem description
enter curl www.baidu.com
in the terminal to return the following error:
curl: (7) Failed to connect to 127.0.0.1 port 1086: Connection union
baidu for a long time, found no one reliable, all is a repeat machine! Have a fart ~/. Curlrc! There is no ~/. Curlrc file under home!
solution
enter export-p
in the terminal, if you find ftp_proxy
, http_proxy
, https_proxy
, then this solution is suitable for you!
continue input at the terminal:
export -n ftp_proxy
export -n http_proxy
export -n https_proxy
enter export -p
again, if the above three things do not appear, it is ok!
the reason why these three things appear is probably because when you get on the Internet, you added these three lines in ~/. Bashrc
, so remember to go to ~/. Bashrc
and delete all the codes related to ftp_proxy
, http_proxy
, and https_proxy
0, then it won’t appear again.
Read More:
- Failed to connect to remote VM. Connection reused. Connection reused: Connect
- curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
- How to solve problems like curl: (7) failed to connect to raw.githubusercontent.com Port 443: problem with connection used
- Solve the MAC terminal download error curl: (7) failed to connect to raw.githubusercontent.com port 443: Connection refused
- JDBC connect to Sql Server to connect to the database–The TCP/IP connection to the host localhost, port 1433 has failed
- About jmh running error: transport error 202: Connect failed: connection reused error solution
- curl: (7) Failed connect to localhost:9200; Connection refused
- Ubuntu20.04 installing RVM error curl: (7) failed to connect to raw.githubusercontent.com port 443: Operation timed
- Failed to connect to 17.0.0.1 port 1080: Connection refused
- When xshell 6 is connected normally for the first time, it will prompt could not connect to ‘127.0.0.1’ (port 61708): connection failed
- Solution of server connection reused (test environment)
- Failed to connect to 127.0.0.1 port 43571: problem solving record
- Nginx reports 502 error, log connect() failed (111: Connection refused) while connecting to upstream. A personal effective solution
- PHP under linux uses pdo-dblib to connect to mssql to report an error solution. Error message: SQLSTATE[01002] Adaptive Server connection failed (severity 9)
- Problem solving: failed to connect to github.com port 443: Operation timed out(2020.06.04)
- Mac installation dart error curl: (35) libresssl SSL_ connect: SSL_ ERROR_ SYSCALL in connection to storage.googleapis.co
- RTMP_Connect0, failed to connect socket. 110 (Connection timed out)
- pycharm Failed to connect to github.com port 443: Timed out
- Solve starting RTSP handshake… RTSP: failed to connect to UDP port 48010
- Push failed Unable to access ‘https://github.com/‘: Failed to connect to github.com port 443: Timed