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
系统推荐
- Notion笔记定时备份
- MySQL杂项
- ES6.2.3(3节点)数据迁移到ES7.4.1(5节点)
- NGINX
- 提取Docker镜像中的文件
- Javassist整理
- AQS源码解读
- Spring Boot升级到2 6 x踩的坑
- Lombok的Accessors导致EasyExcel读取失败
- WebSocket SpringBoot Demo
- 杂记
- Linux dev shm目录
- 随机毒鸡汤:春风不度玉门关,我佛不渡铁憨憨。