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
系统推荐
- MyBatis
- getPath vs getAbsolutePath vs getCanonicalPath
- synchronized原理深度剖析
- Censys搜索引擎学习
- 批量修改git历史记录中的用户名和邮箱
- Paxos算法
- 常用队列
- Lombok的Accessors导致EasyExcel读取失败
- Markdown软件比对
- Nginx的双向认证配置
- Docker隐射的端口外网不能访问
- 随机图片在线接口
- 随机毒鸡汤:对生活抱有三分热情,当它泼你冷水的时候,才不至于那么冷。