安装ss

#安装 python setup tools
yum install python-setuptools -y
#安装pip
easy_install pip
#安装 *
pip install *

 

vi /etc/ssconfig.json

{
“server”:”0.0.0.0″,
“local_address”:”127.0.0.1″,
“local_port”:1080,
“timeout”:600,
“method”:”aes-256-cfb”,
“port_password”:
{
“8991”:”A用户密码”,
“8992”:”B用户密码”
}
}

 

vim /usr/lib/systemd/system/*.service

[Unit]
Description=* Server
Documentation=https://github.com/*/*
After=network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
#设置启动时的配置文件,根据自己的需求改.
ExecStart=/usr/bin/ssserver -c /etc/*-libev/config.json
-d start
ExecReload=/bin/kill -HUP $MAINPID
ExecStop=/usr/bin/ssserver -d stop

[Install]
WantedBy=multi-user.target

 

systemctl enable * systemctl start *   firewall-cmd –permanent –add-port=8989/tcp
firewall-cmd –permanent –add-port=8989/udp
firewall-cmd –reload
上一篇:搬瓦工VPS一键搭建SS教程 及 自己专属V-P-N代理


下一篇:阿里云E-MapReduce产品探秘,快速构建可扩展的高性能大数据平台