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
系统推荐
- MAT工具
- getPath vs getAbsolutePath vs getCanonicalPath
- Notion笔记定时备份
- Btrace入门
- 弱引用示例
- NGINX
- ShadowsockServer
- 如何安装Google BBR
- Arthas使用记录
- SQL优化
- 前后端常用技术
- 批量替换文件名中的指定字符串
- 随机毒鸡汤:你的护肤品真好,不然你的脸,为什么保养的这么厚?