Installation and multi-user configuration of centos, multiple users of centos
The operating system of the environment is CentOS 6.
1. Enter the terminal
2. Run yum-y install python-setuptools to install the python package management tool.
3. Run yum-y easy_install pip to install the python package management tool.
Create a Shadowsocks configuration file, which can be stored anywhere.
4 vi/etc/shadowsocks. json
The configuration is as follows:
{ "server":"your_server_ip", "server_port":8388, "local_address": "127.0.0.1", "local_port":1080, "password":"*********", "timeout":300, "method":"aes-256-cfb", "fast_open": false}
Note:
Server: Your server ip Address
Server_port: Port Number (each account cannot be the same)
Local_address: local address, which is generally the same
Local_port: local port, which is generally not changed
Password: connection password
Timeout: Corresponding timeout time
Method: Encryption method
Fast_open: Use TCP_FASTOPEN. The Parameter options are true/false. Generally, keep the default value.
Save the settings.
5. Start the movie shuttle service
ssserver -c /etc/shadowsocks.json -d start
6. Stop the Tissot service.
ssserver -c /etc/shadowsocks.json -d stop
7. What if I want to configure multiple users?
Method 1:
{"Server": "your_server_ip", "local_address": "127.0.0.1", "local_port": 1080, "port_password": {# port number and password "8989": "password0 ", # The port number is on the left, and the password "9001": "password1", "9002": "password2", "9003": "password3", "9004 ": "password4"}, "timeout": 300, "method": "aes-256-cfb", "fast_open": false}
Method 2:
{ "timeout": 600, "method": "aes-256-cfb", "port_password": { "40001": "password1", "40002": "password2", "40003": "password3" }, "_comment": { "40001": "xiaoming", "40002": "lilei",
"40003": "mike" } }