Project2

NFS项目实践2

NFS 共享的匿名用户用 www ,使得客户端上传图片都是 www 用户,而不是匿名 nfsnobody

web01 web02 客户端实现挂载到nfs01

NFS 下面共享 /data ,允许 web01 web02 客户端(挂载点 /mnt/data )挂载后可读

web01 上传图片,web02 服务上可以删除 web01 上传的图片

实现开机自动挂载(使用优化的参数挂载)

nfs01

yum install nfs-utils rpcbind -y


systemctl start rpcbind

systemctl start nfs

# 先启动rpcbind,顺序不能反


systemctl enable rpcbind

systemctl enable nfs

web01

web02

Last updated