
Hands-on teaching you to Centos server proxy ip hanging
The server guys all know, sometimes under a dependency package slow as a snail. This time to find a reliable proxy ip, speed directly take off. Today we will take ouripipgoThis is an example of a proxy service that teaches you how to hook up proxies for yum and wget on Centos.
Proxy ip exactly how to choose
Let's start with a cold one:yum and wget don't use the same protocols.yum uses the libcurl library at the bottom, and wget itself is a download tool. It is recommended to useipipgo's Static Residential PackageI'd say 35 bucks a month for a fixed ip is the most stable way to do server proxying.
Look here! Let's start by memorizing these key parameters:
Proxy server address: gateway.ipipgo.net
Port number: depending on the package look at the console
Account password: the key pair given during registration
Proxy for yum in three steps
1. Open the yum configuration file:
sudo vi /etc/yum.conf
2. Add these two lines at the end of the document:
proxy=http://用户名:密码@gateway.ipipgo.net:端口
proxy_username=your ipipgo account number(Important! Many tutorials leave this out)
3. Testing for effectiveness:
yum clean all && yum makecache See if the download speed improves
The wget proxy has to be played like this
There's a pit here:System-level configuration and user-level configuration can conflict! It is recommended to add parameters directly to the command:
wget -e "http_proxy=http://用户名:密码@gateway.ipipgo.net:端口" The address of the file you want to download.
If you want to make it permanent, change/etc/wgetrcDocumentation:
http_proxy = http://用户名:密码@gateway.ipipgo.net:端口
https_proxy = http://用户名:密码@gateway.ipipgo.net:端口
First Aid Guidelines for Common Rollover Scenes
Q: What should I do if I get a 407 error after configuration?
A: Ninety percent of the account password format is not correct, remember to use theUsername:Passwordformat with an English colon in the center
Q: The download speed is slowed down instead?
A: Maybe you've chosen a cross-country node, go to the ipipgo backend and change to an outlet close to your server.
Q: How do I verify if the agent is in effect?
A: Runningcurl -x http://代理地址:端口 ifconfig.me See if the returned ip is a proxy ip
Why recommend ipipgo
Self-used experience:
1. When downloading large files, switch toDynamic Residential Enterprise EditionI've got enough traffic for 1G for over 9 bucks.
2. Use when you need to fix the export ipStatic homesI've been doing a lot of crawling and stuff like that.
3. Their homeTK LineIt's a separate corridor, so there's no rush hour traffic.
One last rant:Remember to restart the service after the proxy configuration takes effect! Once I changed the configuration and didn't reboot, it took me two hours of troubleshooting. If you still can't get it to work, go directly to ipipgo's tech support, they are online 24 hours a day to respond, much faster than watching tutorials.

