Linux(CentOS and Ubuntu)安装Shadowsocks服务端server教程
来源:互联网 发布:手机图片制作软件 编辑:程序博客网 时间:2024/05/16 11:37
安装 Shadowsocks
Ubuntu
apt-get install python-pippip install shadowsocks
CentOS
yum install python-setuptools && easy_install pippip install shadowsocks
配置
创建配置文件: /etc/shadowsocks.json
内容如下:
{ "server":"1.2.3.4", // 服务器IP "server_port":8888, // 对外提供服务的端口 "local_port":1080, "password":"your password", "timeout":600, "method":"aes-256-cfb"}
如果需要分配多个帐号,配置如下:
{ "server":"1.2.3.4", "port_password":{ "8888":"password1", "8889":"password2", "8890":"password3", "8891":"password4" }, "timeout":600, "method":"aes-256-cfb"}
Shadowsocks 官方使用说明: 前去阅读
启动 Shadowsocks
前台启动
ssserver -c /etc/shadowsocks.json
后台运行
ssserver -c /etc/shadowsocks.json -d start # 启动ssserver -c /etc/shadowsocks.json -d stop # 停止
安装 Supervisor
通常情况下,我们不希望每次系统启动的时候手动去启动进程和服务,这时候,我们需要一个进程管理工具,这里介绍使用的是 Supervisor。 Supervisor 介绍、安装和使用的教程详见: Supervisor 安装使用教程
使用 Supervisor 管理 Shadowsocks 的配置如下,在 /etc/supervisord.conf
中添加:
[program:shadowsocks]command=ssserver -c /etc/shadowsocks.jsonautostart=trueautorestart=trueuser=rootlog_stderr=truelogfile=/var/log/shadowsocks.log
Shadowsocks 配置完毕。
1 0
- Linux(CentOS and Ubuntu)安装Shadowsocks服务端server教程
- 在CentOS 6.6上安装ShadowSocks服务端
- Centos 搭建Shadowsocks服务端
- Ubuntu 搭建shadowsocks服务端
- Ubuntu 搭建 Shadowsocks服务端
- Ubuntu下安装ShadowSocks Server和ShadowSocks Client
- shadowsocks 服务端安装
- Shadowsocks服务端安装
- Centos7 shadowsocks服务端安装
- CentOS搭建shadowsocks-libev服务端
- Windows server 搭建 shadowsocks服务端
- Setup Your Own Shadowsocks Server On Debian, Ubuntu, CentOS
- Ubuntu下配置Shadowsocks服务端
- 关于 Linux Ubuntu的shadowsocks 安装配置
- ubuntu proxychains and shadowsocks
- Linux(CentOS)安装SVN服务端
- Linux(CentOS)安装MySQL服务端
- Git服务端安装-linux(centos)
- mysqlreport使用详解
- (译)让CSS更完美:PostCSS-modules
- 40.before伪类的添加
- Spring的Assert工具类的用法
- 初识SpringMVC
- Linux(CentOS and Ubuntu)安装Shadowsocks服务端server教程
- nodejs做小爬虫 nodejs 学习 day3
- EventBus原理源码分析和使用
- vi 使用
- Poj 3070 Fibonacci (矩阵快速幂 )
- 代理模式
- Hive HDF java 开发
- uefi中使用watchdog
- Linux下解压hadoop2.2.0.tar.gz出错:gzip: stdin: unexpected end of file解决