[root@SQUID-CACHE ~]# /usr/sbin/squid -Nd1
WARNING: Cannot write log file: /var/log/squid/cache.log
/var/log/squid/cache.log: Permission denied
messages will be sent to 'stderr'.
WARNING: Cannot write log file: /var/log/squid/cache.log
/var/log/squid/cache.log: Permission denied
messages will be sent to 'stderr'.
2011/12/31 09:44:40| WARNING: Closing open FD 2
2011/12/31 09:44:40| Starting Squid Cache version 3.1.8 for i386-redhat-linux-gnu...
2011/12/31 09:44:40| Process ID 4895
2011/12/31 09:44:40| With 1024 file descriptors available
2011/12/31 09:44:40| Initializing IP Cache...
2011/12/31 09:44:40| DNS Socket created at [::], FD 4
2011/12/31 09:44:40| DNS Socket created at 0.0.0.0, FD 5
2011/12/31 09:44:40| Adding nameserver 192.168.5.2 from /etc/resolv.conf
2011/12/31 09:44:40| Adding nameserver 4.2.2.4 from /etc/resolv.conf
2011/12/31 09:44:40| User-Agent logging is disabled.
2011/12/31 09:44:40| Referer logging is disabled.
FATAL: Cannot open '/var/log/squid/access.log' for writing.
The parent directory must be writeable by the
user 'squid', which is the cache_effective_user
set in squid.conf.
Squid Cache (Version 3.1.8): Terminated abnormally.
CPU Usage: 0.043 seconds = 0.033 user + 0.010 sys
Maximum Resident Size: 23664 KB
Page faults with physical i/o: 0
به نام هستي بخش
سلام
من با دستور زير فهميدم كه دسترسي به فايل log ندارم
/usr/sbin/squid -Nd1
اومدم با دستور chown -R admin-squid /var/log دسترسي دادم بهش اما وقتي بازم دستور بالا رو ميزنم همون خطا ها را ميده كه در زير كاملشو آوردم !
[root@SQUID-CACHE ~]# /usr/sbin/squid -Nd1
WARNING: Cannot write log file: /var/log/squid/cache.log
/var/log/squid/cache.log: Permission denied
messages will be sent to 'stderr'.
WARNING: Cannot write log file: /var/log/squid/cache.log
/var/log/squid/cache.log: Permission denied
messages will be sent to 'stderr'.
2011/12/31 09:44:40| WARNING: Closing open FD 2
2011/12/31 09:44:40| Starting Squid Cache version 3.1.8 for i386-redhat-linux-gnu...
2011/12/31 09:44:40| Process ID 4895
2011/12/31 09:44:40| With 1024 file descriptors available
2011/12/31 09:44:40| Initializing IP Cache...
2011/12/31 09:44:40| DNS Socket created at [::], FD 4
2011/12/31 09:44:40| DNS Socket created at 0.0.0.0, FD 5
2011/12/31 09:44:40| Adding nameserver 192.168.5.2 from /etc/resolv.conf
2011/12/31 09:44:40| Adding nameserver 4.2.2.4 from /etc/resolv.conf
2011/12/31 09:44:40| User-Agent logging is disabled.
2011/12/31 09:44:40| Referer logging is disabled.
FATAL: Cannot open '/var/log/squid/access.log' for writing.
The parent directory must be writeable by the
user 'squid', which is the cache_effective_user
set in squid.conf.
Squid Cache (Version 3.1.8): Terminated abnormally.
CPU Usage: 0.043 seconds = 0.033 user + 0.010 sys
Maximum Resident Size: 23664 KB
Page faults with physical i/o: 0