docker安装配置ss最新

使用docker安装配置 SS

1. Install Docker

curl -fsSl https://get.docker.com | sh

2. Create configuration file

1
2
3
4
5
6
7
8
9
10
11
12
13
mkdir -p /etc/shadowsocks-rust

cat > /etc/shadowsocks-rust/config.json <<EOF
{
"server":"0.0.0.0",
"server_port":9000,
"password":"123.shui",
"timeout":300,
"method":"aes-256-gcm",
"nameserver":"8.8.8.8",
"mode":"tcp_and_udp"
}
EOF

3. Run container

1
docker run -d -p 9000:9000 -p 9000:9000/udp --name ss-rust --restart=always -v /etc/shadowsocks-rust:/etc/shadowsocks-rust teddysun/shadowsocks-rust

4. Generate SS URL

docker exec -it ss-rust ssurl --encode /etc/shadowsocks-rust/config.json

ss://YWVzLTI1Ni1nY206MTIzLnNodWk@0.0.0.0:9000

replace 0.0.0.0 with server public IP, for example

ss://YWVzLTI1Ni1nY206MTIzLnNodWk@23.112.227.162:9000

5. Enable BBR(optional)

1
wget -N --no-check-certificate "https://github.000060000.xyz/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh

Choose 1 to install official BBR kernel. After reboot, choose 22 to optimize and enable bbr&fq.

评论


:D 一言句子获取中...

加载中,最新评论有1分钟缓存...