Xin chao dien dan,
Minh đang xây dựng Squid Proxy version 2.6, mình thay đổi đường dẫn lưu cache,logs và gặp lõi như sau:
Cấu trúc các ỗ đĩa như sau:
Trích:
[root@proxy ~]# df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/hdd5 ext3 32G 1.1G 30G 4% /
/dev/hdd2 ext3 38G 193M 36G 1% /opt
/dev/hdd1 ext3 190M 12M 169M 7% /boot
tmpfs tmpfs 629M 0 629M 0% /dev/shm
|
Chay lệnh #squid -z tao thu muc cache thì OK
Mình set quyền 775 cho user Squid như bên dưới
Trích:
[root@proxy ~]# ls -la /opt/squid/logs/
total 28
drwxrwxr-x 2 squid squid 4096 May 6 11:52 .
drwxr-xr-x 4 root root 4096 May 6 10:45 ..
-rwxrwxr-x 1 squid squid 0 May 6 11:51 access.log
-rwxrwxr-x 1 squid squid 0 May 6 11:52 cache.log
-rwxrwxr-x 1 squid squid 0 May 6 11:52 store.log
|
Đến khi Start squid thì lỗi, vào xem log /var/logs/messages báo như thế này
Trích:
May 6 11:56:18 proxy squid[3942]: Cannot open '/opt/squid/logs/access.log' for writing. The parent directory must be writeable by the user 'squid', which is the cache_effective_user set in squid.conf.
May 6 11:56:18 proxy squid[3919]: Squid Parent: child process 3942 started
May 6 11:56:18 proxy squid[3919]: Squid Parent: child process 3942 exited due to signal 6
May 6 11:56:18 proxy squid[3919]: Exiting due to repeated, frequent failures
|
Không biết các bước mình làm sai chỗ nào nữa.Mọi người giúp em. thanks