Nfs副武器的安装和测试
1. 安装nfs服务
yum install rpcbind nfs-utils –y
2、创建共享文件夹
mkdir /testdata
启动服务
systemctl start rpcbind
systemctl start nfs
3、修改配置文件
Vi /etc/exports
4、创建共享文件夹
mkdir /testdata
重启服务
systemctl start rpcbind
systemctl start nfs
修改防火墙配置
firewall-cmd –permanent –add-service=nfs(防火墙允许nfs通过)
systemctl restart firewalld.service(重启防火墙服务)
挂载目录
mount 192.168.70.141:/testdata /mnt
查看是否挂载df –h
如果出错
修改selinux为disabled
Reboot重启
vi /etc/selinux/config
reboot
重启服务
systemctl start rpcbind
systemctl start nfs
挂载镜像
mount 192.168.70.141:/testda
nsf服务器安装测试
最新推荐文章于 2023-11-11 18:41:57 发布