team4yf / server-yunplus-io-docker-compose

server-yunplus-io-docker-compose
1 stars 0 forks source link

Run Proxy Server #22

Open yfsoftcom opened 4 years ago

yfsoftcom commented 4 years ago

docker run -e PASSWORD=admin123 -e METHOD=aes-256-cfb -p 8388:8388 -p 9388:8388/udp -d shadowsocks/shadowsocks-libev

yfsoftcom commented 4 years ago

开机自启 以下使用Systemd来实现ss开机自启。

sudo vim /etc/systemd/system/shadowsocks.service 在里面填写如下内容:

[Unit] Description=Shadowsocks Client Service After=network.target

[Service] Type=simple User=root ExecStart=/usr/bin/sslocal -c /home/xx/Software/ShadowsocksConfig/shadowsocks.json

[Install] WantedBy=multi-user.target 把/home/xx/Software/ShadowsocksConfig/shadowsocks.json修改为你的shadowsocks.json路径,如:/etc/shadowsocks.json

配置生效:

systemctl enable /etc/systemd/system/shadowsocks.service