需要一台安装有docker 的 虚拟机
运行如下命令架设好服务器, 只需一条命令, 确保端口公共
docker run -d --rm --name ssr -p 81:81 malaohu/ssr-with-net-speeder -s 0.0.0.0 -p 81 -k your-password rc4-md5 -o http_simple
查看参数
root@fengUbuntu:~# docker logs ssr
* Restarting OpenBSD Secure Shell server sshd
...done.
2018-05-09 01:42:45 INFO util.py:85 loading libcrypto from libcrypto.so.1.0.0
2018-05-09 01:42:45 INFO shell.py:72 ShadowsocksR 3.4.0 2017-07-27
2018-05-09 01:42:45 INFO server.py:46 current process RLIMIT_NOFILE resource: soft 1048576 hard 1048576
2018-05-09 01:42:45 INFO asyncdns.py:324 dns server: [('168.63.129.16', 53)]
2018-05-09 01:42:45 INFO server.py:106 server start with protocol[origin] password [your-password] method [rc4-md5] obfs [http_simple] obfs_param []
2018-05-09 01:42:45 INFO server.py:142 starting server at 0.0.0.0:81
安装客户端
按参数填就是了
不想要了就 docker stop ssr 删掉
用 Azure container instance 的话, 连虚拟机都不要, 一条命令架设
az container create --name ssr --image malaohu/ssr-with-net-speeder --resource-group testACI --ip-address public --port 81 --command-line "/usr/local/bin/entrypoint.sh -s 0.0.0.0 -p 81 -k your-password -m rc4-md5 -o http_simple
查看状态
az container show --resource-group testACI --name ssr
查看参数
az container logs --resource-group testACI --name ssr
* Restarting OpenBSD Secure Shell server sshd
...done.
2018-05-09 03:57:11 INFO util.py:85 loading libcrypto from libcrypto.so.1.0.0
2018-05-09 03:57:11 INFO shell.py:72 ShadowsocksR 3.4.0 2017-07-27
2018-05-09 03:57:11 INFO server.py:46 current process RLIMIT_NOFILE resource: soft 1048576 hard 1048576
2018-05-09 03:57:11 INFO asyncdns.py:324 dns server: [('168.63.129.16', 53)]
2018-05-09 03:57:11 INFO server.py:106 server start with protocol[origin] password [your-password] method [rc4-md5] obfs [http_simple] obfs_param []
2018-05-09 03:57:11 INFO server.py:142 starting server at 0.0.0.0:81
删了
az container delete --resource-group testACI --name ssr
Feng
没有评论:
发表评论