Centos搭建http代理

1.安装tinyproxy

yum -y install tinyproxy

2.修改配置

vim /etc/tinyproxy/tinyproxy.conf

# 修改代理服务端口
Port 8888

# 注释
#Allow 127.0.0.1

# 解开注释
DisableViaHeader Yes

3.启动命令

systemctl start tinyproxy.service


systemctl restart tinyproxy.service 
systemctl stop tinyproxy.service 
systemctl status tinyproxy.service 
systemctl enable tinyproxy.service 

4. 关闭防火墙

systemctl status firewalld.service

 

posted on 2021-05-05 17:05  信奉上帝的小和尚  阅读(837)  评论(0编辑  收藏  举报

导航