Skip to content

Instantly share code, notes, and snippets.

@ComeBey
Last active January 31, 2024 00:45
Show Gist options
  • Save ComeBey/92801392ae95dbdf3a3a263be99fb05f to your computer and use it in GitHub Desktop.
Save ComeBey/92801392ae95dbdf3a3a263be99fb05f to your computer and use it in GitHub Desktop.
ssr脚本架设
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