一、首先启用:CentOS Extras repository
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都可以连接
vi /etc/tinyproxy/tinyproxy.conf
四、启动Tinyproxy服务,并设置开机自启
systemctl restart tinyproxy.service systemctl enable tinyproxy.service
五、防火墙开放8888(或已经自定义)端口
firewall-cmd --zone=public --add-port=8888/tcp --permanent firewall-cmd --reload