在学习编程的过程中,总会遇到一些稀奇古怪的问题。把这些错误代码发到百度上,往往并没有什么卵用,因为大多数的论坛给的回复都是一样的。没事想看看油管视频,但是有的视频没人搬运,也很痛苦。这时候就需要试一试翻墙了。
搬瓦工
首先需要准备一个VPS,搬瓦工提供的vps最便宜的每年只需要19.99美元。搬瓦工官网
购买了搬瓦工VPS之后,进入搬瓦工的控制界面安装操作系统。
安装centos6操作系统
等待一段时候,就可以使用搬瓦工自带的安装shadowsocks的功能来安装服务器端程序。这比之前的手动安装方便多了。安装shadowsocks的具体步骤搬瓦工已有说明。
引用搬瓦工:
What’s next?
Step 1. Install Shadowsocks GUI application
For Windows 7 or earlier, download shadowsocks-win-2.3.zip
For Windows 8 or later, download shadowsocks-win-dotnet4.0-2.3.zip
Alternatively, you may download the latest version from developer’s website: http://sourceforge.net/projects/shadowsocksgui/files/dist/
Once downloaded, extract the .zip file and launch Shadowsocks.exe
If you do not see the settings window as shown below, then locate and doubleclick Shadowsocks tray icon:
Step 2. Shadowsocks GUI settings
Enter settings exactly as shown below.
Note that you can simply copy-paste fields marked in yellow:
Then click OK.
Step 3. Browser proxy settings
At this point you may right-click the Shadowsocks tray icon and Enable System Proxy. Then right-click the icon again and enable Mode -> Global. This will update system-wide proxy settings – this will work for Google Chrome as well as Microsoft Internet Explorer.
Alternatively, manual browser configuration is possible:
Proxy type: SOCKS v5
Proxy IP (Socks Host): 127.0.0.1
Port: 1080
How to configure Proxy in Mozilla Firefox: http://www.tomsguide.com/faq/id-1847788/configure-proxy-settings-mozilla-firefox.html
How to configure Proxy in Google Chrome: https://support.google.com/chrome/answer/96815
Done! You can now use a service to test your IP, for example: ping.pe.