Shadowsock Server搭建
大约 2 分钟
#!/usr/bin/env bash
echo $1
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":12345,"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
docker pull oddrationale/docker-shadowsocks
docker run -d -p 12345:12345 oddrationale/docker-shadowsocks -s 0.0.0.0 -p 12345 -k yourpassword -m aes-256-cfb
系统推荐
- Cordova+Umi项目搭建步骤
- Notion笔记定时备份
- MySQL杂项
- HTTP1 0 vs HTTP1 1 vs WebSocket
- 线上FullGC频繁的排查
- index方法压力测试记录
- Git Merge 、Rebase
- 不重启 JVM,如何替换掉已经加载的类?
- sofajraft
- 免费 API 每日提供摸鱼日报,自动返回无水印图片,适用于公众号和小程序
- K8S常用命令
- raft协议
- 随机毒鸡汤:早恋影响成绩,是一个很好的掩饰自己,没脑子学习的理由。