markdown 如何在Ubuntu服务器上设置Shadowsocks

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 如何在Ubuntu服务器上设置Shadowsocks相关的知识,希望对你有一定的参考价值。

# How to setup Shadowsocks on your Ubuntu server

Your school or company network may block the access to a few specific websites. To solve this problem, I'd highly recommend Shadowsocks, since it is the easiest proxy tool I've ever found, and it's FREE (of course iff you have your own server running).

First, `ssh` to your server, and make sure you have Python and `pip` installed. If you have Python but not `pip`, install it using the following command

```bash
$ sudo apt-get install python3-pip
```

Then, install Shadowsocks using `pip`

```bash
$ sudo pip install shadowsocks
```

Create configuration file at `/etc/shadowsocks.json`, with the following content,

```json
{
   "server":"[server ip address]",
   "server_port":8388,
   "local_port":0,
   "password":"[password]",
   "timeout":600,
   "method":"aes-256-cfb"
}
```

Don't forget to change the `[server ip address]` and `[password]` in the block above.

Finally, we're ready to start the shadowsocks server that runs in the background by 

```bash
$ sudo ssserver -c /etc/shadowsocks.json -d start
```

If you wish to stop the Shadowsocks server, do this

```bash
$ sudo ssserver -c /etc/shadowsocks.json -d stop
```

To install Shadowsocks client software on your local machine, follow the instruction in [this repository on GitHub](https://github.com/shadowsocks/shadowsocks-gui).

Cheers! Now you don't ever need to curse your school or company Internet administrator for blocking your favorite websites anymore.

以上是关于markdown 如何在Ubuntu服务器上设置Shadowsocks的主要内容,如果未能解决你的问题,请参考以下文章

markdown 编辑在Ubuntu服务器上设置qBittorrent作为带Web界面的守护进程(15.04及更高版本)

markdown 如何设置Ubuntu服务器(即DigitalOcean LAMP堆栈)Akeneo PIM服务器。

markdown 在ubuntu上设置ssl

markdown 如何在Ubuntu 14.04+上使用uWSGI和Nginx为Flask应用程序提供服务

markdown 如何在ubuntu上创建Vhost

markdown 如何在ubuntu 16.04上安装虚拟环境