CentOS快速启动NFS服务

  sre

v2-9799b12527ab661a0ab81e3a4cafe40e_1440w.jpg
软件包

yum install -y nfs-utils-* portmap-*

配置

[root@sre sre]# cat /etc/exports
/root/nfs_root/ *(insecure,rw,sync,no_root_squash)

# 创建共享目录,如果要使用自己的目录,请替换本文档中所有的 /root/nfs_root/
mkdir /root/nfs_root

systemctl enable rpcbind
systemctl enable nfs-server

systemctl start rpcbind
systemctl start nfs-server
exportfs -r

LEAVE A COMMENT

Captcha Code