LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1497|回复: 2

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

[复制链接]
发表于 2004-4-6 23:25:25 | 显示全部楼层 |阅读模式
我想用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 进程

是怎么回事, 是少装什么组件了吗,还是配置有问题,谢谢
发表于 2004-4-7 12:34:18 | 显示全部楼层
squid有一个debug选项,把结果帖出来。
 楼主| 发表于 2004-4-7 15:23:24 | 显示全部楼层
[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.46 from /etc/resolv.conf
2004/04/07 15:17:48| 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:51| Starting Squid Cache version 2.5.STABLE2 for i686-pc-linux-gnu...
2004/04/07 15:17:51| Process ID 2672
2004/04/07 15:17:51| With 1024 file descriptors available
2004/04/07 15:17:51| Performing DNS Tests...
2004/04/07 15:17:51| Successful DNS name lookup tests...
2004/04/07 15:17:51| DNS Socket created at 0.0.0.0, port 1025, FD 3
2004/04/07 15:17:51| Adding nameserver 202.101.172.46 from /etc/resolv.conf
2004/04/07 15:17:51| 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表