centos7安装tinyproxy,centos6安装tinyproxy,centos6/7安装tinyproxy(yum安装),yum安装tinyproxy
一、首先启用:CentOS Extras repository
CentOS and Red Hat Enterprise Linux 5.x
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpm sudo rpm -Uvh epel-release-5*.rpm
CentOS and Red Hat Enterprise Linux 6.x
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm sudo rpm -Uvh epel-release-6*.rpm
CentOS and Red Hat Enterprise Linux 7.x
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm sudo rpm -Uvh epel-release-latest-7*.rpm
二、安装tinyproxy
yum install tinyproxy
三、配置tinyproxy,修改Allow 127.0.0.1为自己IP,只允许自己使用,或者在Allow前面打#注释,允许任何IP都可以连接
vim /etc/tinyproxy/tinyproxy.conf
四、启动Tinyproxy服务,并设置开机自启
service tinyproxy restart chkconfig --level 345 tinyproxy on
五、防火墙开放8888(或已经自定义)端口
iptables -I INPUT -p tcp --dport 8888 -j ACCEPT
Copyright:www.cplusplus.me Share、Open- C/C++程序员之家