安装启动NFS服务
安装NFS服务
yum install nfs-utils*
yum install portmap
关闭Fedora默认的防火墙,#systemctl stop firewalld
开机启用NFS服务# systemctl enable nfs-server.service
配置需要nfs共享的目录编译如下
#vi /etc/exports
/root/rootfs *(rw,sync,no_root_squash)
启动NFS服务器
systemctl start nfs-server.service查看是否开机成功
systemctl status nfs-server.service
测试命令
mount –t nfs –o nolock192.168.1.104:/root/rootfs /mnt/nfs