Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need some help regarding to squid proxy server. well if you view the following web site http://pbraun.nethence.com/doc/www/squid.html
you can see the all settings which need for squid as a cache server.I want to know some few things about it in Prepare the system,
mv /var/spool/squid /var/spool/squid.dist
mkdir /cache
chown squid:squid /cache
chmod 750 /cache
why the user use the mv command ?
and in the following
Prepare the file,
mv /etc/squid/squid.conf /etc/squid/squid.conf.dist
sed '/^#/d;/^$/d' /etc/squid/squid.conf.dist > /etc/squid/squid.conf
chown root:squid squid.conf
chmod 640 squid.conf
again the user use the mv coomand to move the file.why he use sed command ?About chown command is the user assigning rights of squid files to the root ?
and last think i want to know that what does squid -z do ?
kindly guide me ,
should be grateful to you
garden.
I need some help regarding to squid proxy server. well if you view the following web site http://pbraun.nethence.com/doc/www/squid.html
you can see the all settings which need for squid as a cache server.I want to know some few things about it in Prepare the system,
mv /var/spool/squid /var/spool/squid.dist
mkdir /cache
chown squid:squid /cache
chmod 750 /cache
why the user use the mv command ?
and in the following
Prepare the file,
mv /etc/squid/squid.conf /etc/squid/squid.conf.dist
sed '/^#/d;/^$/d' /etc/squid/squid.conf.dist > /etc/squid/squid.conf
chown root:squid squid.conf
chmod 640 squid.conf
again the user use the mv coomand to move the file.why he use sed command ?About chown command is the user assigning rights of squid files to the root ?
and last think i want to know that what does squid -z do ?
kindly guide me ,
should be grateful to you
garden.
Here mv command is used to rename the file squid.conf to squid.conf.dist , so the original file is saved. Now sed is used to remove the # mark and the blank spaces from the squid.conf.dist and save the output in squid.conf.
thanks a lot for your guidance.well there is a little confusion about cache directory.mkdir /cache which will create directory and squid -z swap dir.so why need to create dir two times?technically what is the difference between cache and swap dir in sauid?
2- my phycal ram is 4 GB so what should i keep the cache dir size in squid.conf file.
Thaks again for guiding me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.