免费资源
我们一直在努力

Linux上使用kingate安装http代理服务

kingate是一位国人开发的代理服务器,支持http,socks,ftp等多种协议。支持多线程、tcp端口映射、规则控制、时间控制、用户认证、http管理等功能。

kingate官网:http://sourceforge.net/projects/kingate/

安装所需的依赖包

Debian:

apt-get install build-essential automake make gcc g++

Centos:

yum install make automake gcc gcc-c++ gcc-g77

安装kingate:

wget http://softlayer.dl.sourceforge.net/project/kingate/kingate/2.0/kingate-2.0.tar.gz
tar xzf kingate-2.0.tar.gz
cd kingate-2.0/
./configure --prefix=/usr/local/kingate
make && make install

配置kingate

修改/usr/local/kingate/etc/kingate.conf 为以下内容:

http off
ftp off
pop3 off
smtp off
telnet off
socks on
mms off
rtsp off
manage on
max 2000
max_per_ip 0
min_free_threa...

以上配置中,socks on 表示启用socks代理(也可以根据你自己的需求开启其他类型的代理),socks_port 20120 表示socks代理的端口。manage on 为启用http管理,manage_port 8822 为http管理的端口。强烈建议修改端口号!

kingate启动及管理

下载启动脚本及添加权限

wget http://soft.vpser.net/proxy/kingate/kingate.init.d
mv kingate.init.d /etc/init.d/kingate
chmod +x /etc/init.d/kingate

kingate管理
启动kingate:

/etc/init.d/kingate start

关闭kingate:

/etc/init.d/kingate stop

重启kingate:

/etc/init.d/kingate restart

http管理
管理地址:http://ip:8822 ,如果修改过配置,8822端口修改为你设置的端口号,默认用户名为root,密码为kingate。

加入开机启动

Debian执行:

update-rc.d -f kingate defaults

CentOS执行:

chkconfig --level 345 kingate on

赞(2)
未经允许不得转载:免费资源网 » Linux上使用kingate安装http代理服务
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址