dreamno

导航

 

在买来的[vps优惠]搬瓦工bandwagonhost最低年付 $3.99上搭建了一下

 

如果不太懂vps操作,可使用一键包:
debian下***-libev一键安装脚本

 

搬瓦工vps的购买请参考:[vps优惠]搬瓦工bandwagonhost最低年付 $3.99

 

 还有个vps 仅供参考 : http://www.ramnode.com/


 

apt方式安装***

小内存自然要使用debian,下面介绍在debian系统中使用apt方式搭建***。

1、追加软件源

debian 6系统执行以下命令

1
echo "deb http://***.org/debian squeeze main" >> /etc/apt/sources.list

debian 7系统执行以下命令

1
echo "deb http://***.org/debian wheezy main" >> /etc/apt/sources.list

然后更新源并安装

1
2
apt-get update
apt-get install ***

2、配置***

vi如何使用请参考:vim的基本用法

1
vi /etc/***/config.json
1
2
3
4
5
6
7
8
{
          "server":"vps的ip",
          "server_port":8388,   #服务器端口,与SSH端口不一样
          "local_port":1080,
          "password":"barfoo!", #认证密码
          "timeout":60,
          "method":"aes-256-cfb" #加密方式,推荐使用aes-256-cfb
}

3、重启***服务。

1
2
/etc/init.d/*** stop
/etc/init.d/*** start

编译方式安装***

编译安装方式版本一般比较新。

如果你已经采用apt方式安装过***,那么使用如下命令删除已安装的***

1
dpkg -P ***

1、编译安装***

安装编译所需包

1
2
apt-get update
apt-get install build-essential autoconf libtool libssl-dev git

然后通过git下载源码:

1
git clone https://github.com/madeye/***-libev.git

进入目录编译安装

1
2
3
cd ***-libev
./configure --prefix=/usr
make && make install

配置服务及配置文件

1
2
3
4
5
mkdir -p /etc/***-libev
cp ./debian/***-libev.init /etc/init.d/***-libev
cp ./debian/***-libev.default /etc/default/***-libev
cp ./debian/config.json /etc/***-libev/config.json
chmod +x /etc/init.d/***-libev

2、配置***配置文件

1
vi /etc/***-libev/config.json
1
2
3
4
5
6
7
8
{
          "server":"vps的ip",
          "server_port":8388,   #服务器端口,与SSH端口不一样
          "local_port":1080,
          "password":"barfoo!", #认证密码
          "timeout":60,
          "method":"aes-256-cfb" #加密方式,推荐使用aes-256-cfb
}

3、重启***服务。

1
2
/etc/init.d/***-libev stop
/etc/init.d/***-libev start

 

from:http://www.tennfy.com/1477.html

posted on 2015-11-19 09:44  dreamno  阅读(135)  评论(0)    收藏  举报