ShadowsockServerUpdatePort
#!/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
系统推荐
- MyBatis
- RSA 加密解密多语言实现方案
- getPath vs getAbsolutePath vs getCanonicalPath
- 微博关注关系如何实现
- 你真的会拼接字符串吗?
- 正则表达式匹配第几个符号问题
- 高可用通用方案
- MAC CMS
- 行转列不再复杂:SQL高手都在用的技巧揭秘
- 不重启 JVM,如何替换掉已经加载的类?
- SpringCloud总体认识
- WebSocket SpringBoot Demo
- 随机毒鸡汤:一只猪被孤立,于是它变成了朱古力。