Install shadowsocks on CentOS7
Use oneinstack one-click installation script to install SS
- Install shadowsocks:
wget http://mirrors.linuxeye.com/oneinstack.tar.gztar xzf oneinstack.tar.gzcd oneinstack./shadowsocks.sh install
Set an SS password, which will be used to connect to the SS server. After the password is set, the port is required to be set. The default value is 9001;
This information is displayed after the installation is successful. You need to record the information to facilitate the connection;
To add a user:
Run./shadowsocks. sh adduser
Add a port to the firewall:
The default Firewall for CentOS 7 is Firewall. Run the following command:
firewall-cmd --permanent --add-port=9001/tcpfirewall-cmd --reload
9001 indicates the service port number, which is modified according to the previous settings.
Shadowsocks service management command:
systemctl start shadowsockssystemctl stop shadowsockssystemctl restart shadowsockssystemctl status shadowsocks
- If the connection fails, we recommend that you disable the firewall and try again.
systemctl stop firewalld.serviceStop firewall