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