使用digitalocean进行项目开发
使用digitalocean进行项目开发
命令记录
搭建SS
1 apt-get update
2 apt-get install python-pip
3 pip install --upgrade pip
4 apt-get install git
5 pip install git
6 sudo pip install git+https://github.com/shadowsocks/shadowsocks.git@master
7 apt-get install build-essential
8 wget https://github.com/jedisct1/libsodium/releases/download/1.0.8/libsodium-1.0.8.tar.gz
9 tar xf libsodium-1.0.8.tar.gz && cd libsodium-1.0.8
10 ./configure && make -j2
11 make install
12 ldconfig
13 touch /etc/shadowsocks.json
14 echo '{"server":"::", "server_port":8388, "local_address": "127.0.0.1", "local_port":1080, "password":"draymonder", "timeout":300, "method":"chacha20", "fast_open": false }' > /etc/shadowsocks.json
15 ssserver -c /etc/shadowsocks.json -d start
// 想要关闭的话
16 ssserver -c /etc/shadowsocks.json -d stop