Chinaunix首页 | 论坛 | 博客
  • 博客访问: 340371
  • 博文数量: 54
  • 博客积分: 497
  • 博客等级: 下士
  • 技术积分: 612
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-16 20:05
个人简介

行动…Don\'t ever let somebody tell you, you can\'t do something. you got a dream, you gotta protect it. people can\'t do something themselves they wanna tell you you can\'t do it.if you want something. go get it.

文章分类

全部博文(54)

文章存档

2021年(3)

2018年(1)

2017年(18)

2016年(7)

2015年(4)

2013年(1)

2011年(20)

我的朋友

分类: LINUX

2017-12-22 14:26:08

YUM安装后,直接在配置文件中添加以下内容:
把/etc/squid/squid.conf  重命名。
重新创建 vi /etc/squid/squid.conf
写入:
http_port 192.168.1.22:3128
cache_mem 64 MB
cache_dir ufs /opt/squid_cache 4096 16 256
cache_effective_user squid
cache_effective_group squid
dns_nameservers 8.8.8.8
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
http_access allow all


重启服务。成功
由于服务器搭建在内部,要把3128端口映射出去。便可使用。
阅读(1671) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~