squid的问题大鸟帮我看看菜鸟帮我顶

由 leephone 在 04-06-2004 23:25 发表:

squid的问题大鸟帮我看看菜鸟帮我顶

我想用SQUID做一个透明代理SQUID.CONF配置如下

httpd_accel_host virtual

httpd_accel_port 80

httpd_accel_with_proxy on

httpd_accel_uses_host_header on

cache_effective_user nobody

cache_effective_group nobody

http_access allow all

cache_dir ufs /usr/local/squid/cache 100 16 256

/usr/local/squid/sbin/squid -z

2004/04/06 23:18:48| Creating Swap Directories

[root@localhost sbin]# /usr/local/squid/sbin/squid

[root@localhost sbin]# ps aux |grep squid

root 15073 0.0 0.5 4812 636 pts/6 S 23:20 0:00 grep squid

用ps ax 查看没有找到squid 进程

是怎么回事, 是少装什么组件了吗,还是配置有问题,谢谢


由 黯然销魂 在 04-07-2004 12:34 发表:


squid有一个debug选项,把结果帖出来。


-- Hacking is "an appropriate application of ingenuity.." --

--If Linux doesn't have the solution, you have the wrong problem.--

^^ LFS 511(/w udev) + BLFS CVS ^^

XOrg R681 + KDE 3.3.0


由 leephone 在 04-07-2004 15:23 发表:


[root@localhost sbin]# 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'.

2004/04/07 15:17:38| Starting Squid Cache version 2.5.STABLE2 for i686-pc-linux-gnu...

2004/04/07 15:17:38| Process ID 2664

2004/04/07 15:17:38| With 1024 file descriptors available

2004/04/07 15:17:38| Performing DNS Tests...

2004/04/07 15:17:38| Successful DNS name lookup tests...

2004/04/07 15:17:38| DNS Socket created at 0.0.0.0, port 1025, FD 3

2004/04/07 15:17:38| Adding nameserver 202.101.172.46 from /etc/resolv.conf

2004/04/07 15:17:38| Adding nameserver 202.101.172.47 from /etc/resolv.conf

FATAL: Cannot open '/usr/local/squid/var/logs/access.log' for writing.

The parent directory must be writeable by the

user 'nobody', which is the cache_effective_user

set in squid.conf.

Squid Cache (Version 2.5.STABLE2): Terminated abnormally.

CPU Usage: 0.010 seconds = 0.010 user + 0.000 sys

Maximum Resident Size: 0 KB

Page faults with physical i/o: 293

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'.

2004/04/07 15:17:42| Starting Squid Cache version 2.5.STABLE2 for i686-pc-linux-gnu...

2004/04/07 15:17:42| Process ID 2666

2004/04/07 15:17:42| With 1024 file descriptors available

2004/04/07 15:17:42| Performing DNS Tests...

2004/04/07 15:17:42| Successful DNS name lookup tests...

2004/04/07 15:17:42| DNS Socket created at 0.0.0.0, port 1025, FD 3

2004/04/07 15:17:42| Adding nameserver 202.101.172.46 from /etc/resolv.conf

2004/04/07 15:17:42| Adding nameserver 202.101.172.47 from /etc/resolv.conf

FATAL: Cannot open '/usr/local/squid/var/logs/access.log' for writing.

The parent directory must be writeable by the

user 'nobody', which is the cache_effective_user

set in squid.conf.

Squid Cache (Version 2.5.STABLE2): Terminated abnormally.

CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys

Maximum Resident Size: 0 KB

Page faults with physical i/o: 293

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'.

2004/04/07 15:17:45| Starting Squid Cache version 2.5.STABLE2 for i686-pc-linux-gnu...

2004/04/07 15:17:45| Process ID 2668

2004/04/07 15:17:45| With 1024 file descriptors available

2004/04/07 15:17:45| Performing DNS Tests...

2004/04/07 15:17:45| Successful DNS name lookup tests...

2004/04/07 15:17:45| DNS Socket created at 0.0.0.0, port 1025, FD 3

2004/04/07 15:17:45| Adding nameserver 202.101.172.46 from /etc/resolv.conf

2004/04/07 15:17:45| Adding nameserver 202.101.172.47 from /etc/resolv.conf

FATAL: Cannot open '/usr/local/squid/var/logs/access.log' for writing.

The parent directory must be writeable by the

user 'nobody', which is the cache_effective_user

set in squid.conf.

Squid Cache (Version 2.5.STABLE2): Terminated abnormally.

CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys

Maximum Resident Size: 0 KB

Page faults with physical i/o: 293

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'.

2004/04/07 15:17:48| Starting Squid Cache version 2.5.STABLE2 for i686-pc-linux-gnu...

2004/04/07 15:17:48| Process ID 2670

2004/04/07 15:17:48| With 1024 file descriptors available

2004/04/07 15:17:48| Performing DNS Tests...

2004/04/07 15:17:48| Successful DNS name lookup tests...

2004/04/07 15:17:48| DNS Socket created at 0.0.0.0, port 1025, FD 3

2004/04/07 15:17:48| Adding nameserver 202.101.172

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus