ShadowsockServer
#!/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
系统推荐
- Redis笔记
- ES6.2.3(3节点)数据迁移到ES7.4.1(5节点)
- 数组转树形结构只需两步
- Censys搜索引擎学习
- 提取Docker镜像中的文件
- Thread & ExecutorService & ThreadPoolExecutor 总览
- 你真的会拼接字符串吗?
- Javassist整理
- CountDownLatch源码解读
- JetBrains-License-Server
- 前后端常用技术
- 随机图片在线接口
- 随机毒鸡汤:发丝千万条 睡眠第一条,熬夜不休息 脱发两行泪。