歡迎您光臨本站 註冊首頁

Debian/Ubuntu命令方式快速安裝squid

←手機掃碼閱讀     火星人 @ 2014-03-09 , reply:0

之前,我們介紹過如何通過源碼方式在Debian下安裝squid當然,那是個比較詳細而且略微麻煩的過程.今天我們試試用較簡單的apt命令方法安裝squid服務.看看有與源碼安裝有何配置上的差異:

一、運行squid安裝命令

[email protected]:~# apt-get install squid
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
squid-common squid-langpack
Suggested packages:
squidclient squid-cgi logcheck-database resolvconf smbclient winbind
The following NEW packages will be installed:
squid squid-common squid-langpack (這幾個軟體包將被安裝)
0 upgraded, 3 newly installed, 0 to remove and 4 not upgraded.
Need to get 1,347kB of archives.
After this operation, 8,503kB of additional disk space will be used.
Do you want to continue [Y/n]?y
Get:1 http://hk.archive.ubuntu.com/ubuntu/ lucid/main squid-langpack 20100111-1 [228kB]
Get:2 http://hk.archive.ubuntu.com/ubuntu/ lucid/main squid-common 2.7.STABLE7-1ubuntu12 [353kB] (版本是2.7.STABLE7)
Get:3 http://hk.archive.ubuntu.com/ubuntu/ lucid/main squid 2.7.STABLE7-1ubuntu12 [766kB]
Fetched 1,347kB in 7s (180kB/s)
Preconfiguring packages ...
Selecting previously deselected package squid-langpack.
(Reading database ... 43247 files and directories currently installed.)
Unpacking squid-langpack (from .../squid-langpack_20100111-1_all.deb) ...
Selecting previously jeffrey guo deselected package squid-common.
Unpacking squid-common (from .../squid-common_2.7.STABLE7-1ubuntu12_all.deb) ...
Selecting previously deselected package squid.
Unpacking squid (from .../squid_2.7.STABLE7-1ubuntu12_i386.deb) ...
Processing triggers for ureadahead ...


Processing triggers for man-db ...
Setting up squid-langpack (20100111-1) ...
Setting up squid-common (2.7.STABLE7-1ubuntu12) ...

Setting up squid (2.7.STABLE7-1ubuntu12) ...
Creating squid spool directory structure
2011/01/05 18:05:08| Creating Swap Directories (安裝時自動創建了cache緩存目錄)

二、完成安裝,進行查看:

[email protected]:~# netstat -tunlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1661/mysqld
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2433/apache2
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 597/sshd
tcp 0 0 0.0.0.0:3128 0.0.0.0:* LISTEN 2601/(squid) (squid埠正在監聽運行)

三、squid在系統內的安裝信息:

那麼,它到底將安裝目錄及配置文件放在哪裡了呢?
/etc/default/squid
/etc/init/squid.conf
/etc/init.d/squid (服務管理中添加了squid)
/etc/logrotate.d/squid (日誌管理中添加了squid)
/etc/resolvconf/update-libc.d/squid
/etc/squid/squid.conf (主要配置文件)
/usr/lib/squid/squid_session
/usr/lib/squid/squid_unix_group
/usr/lib/squid/unlinkd
/usr/lib/squid/wbinfo_group.pl

>>>閱讀全文

本文出自 「網人linux社區」 博客,請務必保留此出處http://netren.blog.51cto.com/3240427/592132


[火星人 ] Debian/Ubuntu命令方式快速安裝squid已經有517次圍觀

http://coctec.com/docs/linux/show-post-47746.html