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
系统推荐
- RSA 加密解密多语言实现方案
- getPath vs getAbsolutePath vs getCanonicalPath
- Redis笔记
- Docker进行资源隔离
- ES6.2.3(3节点)数据迁移到ES7.4.1(5节点)
- Censys搜索引擎学习
- ShadowsockServer
- linux_no_space_left_on_device
- 推荐几个适用小工具
- gperftools
- vuepress-theme-hope 添加谷歌广告
- intro
- 随机毒鸡汤:多个朋友多条路,少个朋友少条岔路。