Cov txheej txheem:

Koj khiav squid li cas?
Koj khiav squid li cas?

Video: Koj khiav squid li cas?

Video: Koj khiav squid li cas?
Video: cas koj thiaj hu tub ceev xwm by kawm muas 2024, Kaum ib hlis
Anonim

Rau pib Squid , sau rcsquid pib ntawm kab hais kom ua raws li hauv paus. Hauv qhov pib pib -up, directory qauv ntawm lub cache yuav tsum xub txhais nyob rau hauv /var/cache/ squid . Qhov no yog ua tiav los ntawm lub pib tsab ntawv /etc/init. d/ squid thiab tuaj yeem siv sijhawm li ob peb feeb lossis txawm feeb.

Ntawm no, koj pib squid li cas?

Rau pib Squid , sau rcsquid pib ntawm kab hais kom ua raws li hauv paus. Hauv qhov pib pib -up, directory qauv ntawm lub cache yuav tsum xub txhais nyob rau hauv /var/cache/ squid . Qhov no yog ua tiav los ntawm lub pib tsab ntawv /etc/init. d/ squid thiab tuaj yeem siv sijhawm li ob peb feeb lossis txawm feeb.

Ib yam li ntawd, ua li cas koj thiaj paub tias squid ua haujlwm? Yog ntau kab scroll nce qhov screen thaum twg lawv nyem rau ntawm ib yam dab tsi ces lawv siv lub npe server. Yog tus squid cov ntaub ntawv teev tseg tsis nyob ntawd muaj saib hauv /etc/ squid rau qhov chaw ntawm daim ntawv teev npe. Saib yog nws yog tiag caching cov khoom thiab siv tau yuav tsum muaj qee cov kab uas hais tias nws yog HIT.

Ib tug kuj nug, koj siv squid li cas?

Configure tus neeg siv khoom

  1. Cov cuab yeej> Xaiv> Advanced> Network> Chaw
  2. Xaiv Manual proxy configuration thiab khij lub 'siv lub npe neeg rau zaub mov no rau txhua qhov kev cai' lub thawv.
  3. Hauv HTTP Proxy: ntxiv squid mloog IP chaw nyob, 10.0. 0.1. Hauv Chaw nres nkoj: ntu ntxiv squid mloog chaw nres nkoj 3128.
  4. Nyem OK kom txuag tau cov kev hloov pauv.

Koj configure Squid li cache li cas?

Txheej txheem

  1. Nruab pob squid: # yum nruab squid.
  2. Kho kom raug cov ntaub ntawv /etc/squid/squid.conf:
  3. Yog tias koj teeb tsa cov npe cache txawv dua li /var/spool/squid/ hauv cache_dir parameter:
  4. Qhib 3128 chaw nres nkoj hauv firewall:
  5. Pib qhov kev pabcuam squid:
  6. Pab kom cov kev pabcuam squid pib ua haujlwm thaum lub kaw lus khau raj:

Pom zoo: