[root@ cache]# service squid start
init_cache_dir /cache... 鍚?姩 squid锛etc/init.d/squid: line 42: 27303 宸叉斁寮 $SQUID $SQUID_OPTS >> /var/log/squid/squid.out 2>&1
[澶辫触]
[root@ cache]# cat /var/log/squid/squid.out
2013/04/09 09:30:53| Creating Swap Directories
FATAL: Failed to make swap directory /cache: (13) Permission denied
Squid Cache (Version 2.6.STABLE21): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
root@JSCWT-TMC2 /]# ls -al /cache/
总计 156
drwxrwxrwx 18 squid squid 4096 04-09 10:07 .
drwxr-xr-x 27 root root 4096 04-09 09:31 .
结果是由于selinux没有关闭
[root@ cache]# getenforce
Enforcing
[root@ cache]# setenforce 0
[root@ cache]# getenforce
Permissive
[root@ /]# service squid restart
鍋滄? squid锛[60G[澶辫触]
init_cache_dir /cache... 鍚?姩 squid锛[60G[纭?畾]
[root@ /]# service squid stop
鍋滄? squid锛[60G[纭?畾]
阅读(4387) | 评论(0) | 转发(0) |