Guangning Yu's Blog
Home
Code
Data
Setup
Industry
MachineLearning
Archive
Setup Shadowsocks on Ubuntu server
2015-03-02 13:35:55
# Install ```bash apt-get install python-pip pip install shadowsocks ``` # Setup Create config file `/etc/shadowsocks.json`: ```json { "server":"your_ip_address", "server_port":8388, "local_address": "127.0.0.1", "local_port":1080, "password":"your_password", "timeout":300, "method":"aes-256-cfb", "fast_open": false } ``` You can set multiple ports in the config file: ```json { "server": "your_ip_address", "local_address": "127.0.0.1", "local_port": "1080", "port_password": { "8381": "password_1", "8388": "password_2" }, "timeout": 300, "method": "aes-256-cfb" } ``` # Start ```bash ssserver -c /etc/shadowsocks.json # run at background ssserver -c /etc/shadowsocks.json -d start ssserver -c /etc/shadowsocks.json -d stop ``` # Start on boot Edit `/etc/rc.local`: ``` /usr/local/bin/ssserver -c /etc/shadowsocks.json -d start exit 0 ```
Previous:
Cosine Similarity and Pearson Correlation Coefficient
Next:
Logistic Regression