【SS & KCP centos7配置】
1 依赖和环境配置
1.1 升级 yum
$ yum update
1.2 安装 screen
$ yum install screen
关于 screen 的详情:http://www.vpser.net/manage/screen.html
1.3 安装 wget
wget 是一个 Linux 下一个下载文件的工具,在这里我们用来下载稍后的 lnmp 一键安装包。安装 wget 的方法是:
$ yum -y install wget
1.4 安装 Python、Python-setuptools 和 pip
- Python 在 CentOS 中已经内置,因此不必特意安装;
- 安装 Python-setuptools 和 pip:
$ yum install python-setuptools && easy_install pip
2 安装 Shadowsocks
2.1 安装 Shadowsocks
$ pip install shadowsocks
2.2 创建 Shadowsocks 配置文件
$ vi /etc/shadowsocks.json
{
"server":"服务器ip",
"local_address": "127.0.0.1",
"port_password":
{
"516":"密码"
},
"local_port":1080,
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false
}
2.3 启动 Shadowsocks
$ ssserver -p 8000 -k password -m rc4-md5 -d start
2.4 停止 Shadowsocks
$ sudo ssserver -d stop
2.5 检查 Shadowsocks 日志
$ sudo less /var/log/shadowsocks.log
2.6 使用配置文件启动 Shadowsocks
$ ssserver -c /etc/shadowsocks.json -d start $ ssserver -c /etc/shadowsocks.json -d stop
2 安装 kcptun
https://blog.kuoruan.com/110.html
确定ss服务器ip
netstat - ss服务器端口]
wget --no-check-certificate https://github.com/kuoruan/shell-scripts/raw/master/kcptun/kcptun.sh
chmod +x ./kcptun.sh
./kcptun.sh
配置文件在 /usr/local/kcptun 目录下。配置文件 server-config.json
{
"listen": ":29900",
"target": "ssIP地址:端口",
"key": "veryfast",
"crypt": "aes",
"mode": "fast2",
,
,
,
,
,
,
"nocomp": false,
"quiet": false,
"pprof": false
}
安装之后,Kcptun 服务交由 Supervisor 管理。
supervisorctl {start|stop|restart|status} kcptun
【SS & KCP centos7配置】的更多相关文章
- Centos7 配置网络步奏详解
Centos7 配置网络步奏详解 编辑网卡配置文件 vi /etc/sysconfig/network-script/ifcfg-ens01 备注:这里的ens01不是所有系统都叫这个,有的可能叫其他 ...
- centos7配置开启无线网卡,重启防火墙
centos7配置无线网卡: 在虚拟机为nat的网络连接下(就是默认的那个),centos7默认网卡未激活. 可以设置 文件 /etc/sysconfig/network-scripts/ifcfg- ...
- Centos7配置JAVA_HOME
Centos7配置JAVA_HOME http://blog.csdn.net/zzpzheng/article/details/73613838 在Centos7上,通过yum install ja ...
- Centos7配置NFS
centos7配置nfs yum -y install nfs-utils rpcbind 设置服务开机启动: systemctl enable rpcbind systemctl enable nf ...
- ss server端配置
关于ss server的配置,可以参考一个网址 关于服务器的购买可以上VIRMACH购买 和本地安装ss类似,首先安装ss,pip install shadowsocks 配置服务器参数,vim /e ...
- Centos7 配置ssh连接
Centos7 配置ssh连接 1.检查是否安装openssh-server:#yum list installed | grep openssh-server 安装openssh-server:#y ...
- CentOS7 配置静态 ip
1. 为 CentOS7 配置静态 ip 1.1 修改文件/etc/sysconfig/network-scripts/ifcfg-ens33 sudo vi /etc/sysconfig/netwo ...
- virtualbox 最小化安装centos7 配置双网卡(nat和桥接)记录----已经过期
该文章已经过期 请参考另一篇文章:virtualbox 安装centos7 配置桥接网卡,实现主机和虚拟机互通,虚拟机可以访问外网,解决无法上网问题 先说明一下为什么要配置双网卡? 配置nat ...
- Centos7配置samba
Centos7配置samba 1.安装 yum install samba samba-client samba-common -y 2.配置 备份已有配置mv /etc/samba/smb.conf ...
随机推荐
- Jupyter notbook& REVEAL.JS& nbconvert 使用jupyter notebook制作slides
使用Jupyter notebook作为slide主要有两个方面: 在运行notebook 的时候可以幻灯片播放 这样幻灯片就有了notebook可交互的功能,而notebook就有了幻灯片全屏容易分 ...
- leetcode 639 Decode Ways II
首先回顾一下decode ways I 的做法:链接 分情况讨论 if s[i]=='*' 考虑s[i]单独decode,由于s[i]肯定不会为0,因此我们可以放心的dp+=dp1 再考虑s[i-1] ...
- Hibernate 对象关系映射文件
简介: POJO 类和关系型数据库之间的映射可以用一个 XML 文档来定义 通过 POJO 类的数据库映射文件,Hibernate 可以理解持久化类和数据表之间的对应关系,也可以理解持久化类属性与数据 ...
- GitHub的实现是否是基于此语言的支持网络编程性呢?
我觉好像是的,我之前很奇怪为什么那样就可以引用了,后来发现GitHub中的java JavaScript phton等语言都支持网络编程.
- myeclipse 无法启动Tomcat(程序未设置断点)This kind of launch is configured to open the Debug perspective ...
myeclipse 中在新建一个项目之后想要运行一下,可是却提示This kind of launch is configured to open the Debug perspective,下面是我 ...
- wangEditor大图片上传问题
wangEditor上传大图片时候会 上传超时.后端没有问题,我百度很多,又去群里问,都得不到答案.最后问同事,有个属性 editor.config.uploadTimeout = 10000000 ...
- GMA Round 1 新程序
传送门 新程序 程序框图如图所示,当输入的n=时,输出结果的ans是多少? 容易看出该程序求n以内质数个数,50以内有15个. 定位:简单题
- (93)Wangdao.com_第二十六天_鼠标事件
鼠标事件 与鼠标相关的事件,继承了 MouseEvent 接口 分类: click 按下鼠标(通常是按下主按钮)时触发. mousedown 首先触发,mouseup 接着 ...
- [LeetCode] Insert into a Cyclic Sorted List 在循环有序的链表中插入结点
Given a node from a cyclic linked list which is sorted in ascending order, write a function to inser ...
- 7、vue-awesome-swiper页面跳转
<template> <swiper :options='swiperOption' ref="mySwiper" class='swiper-container ...