centos SS服务器的搭建

栏目: 服务器 · 发布时间: 8年前

内容简介: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


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Zero to One

Zero to One

Peter Thiel、Blake Masters / Crown Business / 2014-9-16 / USD 27.00

“This book delivers completely new and refreshing ideas on how to create value in the world.” - Mark Zuckerberg, CEO of Facebook “Peter Thiel has built multiple breakthrough companies, and ......一起来看看 《Zero to One》 这本书的介绍吧!

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具