Some time ago, I set up a Shadowsockes server on the VPS and recorded it:
1. On U16.04, you can run apt-get to install directly, and then modify the /etc/shadowsocks/config.json file.
sudo apt-get install shadowsocks
2. Add a shadowsocks-libev source and install it with apt-get:
sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev sudo apt-get update sudo apt install shadowsocks-libev
There is a problem with the first installation on my VPS, but others use it fine, it is very strange, so I use the second method, and there is an error that add-get-repository cannot be found in the middle, run the following steps The line command can be solved:
sudo apt-get install python-software-properties sudo apt install software-properties-common sudo apt-get update
Finally, modify the configuration file:
cat /etc/shadowsocks-libev/config.json { "server":"my_server_ip", "server_port":8388, "local_port":1080, "password":"mypassword", "timeout":60, "method":"aes-256-cfb" }
It is best to use the default method name, and others can be changed. then start
/etc/init.d/shadowsocks-libev start
an examination:
ps -ef | grep ss server nobody 4917 1 0 Jun09 ? 00:00:02 /usr/bin/ss-server -c /etc/shadowsocks-libev/config.json -u
If that doesn't work, run netstat -anpt to see if the port is open.
Also check the firewall status.
sudo ufw allow 1098
Note that replace the 1098 above with your actual port to see if it is enabled:
sudo systemctl status ufw
Finally, I hope this article is helpful to you