Solve Failed to connect to 127.0.0.1 port 1080: Connection refused error (macos)

When using github resources to install things

 

I have tried various methods but have not been able to solve it. I have been reporting the problem of this port proxy. I saw a solution on the Internet.

first step

Query whether a proxy is used:

git config --global http.proxy

second step

cancel proxy

git config --global --unset http.proxy

However, I tried and it didn't work.

Now let me talk about the following method, this solves the problem

first step

Type in terminal

defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder

This line of command can display the hidden files of the computer

second step

Find the hidden file gitconfig in the folder of your personal account in Finder, right-click to open it, and then delete the entire line of proxy inside

third step

Go back to the terminal and execute pod setup again. At this time, you will magically find that the problem is solved. I hope it will be helpful to people who have the same problem.

I installed a proxy on this machine before, and set a proxy for the github address.

Guess you like

Origin blog.csdn.net/u011457432/article/details/127287087
Recommended