Linux安装系列:安装及卸载NFS服务


1) 安装步骤
# 服务端安装步骤
yum -y install rpcbind nfs-utils
# 创建文件夹并赋权
mkdir /storage/data/ -p
chmod 777 -R /storage/data/

vi /etc/exports 
#添加下行
/storage/data/ *(rw,sync,all_squash)

# 启动服务
systemctl start rpcbind && systemctl start nfs
# 设置开机启动
systemctl enable rpcbind && systemctl enable nfs
# 检测
showmount -e 192.168.194.102

# 客户端安装步骤
yum -y install rpcbind
# 检测
showmount -e 192.168.194.102

2) 卸载步骤
yum remove rpcbind nfs-utils

你可能感兴趣的:(Linux系列,linux,运维,服务器)