Linux安装配置NFS方法
1、查看是否安装
rpm -qa |grep nfs
rpm -qa |grep rpcbind

2、使用yum -y install nfs-utils rpcbind命令进行安装

3、关闭防火墙,selinux
[root@master ~]# systemctl stop firewalld.service
[root@master ~]# setenforce 0

4、禁止防火墙开机自启动
systemctl disable firewalld.service

5、启动服务,一定要先启动rpc再启动nfs
nfs需要向rpc注册,rpc一旦重启,所以注册的文件都丢失,其他向注册的服务都需要重启
启动rpc服务:
systemctl start rpcbind.service
启动nfs服务:
systemctl start nfs.service

6、查看服务启动的状态
systemctl status rpcbind.service
systemctl status nfs.service

7、vi /etc/exports
/mnt *(rw,sync,no_root_squash)

8、重启rpcbind再重启nfs:
重启rpc服务:
systemctl restart rpcbind.service
重启nfs服务:
systemctl restart nfs.service

9、在客户端进行挂载
mount -t nfs 192.168.137.139:/mnt /tmp

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:142
阅读量:148
阅读量:165
阅读量:112
阅读量:56