NFS를 사용하여 웹 서버(Apache)에 폴더가 마운트되어 있지만 이 서버에서는 해당 폴더를 볼 수 없습니다. 폴더는 볼 수 있지만 Apache는 볼 수 없습니다.
Starting httpd: Warning: DocumentRoot [/mount folder/.../] does not exist
Warning: DocumentRoot [/mount folder/.../] does not exist
NFS 구성/etc/export
/folder 192.168.x.x(rw,subtree_check,all_squash)
클라이언트에서/etc/fstab
192.168.x.x:folder/ /folder nfs rw 0 0
답변1
SELinux 보호를 제거하는 가장 쉬운 방법은 단순히 NFS 사용을 허용하는 것입니다.
setsebool httpd_use_nfs on
답변2
해결책을 찾았습니다!
웹 서버에서 /etc/sysconfig/selinux를 편집하고 이를 비활성화합니다.
SELINUX=disabled