centos下安装3proxy

1.安装epel

1
rpm -Uvh http://mirrors.sohu.com/fedora-epel/5Server/x86_64/epel-release-5-4.noarch.rpm

2.安装3proxy

1
yum install 3proxy -y

3.修改配置文件

1
vim /etc/3proxy.cfg

替换以下内容:

1
2
3
4
5
6
7
8
9
10
11
12
users test:CL:test
nscache 65536
daemon
log /var/log/3proxy/3proxy.log D
logformat "%d-%m-%Y %H:%M:%S %U %C:%c %R:%r %O %I %T"
archiver gz /bin/gzip %F
rotate 50
maxconn 50
auth strong
allow * * * 80 HTTP
allow * * * 443 HTTPS
proxy -a -p2323

4.启动

1
/etc/rc.d/init.d/3proxy restart