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
系统推荐
- MAT工具
- Git合并多个提交并push到远程仓库
- Docker进行资源隔离
- Nacos-Spring Gateway-Spring boot无感发布
- MongoDB高可用
- 你真的会拼接字符串吗?
- index方法压力测试记录
- 制作KVM ES镜像文件
- CountDownLatch源码解读
- ES杂项
- MySQL数据迁移到PGSQL
- Linux dev shm目录
- 随机毒鸡汤:我从毕业到现在有两个亿,一个回忆,一个失忆。