Linuxnfs服务器配置

xiaoxiao2021-02-28  7

nfs服务器(针对Linux服务器之间共享)

1、安装服务

yum install -y rpcbind

yum install -y nfs-utils

2、修改配置文件 /etc/exports

/tmp/test *(rw,sync)    #*代表所有,可以改成ip地址

3、启动

service rpcbind start

service nfs start

4、开机启动

chkconfig on rpcbind

chkconfig on nfs

------------------------------------------------------------------------

客户端同样需安装nfs,上面1,3步骤

然后挂载:(挂载不上查看服务端防火墙)

mount -t nfs 192.168.137.128:/tmp/test /mnt    

转载请注明原文地址: https://www.6miu.com/read-850330.html

最新回复(0)