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
系统推荐
- NGINX
- Spring框架源码关键点
- Hadoop 一
- 正则表达式匹配第几个符号问题
- istio基础知识
- Spring Boot升级到2 6 x踩的坑
- JVM杂项
- ES杂项
- RocketMQ
- vuepress-theme-hope 添加谷歌广告
- GitHub Workflow突然报错
- WebSocket SpringBoot Demo
- 随机毒鸡汤:朋友说借点儿钱回头给你,之后我才知道,有些人一转身就是一辈子。