ShadowsockServerUpdatePort
大约 1 分钟
#!/usr/bin/env bash
sshpass -p "yourpassword" ssh root@$1 << EOF
#yum install python-setuptools && easy_install pip
#pip install shadowsocks
#sudo mkdir /etc/shadowsocks
echo '{"server":"0.0.0.0","server_port":$2,"local_address": "127.0.0.1","local_port":1080,"password":"yourpassword", "timeout":1200,"method":"aes-256-cfb","fast_open": true,"workers":3}' > /etc/shadowsocks/shadowsocks.json
ssserver -c /etc/shadowsocks/shadowsocks.json -d restart
EOF
系统推荐
- getPath vs getAbsolutePath vs getCanonicalPath
- Git笔记
- Cordova+Umi项目搭建步骤
- Oh My ZSH
- 弱引用示例
- MAC CMS
- 常用队列
- JetBrains-License-Server
- 不重启 JVM,如何替换掉已经加载的类?
- Java面试基础
- K8S常用命令
- 随机图片在线接口
- 随机毒鸡汤:你过得好我替你高兴,你过得不好,我替全世界高兴。