0
点赞
收藏
分享

微信扫一扫

nfs_临时

①服务端的配置:

1、 安装:

[root@bd-nfs ~]# yum -y install  nfs-utils rpcbind


[root@bd-nfs ~]# rpm -qa nfs-utils rpcbind




②启动:

1、启动rpc服务:

[root@bd-nfs ~]# systemctl  enable rpcbind


[root@bd-nfs ~]# systemctl  start  rpcbind



2、启动nfs服务:

[root@bd-nfs ~]# systemctl  enable  nfs  


[root@bd-nfs ~]# systemctl  start  nfs  




③查询是否有nfs信息:

[root@bd-nfs ~]# rpcinfo




④配置nfs共享目录:

1、[root@bd-nfs ~]# vi  /etc/exports

[root@bd-manager test]# cat   /etc/exports

/test  192.168.0.0/24(rw,all_squash)

/data 192.168.0.0/24(rw)

[root@bd-nfs ~]#  



2、配置解释:

/test  192.168.0.0/24(rw,all_squash)这个目录挂载出去以后所有用户都能读写

/data 192.168.0.0/24(rw)            这个目录挂载出去以后,只有对方的root用户才能读写




1、客户端要使用nfs必须安装:{nfs-utils}

[root@bd-web1 ~]# yum -y install nfs-utils.x86_64



举报

相关推荐

临时。。。。

NFS

NFS部署

#SCP,NFS

NFS共享

NFS服务

FTP、NFS

临时AMAP

0 条评论