正向代理squid 以及tinyproxy的安装方法(centos8上)

简介: 正向代理squid 以及tinyproxy的安装方法(centos8上)

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

目录
相关文章
|
19天前
|
消息中间件 Linux API
centos7 安装rabbitmq自定义版本及配置
centos7 安装rabbitmq自定义版本及配置
|
18天前
|
弹性计算 关系型数据库 MySQL
centos7 mysql安装及配置
本文详细介绍了在阿里云服务器ECS上通过yum源安装MySQL 8.0.12的过程,包括更新yum源、下载并安装MySQL源、解决安装过程中可能遇到的问题等步骤。此外,还介绍了如何启动MySQL服务、设置开机自启、配置登录密码、添加远程登录用户以及处理远程连接异常等问题。适合初学者参考,帮助快速搭建MySQL环境。
95 8
centos7 mysql安装及配置
|
15天前
|
存储 Linux Docker
CentOS 7.6安装Docker实战案例及存储引擎和服务进程简介
关于如何在CentOS 7.6上安装Docker、介绍Docker存储引擎以及服务进程关系的实战案例。
56 3
CentOS 7.6安装Docker实战案例及存储引擎和服务进程简介
|
19天前
|
分布式计算 资源调度 Hadoop
centos7二进制安装Hadoop3
centos7二进制安装Hadoop3
|
24天前
|
Linux 开发工具 git
CentOS安装git客户端
【8月更文挑战第22天】在 CentOS 上安装 Git 可通过两种方式:一是利用 yum 包管理器,只需在终端依次执行 `sudo yum update` 和 `sudo yum install git` 命令,安装时按提示输入 y 即可;二是从源码安装,适用于有特殊需求的场景。首先安装必要的依赖库,然后下载并解压 Git 的源码包,最后通过一系列 make 命令完成配置与编译安装。无论哪种方式,安装完毕后均可通过 `git --version` 验证安装情况。
|
22天前
|
缓存 运维 Linux
深入解析:一步步掌握 CentOS 7 安装全流程及运维实战技巧
深入解析:一步步掌握 CentOS 7 安装全流程及运维实战技巧
|
22天前
|
Linux
centos安装与卸载软件
centos安装与卸载软件
22 1
|
20天前
|
Linux Python
Centos7安装Python虚拟环境之virtualenv
Centos7安装Python虚拟环境之virtualenv
|
20天前
|
存储 缓存 Linux
LDAP学习笔记之一:Centos7安装389-DS(RHDS)
LDAP学习笔记之一:Centos7安装389-DS(RHDS)
|
20天前
|
前端开发 小程序 Unix
Centos安装前端开发常用软件
Centos安装前端开发常用软件