ShadowsockServerUpdatePort
大约 2 分钟
#!/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
系统推荐
- 记一次内存泄漏
- getPath vs getAbsolutePath vs getCanonicalPath
- Spring Cloud Gateway收到的是http请求,但schema却是https
- Nacos-Spring Gateway-Spring boot无感发布
- kafka
- JDK8 G1 堆内存居然不释放
- Arthas使用记录
- Centos离线安装Docker
- Git Merge 、Rebase
- 不重启 JVM,如何替换掉已经加载的类?
- Markdown软件比对
- Linux
- 随机毒鸡汤:长得帅的踢键子都帅,长得丑的,打高尔夫都像在铲屎。