1. Frist you need to install Development tools #yum groupinstall "Development Tools" 2. Get the  “squid 2.7 ” source.decompress it.  #wget http://www.squid-cache.org/Versions/v2/2.7/squid-2.7.STABLE9.tar.gz #tar -xzvf  squid-2.7.STABLE9.tar.gz 3. change directory to squid -2.7
root@xyz squid-2.7.STABLE9]# check configure options by #./configure -help 4. Select your configuration like ./configure --enable-gnuregex --enable-carp --with-pthreads --enable-heap-replacement --enable-icmp --enable-delay-pools  --enable-useragent-log --enable-htcp --with-openssl --enable-linux-netfilter  --disable-internal-dns --enable-auth=digest,ntlm,basic --enable-auth-baisc=PAM,NCSA,LDAP --enable-auth-basic=none --enable-basic-auth-helpers=PAM,NCSA,LDAP --enable-external-acl-helpers=unix_group,ldap_group --with-filedescriptors=8192 --enable-removal-policies=lru,heap 5.Make it. #make Installation for installation you need to have root privileges . # su
# make Install if you get it without errors congratulate yourself. and proceed to next step . Your default installation directory is #/usr/local/squid/ 6.post-Installation After compiling and installing squid, you should create the cache_dir, give it the rights permissions for the squid user/group and then run:

#/usr/sbin/squid -z
to initialize the cache_dir and create the necessary subdirs
If everything works as expected then try to start squid normally
   
Code:
   
#/usr/sbin/squid
 

7. Debug.

If you get any errors start squid in debug mode to get the errors on screen:
   
Code:
   
#/usr/sbin/squid -N -d 5

6.3安装squid的更多相关文章

  1. CentOS安装squid代理服务器

    Squid是一个Linux系统下优秀的代理服务器软件.Squid可以配置普通上网代理(正向代理).反向代理.透明代理.系统是CentOS6.2.Squid主机IP为192.168.1.100. 安装s ...

  2. CentOS 7安装squid代理服务器

    Squid,一个高性能的代理缓存服务器,支持FTP.gopher.HTTP协议. Squid,一个缓存Internet 数据的软件,其接收用户的下载申请(作为代理服务器),并自动处理所下载的数据,并返 ...

  3. Linux服务器---安装squid

    安装squid proxy就是软件代理或者代理服务器,而squid就是一种常用的proxy服务 1.安装squid [root@localhost wj]# rpm -qa | grep squid ...

  4. ubuntu16安装squid代理服务器

    如果有一台电脑可以上网,想让其他电脑通过代理上网.可以使用这种方法. 1 安装squid sudo apt-get update sudo apt-get install squid 2 修改配置文件 ...

  5. 安装Squid到CentOS(YUM)

    运行环境 系统版本:CentOS Linux release 7.3.1611 (Core) 软件版本:无 硬件要求:无 安装过程 1.关闭防火墙和SeLinux [root@localhost ~] ...

  6. ubuntu12.04安装squid

    一:简介 1.Squid:优化Web交付 Squid是支持HTTP,HTTPS,FTP等的Web的缓存代理.它通过缓存和重用经常请求的网页来减少带宽并缩短响应时间.Squid拥有广泛的访问控制,是一个 ...

  7. centos 安装squid http代理

    yum -y install squid service squid start service iptables stop

  8. squid 2.7 配置与安装

    1.准备安装包 2.准备编译环境 yum -y install gcc 3.编译安装squid ./configure \--prefix=/data/squid \--disable-interna ...

  9. 【转载】CentOS 6.4下Squid代理服务器的安装与配置

    一.简介 代理服务器英文全称是Proxy Server,其功能就是代理网络用户去取得网络信息. Squid是一个缓存Internet 数据的软件,其接收用户的下载申请,并自动处理所下载的数据.当一个用 ...

随机推荐

  1. java学习笔记——基于Robot类的屏幕分享

    直接上代码,具体看注释: package robot; import java.awt.AWTException; import java.awt.Dimension; import java.awt ...

  2. cf804C(dfs染色)

    题目链接: http://codeforces.com/problemset/problem/804/C 题意: 有一颗含有 n 个顶点的树, 第 i 个顶点上有 k 个冰激凌, 每个冰激凌的种类为 ...

  3. 清北刷题冲刺 11-03 a.m

    纸牌 #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> ...

  4. NoSuchMethodError idea解决jar包冲突

    报NoSuchMethodError(使用spring boot框架idea)一般是jar包冲突 Exception in thread"main" java.lang.NoSuc ...

  5. 毕马威&阿里:通向智能制造的转型之路

    文章发布于公号[数智物语] (ID:decision_engine),关注公号不错过每一篇干货. 2019 年 4 月 17 日,毕马威与阿里研究院携手举办了智能经济主题报告发布会,从技术.制造.组织 ...

  6. C. Increasing by Modulo

    给定n个模m的数字 可以选择k个数字进行操作,操作时对该数字进行+1模m 求解最少多少次操作可以使得该数列变成单调不下降序列 实际上就是二分操作数目,其中操作数目肯定不会超过m 然后我们将左右边界变成 ...

  7. 洛谷2018寒假集训tg第二次比赛第二题Princess Principal题解

    这算不算泄题啊...被kkk发现会咕咕咕吧. 题目大意:给定一个数列a,与常数n,m,k然后有m个询问,每个询问给定l,r.问在a[l]到a[r]中最少分成几段,使每段的和不超过k,如果无解,输出Ch ...

  8. BZOJ 4919: [Lydsy1706月赛]大根堆 启发式合并

    我不会告诉你这是线段树合并的好题的... 好吧我们可以搞一个multiset在dfs时求出LIS(自带二分+排序)进行启发式合并,轻松加愉悦... #include<cstdio> #in ...

  9. kindle资源

    化繁为简!Kindle 漫画和电子书 资源汇总 & 用法 刚入Kindle那会,在网上翻看了不少文章,有的讲怎么下载电子书,有的讲怎么看漫画,有的讲怎么设置推送邮箱…… 好吧,我不想在用Kin ...

  10. hutool java工具架包功能介绍

    https://blog.csdn.net/lx1309244704/article/details/76459718