一,运行su nobody -c "/usr/local/squid/bin/RunCache &"时提示nobody 不是一个有效的帐户(英文提示忘记了)
解决:
vi /etc/passwd
将nobody的shell由/sbin/nologin 改为/bin/bash
二,提示
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.STABLE9): Terminated abnormally.
解决:
chown -R nobody.nobody /usr/local/squid/var
三,/etc/resolv.conf总是在电脑重启后被dhclient修改为192.168.1.1,导致客户端不能上网。
解决:
chattr +i /etc/resolv.conf
lsattr /etc/resolv.conf
阅读(2357) | 评论(0) | 转发(0) |