configure ss on linux

Shadowsocks server installation:

#Debian / Ubuntu installation:
apt-get install python-pip
pip install shadowsocks

#CentOS installation:
yum install python-setuptools && easy_install pip
pip install shadowsocks

#start up:
ssserver -p 443 -k password -m aes-256-cfb
#ssserver -p server port -k password -m encryption method

#Background process
sudo ssserver -p 443 -k password -m aes-256-cfb --user nobody -d start
#ssserver -p server port -k password -m encryption method --user run user -d run in the background

#stop running
sudo ssserver -d stop

#Query log
sudo less/more /var/log/shadowsocks.log
sudo tail -f  /var/log/shadowsocks.log
# -h for help .

#You can write the configuration as a separate file, create a config.json file, and put it under / etc/shadowsocks/
(There is no such file by default, you have to create one yourself), or place it in another path.
vim config.json
server Server IP (IPv4 / IPv6), note that this will also be the IP address the server is listening on
server_port server port
local_port local port
password The password to use for encryption
timeout timeout (seconds)
method encryption method, optional " bf-cfb " , " aes-256-cfb " , " des-cfb " , " rc4 " ,
                etc. The default is an insecure encryption, " aes-256-cfb " is recommended

#Configuration complete start
ssserver -c /etc/shadowsocks/config.json

#Background process
nohup ssserver -c /etc/shadowsocks.json > /dev/null 2>&1 &

#boot to join /etc/rc.local

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324816950&siteId=291194637
ss