NFS共享设置

一、安装所需要的软件环境
[root@fengling ~]# yum -y install rpcbind nfs-utils
二、创建共享目录
mkdir /web
三、启动服务
[root@fengling ~]# systemctl start rpcbind
[root@fengling ~]# systemctl start nfs
四、将目录共享信息加入到配置文件
[root@fengling ~]# cat /etc/exports
/web 49.232.149.234(rw) #共享目录位置 哪个ip可以使用共享 拥有读写的权限
五、确保生效,重启服务
[root@fengling ~]# systemctl start rpcbind
[root@fengling ~]# systemctl start nfs
注:要先启动rpcbind服务 然后启动nfs

猜你喜欢

转载自www.cnblogs.com/ZCQ123456/p/11576641.html