
It is very important to have sufficient memory for the Squid process, because system
performance is dramatically reduced if it must be swapped to disk. The cachemgr.cgi
tool can be used for the cache memory management. This tool is introduced in
Sec-
tion 41.6, “cachemgr.cgi”
(page 794). Sites with huge network traffic should consider
using an AMD64 or Intel 64 system with more than 4 GB of memory.
41.2.4 CPU
Squid is not a program that requires intensive CPU usage. The load of the processor is
only increased while the contents of the cache are loaded or checked. Using a multipro-
cessor machine does not increase the performance of the system. To increase efficiency,
it is better to buy faster disks or add more memory.
41.3 Starting Squid
Squid is already preconfigured in SUSE® Linux Enterprise Server, you can start it right
after the installation. To ensure a smooth start-up, the network should be configured in
a way that at least one name server and the Internet can be reached. Problems can arise
if a dial-up connection is used with a dynamic DNS configuration. In this case, at least
the name server should be entered, because Squid does not start if it does not detect a
DNS server in
/etc/resolv.conf
.
41.3.1 Commands for Starting and Stopping
Squid
To start Squid, enter
rcsquid start
at the command line as
root
. In the initial
start-up, the directory structure of the cache must first be defined in
/var/cache/
squid
. This is done automatically by the start script
/etc/init.d/squid
and
can take a few seconds or even minutes. If
done
appears to the right in green, Squid
has been successfully loaded. To test the functionality of Squid on the local system,
enter
localhost
as the proxy and
3128
as the port in the browser.
To allow users from the local system and other systems to access Squid and the Internet,
change the entry in the configuration files
/etc/squid/squid.conf
from
http_access deny all
to
http_access allow all
. However, in doing
The Proxy Server Squid
783
Содержание LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 11-05-2007
Страница 1: ...SUSE Linux Enterprise Server www novell com 10 May 11 2007 Installation and Administration...
Страница 14: ......
Страница 19: ...Part I Deployment...
Страница 20: ......
Страница 60: ......
Страница 128: ......
Страница 243: ...Part II Administration...
Страница 244: ......
Страница 274: ......
Страница 312: ......
Страница 348: ......
Страница 380: ......
Страница 381: ...Part III System...
Страница 382: ......
Страница 438: ......
Страница 452: ......
Страница 478: ......
Страница 486: ......
Страница 498: ......
Страница 512: ......
Страница 558: ......
Страница 559: ...Part IV Services...
Страница 560: ......
Страница 652: ......
Страница 670: ......
Страница 742: ......
Страница 754: ......
Страница 796: ......
Страница 817: ...Part V Security...
Страница 818: ......
Страница 858: ......
Страница 886: ......
Страница 910: ......
Страница 911: ...Part VI Troubleshooting...
Страница 912: ......
Страница 924: ......