Fri*_*dus 3 apache-http-server nfs
文件夹安装在具有 NFS 的 Web 服务器 (Apache) 上,但该服务器看不到该文件夹。我可以看到该文件夹,但 Apache 不能:
Starting httpd: Warning: DocumentRoot [/mount folder/.../] does not exist
Warning: DocumentRoot [/mount folder/.../] does not exist
Run Code Online (Sandbox Code Playgroud)
NFS 配置 /etc/export
/folder 192.168.x.x(rw,subtree_check,all_squash)
Run Code Online (Sandbox Code Playgroud)
在客户端 /etc/fstab
192.168.x.x:folder/ /folder nfs rw 0 0
Run Code Online (Sandbox Code Playgroud)
小智 8
取消 SELinux 保护的更简单方法就是允许使用 NFS:
setsebool httpd_use_nfs on
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7494 次 |
| 最近记录: |