Ubuntu Server Guide Changes, errors and bugs
Download 1.27 Mb. Pdf ko'rish
|
ubuntu-server-guide
Installation
At a terminal prompt, enter the following command to install the Squid server: sudo apt i n s t a l l s q u i d Configuration Squid is configured by editing the directives contained within the /etc/squid/squid.conf configuration file. The following examples illustrate some of the directives which may be modified to affect the behavior of the Squid server. For more in-depth configuration of Squid, see the References section. Tip Prior to editing the configuration file, you should make a copy of the original file and protect it from writing so you will have the original settings as a reference, and to re-use as necessary. Make this copy and protect it from writing using the following commands: sudo cp / e t c / s q u i d / s q u i d . c o n f / e t c / s q u i d / s q u i d . c o n f . o r i g i n a l sudo chmod a−w / e t c / s q u i d / s q u i d . c o n f . o r i g i n a l • To set your Squid server to listen on TCP port 8888 instead of the default TCP port 3128, change the http_port directive as such: http_port 8888 • Change the visible_hostname directive in order to give the Squid server a specific hostname. This hostname does not necessarily need to be the computer’s hostname. In this example it is set to weezie v i s i b l e _ h o s t n a m e w e e z i e • The cache_dir option allows one to configure an on-disk cache, the default option is on-memory cache. The cache_dir directive takes the following arguments: 257 c a c h e _ d i r In the config file you can find the default cache_dir directive commented out: # Uncomment and a d j u s t t h e f o l l o w i n g t o add a d i s k c a c h e d i r e c t o r y . #c a c h e _ d i r u f s / var / s p o o l / s q u i d 100 16 256 You can just use the default option but you can also customize your cache directory, basically changing the Download 1.27 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling