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
系统推荐
- RSA 加密解密多语言实现方案
- MySQL杂项
- Nacos-Spring Gateway-Spring boot无感发布
- MongoDB高可用
- Spring RetryTemplate
- istio基础知识
- InnoDB存储引擎
- 制作KVM ES镜像文件
- 前端axios下载csv文件乱码
- vuepress-theme-hope使用心得
- RocketMQ
- SpringBoot服务在服务启动完成前被提前注册到nacos
- 随机毒鸡汤:如果大海能够,带走我的矮丑,我就剩下黑穷两样了。