用Python快速安装shadowsocks看世界

更新时间:2018-02-05 22:51:10点击:169979 运维资讯

centos下安装命令如下:

yum install -y python-setuptools

easy_install pip

pip install shadowsocks

shadowsocks安装完毕后,可以查看使用ssserver命令进行查看。如下:

ssserver -h

如果没有ssserver命令的话,一般是在/usr/local/bin目录下,如下:

which ssserver

我们只需要把/usr/local/bin加入到/etc/profile文件中即可。

创建shadowsocks目录,并创建其配置文件,如下:

mkdir /etc/shadowsocks

vim /etc/shadowsocks/config.json

配置文件弄好后,我们现在来启动shadowsocks,如下:

ssserver -c /etc/shadowsocks/config.json -d start

如果要停止shadowsocks服务的话,我们可以使用如下命令:

ssserver -c /etc/shadowsocks/config.json -d stop