ss在linux下安装的步骤

[linux] 2024-04-28 圈点307

摘要:ss在linux下安装的步骤,如在Debian / Ubuntu等系统上安装。

ss在linux下安装的步骤,如在Debian / Ubuntu等系统上安装。


1,一般是先安装pip

#Debian / Ubuntu安装pip:

apt-get install python-pip


#CentOS安装pip:

yum install python-setuptools && easy_install pip



2,在pip中安装ss

pip install shadowsocks


3,启动SS

ssserver -p 443 -k password -m aes-256-cfb

也可以用配置文件配置在config.json文件,放在shadowsocks目录中。

ssserver -c path/config.json


参数介绍:

server          服务器IP(IPv4/IPv6),注意这也将是服务端监听的IP地址

server_port     服务器端口

local_port      本地端端口

password        用来加密的密码

timeout         超时时间(秒)

method          加密方法,可选"bf-cfb","aes-256-cfb","des-cfb","rc4",

                等等。默认是一种不安全的加密,推荐用 "aes-256-cfb"



4,停止:

sudo ssserver -d stop


5,其它

也可以加入开机启动,及后台运行。


ss  

感谢反馈,已提交成功,审核后即会显示