内容简介:centos SS服务器的搭建
yum install python-setuptools && easy_install pip pip install shadowsocks //配置文件 vi /etc/shadowsocks.json
配置文件的内容
{
"server":"my_server_ip",
"local_address": "127.0.0.1",
"local_port":1080,
"port_password": {
"8381": "foobar1",
"8382": "foobar2",
"8383": "foobar3",
"8384": "foobar4"
},
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false
}
| Name | Explanation |
|---|---|
| server | the address your server listens(服务器IP) |
| local_address | the address your local listens(本地代理地址) |
| local_port | local port(本地代理端口) |
| port_password | password used for encryption(自己设定的服务器端口和密码) |
| timeout | in seconds(超时断开,以秒为单位) |
| method | default: “aes-256-cfb”, see Encryption(加密方式) |
| fast_open | use TCP_FASTOPEN, true / false(是否使用TCP) |
| workers | number of workers, available on Unix/Linux(这个只在Unix和 Linux 下有用,可不设置) |
开始:ssserver -c /etc/shadowsocks.json -d start 结束:ssserver -c /etc/shadowsocks.json -d stop 设置开机启动 设置好了,但是如果只是这样,那每次都要手动启动ss,太麻烦。可以将其加到开机启动项。 putty输入vi /etc/rc.local,然后将里面的最后带有ssserver的删除(双击字母d),然后加入ssserver -c /etc/shadowsocks.json -d start,再wq保存退出
tail -f /var/log/shadowsocks.log 查看日志
yum install libcrypto.so.10
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Learn Python the Hard Way
Zed Shaw / Example Product Manufacturer / 2011
This is a very beginner book for people who want to learn to code. If you can already code then the book will probably drive you insane. It's intended for people who have no coding chops to build up t......一起来看看 《Learn Python the Hard Way》 这本书的介绍吧!