Red Hat NETWORK PROXY SERVER 3.7 - Instrukcja Użytkownika Strona 94

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 101
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 93
84 Configuring Optional Packages
You can have Squid start and stop automatically as your machine boots
andshuts downby addingsymlinks to yoursystem’s /etc/rc.d/rc3.d
and /etc/rc.d/rc0.d directories. The following commands will create
the symlinks:
cd /etc/rc.d/rc3.d
ln -s ../init.d/squid S99squid
cd /etc/rc.d/rc0.d
ln -s ../init.d/squid K99squid
If you are using the X Window System, you can create the symlinks with
tksysv.
To run Squid, you’ll need to edit some parametersin its configuration file,
/etc/squid.conf, as follows:
1. Find the line that begins with:
#cache_mem 8
Uncomment this line and replace 8 with the amount of RAM (in
megabytes) that you want to allocate to Squid.
2. Find the line that begins with:
#cache_swap 100
Uncomment this line and replace 100 with the amount ofdisk space
(in megabytes) you want to allocate to Squid.
3. Find the following section:
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl all src 0.0.0.0/0.0.0.0
Add the following line to the end of the previous section:
acl allowed_hosts src XXX.XXX.XXX.0/255.255.255.0
Replace the Xs (before the /) with your domain subnet. Replace the
255.255.255.0 with your domain’s subnet mask.
Przeglądanie stron 93
1 2 ... 89 90 91 92 93 94 95 96 97 98 99 100 101

Komentarze do niniejszej Instrukcji

Brak uwag