PHP菜鸟博客_共同学习分享PHP技术心得【PHP爱好者】
正向代理squid 以及tinyproxy的安装方法(centos8上)
2021-11-18 菜鸟站长
https://github.com/tinyproxy/tinyproxy.github.io

//初始位置在,源码安装,因为没找到yum源

/root



git clone git://github.com/tinyproxy/tinyproxy

cd tinyproxy

autoreconf -i

./configure

make

cd docs/web

make



启动服务器代理tinyproxy方法

/root/tinyproxy/src/tinyproxy  -c  /root/tinyproxy/etc/tinyproxy.conf


杀掉之前进程重启方法







kill   -9    $(ps aux | grep  tinyproxy | grep -v grep  | tr -s ' '| cut -d ' ' -f 2)   &&   /root/tinyproxy/src/tinyproxy  -c  /root/tinyproxy/etc/tinyproxy.conf

ps aux | grep  tinyproxy | grep -v grep  | tr -s ' '| cut -d ' ' -f 2 |  xargs kill -9    &&   /root/tinyproxy/src/tinyproxy  -c  /root/tinyproxy/etc/tinyproxy.conf






《========================================================》





//yum安装

yum -y install squid 

vim  /etc/squid/squid.conf



//修改配置文件的服务端口以及允许所有访问

#http_access deny all

http_access allow all

http_port 5678



//启动服务,以及停止服务命令

systemctl  start   squid.service

systemctl  stop   squid.service
发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容