暂无图片
暂无图片
1
暂无图片
暂无图片
暂无图片
nfs配置
504
11页
13次
2020-05-29
5墨值下载
配置
NFS
服务端
1
)关闭系统防火墙和
selinux
[root@localhost ~]# systemctl stop firewalld
关闭防火墙
[root@localhost ~]# systemctl status firewalld
查看防火墙状态
firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor
preset: enabled)
Active: inactive (dead)
Docs: man:firewalld(1)
[root@localhost ~]# sed -i "7s/enforcing/disabled/" /etc/selinux/config
[root@localhost ~]# setenforce 0
2
)安装需要的软件
[root@localhost ~]# yum -y install rpc-bind nfs-utils
3
)修改
/etc/exports
文件
,
定义
NFS
共享
NFS
服务器的
/zhangsan
共享给
192.168.115.0/24
网段,
rw
权限
[root@localhost ~]# vim /etc/exports
/zhangsan 192.168.115.0/24(rw)
4
)创建
/zhangsan
这个共享目录并设置权限
[root@localhost ~]# mkdir /zhangsan
[root@localhost ~]# chmod 777 /zhangsan
5
)启动
NFS
服务并设置为开机自启动
[root@localhost ~]# systemctl enable nfs
Created symlink from /etc/systemd/system/multi-user.target.wants/nfs-
server.service to /usr/lib/systemd/system/nfs-server.service.
[root@localhost ~]# systemctl start nfs
[root@localhost ~]# systemctl enable rpcbind
[root@localhost ~]# systemctl start rpcbind
[root@localhost ~]# systemctl status nfs
查看
NFS
服务的状态
nfs-server.service - NFS server and services
of 11
5墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜