-
-
Save HAN5201/6f26fe159c8b6ee976a349534137a838 to your computer and use it in GitHub Desktop.
ssr脚本架设
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. sudo -i | |
2. yum update 升级系统 | |
4. curl “https://bootstrap.pypa.io/get-pip.py” -o “get-pip.py” 下载pip | |
5. python get-pip.py 安装pip | |
6. pip install shadowsocks 安装ss | |
7. vi /etc/shadowsocks.json 配置ss信息 | |
{ | |
"server":"0.0.0.0", | |
"server_port":8388, | |
"password":"password", | |
"method":"aes-256-cfb" | |
} | |
8. vi /etc/systemd/system/shadowsocks.service 创建启动脚本 | |
[Unit] | |
Description=Shadowsocks | |
[Service] | |
TimeoutStartSec=0 | |
ExecStart=/usr/bin/ssserver -c/etc/shadowsocks.json | |
[Install] | |
WantedBy=multi-user.target | |
9. systemctl enable shadowsocks 让服务ss服务生效 | |
10. systemctl start shadowsocks 启动ss | |
11. systemctl status shadowsocks -l 查看状态 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment