PS : 服务器地址-------- https://my.vultr.com/deploy/
我选的乌班图
---------------------------------------------------------------------------------
PS :安装ShadowSocket
https://www.linuxidc.com/Linux/2015-05/117290.htm
http://blog.chinaunix.net/uid-25530360-id-5595974.html
1.中间会遇到安装问题
安装使用 sudo pip install shadowsocks
pip安装软件时出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*的解决方案
PS : :set nu
本文适用于解决openssl升级到1.1.0以上版本,导致shadowsocks2.8.2启动报undefined symbol: EVP_CIPHER_CTX_cleanup错误。
PS :多用户脚本
{
"server":"207.246.123.51",
"local_address": "127.0.0.1",
"local_port":1080,
"port_password":{
"8381":"lvruihua",
"8382":"247636",
"8383":"999999",
"8384":"888888"
},
"timeout":300,
"method":"rc4-md5",
"fast_open":false,
"workers":1
}
单用户脚本:
{
"server":"207.246.123.51",
"server_port":8899,
"local_address":"127.0.0.1",
"local_port":1080,
"password":"247636",
"timeout":300,
"method":"rc4-md5",
"fast_open":false
}
ssserver -c /etc/shadowsocks.json -d start
ssserver -c /etc/shadowsocks.json -d stop
vi /etc/shadowsocks.json 修改脚本
------------后台的运行
然后运行nohup sslocal -c /etc/shadowsocks.json /dev/null 2>&1 &
启动shadowsocks。
如果想增加开启自动启动,执行:echo " nohup sslocal -c /etc/shadowsocks.json /dev/null 2>&1 &" /etc/rc.local
执行ps aux |grep sslocal |grep -v "grep"
查看后台sslocal是否运行。
PS:最后启动
--------------------centos看这