快速业务通道

Linux Server Project

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-04-26
gz
root@FileServe:/home/ftp# cd squid-2.5.STABLE4
root@FileServe:/home/ftp/squid-2.5.STABLE4# less README Always read the README when you see one. It''s good manners, and sometimes you find out you accidentally downloaded a beta version or worse. In this case it was mostly thank-yous and a comment about the GPL. root@FileServe:/home/ftp/squid-2.5.STABLE4# ./configure
.......lots and lots of checks.....
root@FileServe:/home/ftp/squid-2.5.STABLE4# make
At this point go do something else. On my machine it took nearly an hour. Of course, it is a 266Mhz Pentium, so your mileage may vary. root@FileServe:/home/ftp/squid-2.5.STABLE4# make install
root@FileServe:/home/ftp/squid-2.5.STABLE4# locate -u
root@FileServe:/home/ftp/squid-2.5.STABLE4# cd /usr/local/squid/bin
root@FileServe:/usr/local/squid/bin# ./RunAccel
Running: squid -a 80 -s > > /usr/local/squid/var/squid.out 2> &1
./RunAccel: line 36: 9768 Aborted squid -N $port -s $conf > >$lo gdir/squid.out 2> &1
Running: squid -a 80 -s > > /usr/local/squid/var/squid.out 2> &1
./RunAccel: line 36: 9774 Aborted squid -N $port -s $conf > >$lo gdir/squid.out 2> &1
Running: squid -a 80 -s > > /usr/local/squid/var/squid.out 2> &1
./RunAccel: line 36: 9780 Aborted squid -N $port -s $conf > >$lo gdir/squid.out 2> &1
Whoops. Still needed to set something up. Oh, and if you were wondering about the locate -u , I always do that right after an install. The locate command is indispensible when some manual tells you to edit the squid.conf file. root@FileServe:/usr/local/squid/bin# cd ../var
root@FileServe:/usr/local/squid/var# less squid.out
WARNING: Cannot write log file: /usr/local/squid/var/logs/cache.log
/usr/local/squid/var/logs/cache.log: Permission denied
messages will be sent to ''stderr''.
2003/12/01 14:45:52| WARNING: Closing open FD 2
2003/12/01 14:45:52| Starting Squid Cache version 2.5.STABLE4 for i586-pc-linux- gnu...
2003/12/01 14:45:52| Process ID 9768
2003/12/01 14:45:52| With 1024 file descriptors available
2003/12/01 14:45:52| Performing DNS Tests...
2003/12/01 14:45:52| Successful DNS name lookup tests...
2003/12/01 14:45:52| DNS Socket created at 0.0.0.0, port 1027, FD 4
2003/12/01 14:45:52| Adding nameserver 38.8.82.2 from /etc/resolv.conf
FATAL: Cannot open ''/usr/local/squid/var/logs/access.log'' for writing.
The parent directory must be writable by the
user ''nobody'', which is the cache_effective_user
set in squid.conf.
Squid Cache (Version 2.5.STABLE4): Terminated abnormally.
Aha! I should have read the manual. I need to create the cache directory with squid -z and I need to make the logs directory writable by nobody (that''s a user named ''nobody''). Running squid again still caused problems. Erp, the files were not writable. I think this was because I wasn''t running as ''nobody'', but since nobody has no password, I can''t log on under that name anyway. There has to be a way around this, but for n

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号