Install shadowsocks on CentOS7

Source: Internet
Author: User

Install shadowsocks on CentOS7

Use oneinstack one-click installation script to install SS

  1. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.