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
系统推荐
- MySQL杂项
- HTTP1 0 vs HTTP1 1 vs WebSocket
- K8S 无感发布
- 提取Docker镜像中的文件
- Hadoop 一
- Docker笔记
- 分库分表
- JVM异常处理
- Git历史记录修改用户名和邮箱
- Java面试基础
- intro
- Linux dev shm目录
- 随机毒鸡汤:我爸开法拉利,我妈开玛莎拉蒂,我开玩笑。