1. 程式人生 > >使用digitalocean進行專案開發

使用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/[email protected]
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