centos7安装nfs服务
来源:互联网 发布:中国跳水最厉害的知乎 编辑:程序博客网 时间:2024/05/17 16:02
1.安装nfs组件
yum install nfs-utils nfs-utils-lib -y
2.设置开机启动
centos7的变动较大
server端
systemctl enable rpcbind
systemctl enable nfs-server
设置要共享的目录
vi /etc/exports
/sharedfile 10.0.42.0/24(rw,sync,no_root_squash,no_subtree_check)
启动nfs服务
systemctl start rpcbind
systemctl start nfs-server
3.在client端挂载nfs
临时:
mount -t nfs 10.0.42.4:/sharedfile /mnt/nfsclient/
或
vi /etc/fstab
10.0.42.4:/sharedfile /mnt/nfsclient/ nfs auto,rw,vers=3,hard,intr,tcp,rsize=32768,wsize=32768 0 0
执行下面命令使用修改的文件
mount -a && mount
yum install nfs-utils nfs-utils-lib -y
server端
systemctl enable rpcbind
systemctl enable nfs-server
vi /etc/exports
/gomeo2o/im-file 10.69.42.0/24(rw,sync,no_root_squash,no_subtree_check)
systemctl start rpcbind
systemctl start nfs-server
client端
mount -t nfs 10.69.42.48:/gomeo2o/im-file /gomeo2o/im-file/
或
vi /etc/fstab
10.69.42.48:/gomeo2o/im-file /gomeo2o/im-file nfs auto,rw,vers=3,hard,intr,tcp,rsize=32768,wsize=32768 0 0
10.125.192.127:/gomeo2o/im-file /gomeo2o/im-file nfs auto,rw,vers=3,hard,intr,tcp,rsize=32768,wsize=32768 0 0
mount -a && mount
- centos7安装nfs服务
- centos7 NFS服务安装和使用
- NFS服务安装配置(centos7 nfs-utils示例)
- CentOS7部署NFS服务
- Centos7配置NFS服务
- CentOS7搭建NFS服务
- Centos7安装配置NFS服务和挂载
- Centos7安装配置NFS服务和挂载
- Centos7安装配置NFS服务和挂载
- Centos7安装配置NFS服务和挂载
- Centos7安装配置NFS服务和挂载
- Centos7安装配置NFS服务和挂载
- Centos7安装配置NFS服务和挂载
- CentOS7安装NFS
- CentOS7中安装NFS
- centos7 安装nfs
- centos7.2 安装nfs
- CENTOS7 安装配置 NFS
- 数据结构实验之栈六:下一较大值(二)
- 排序算法时间、空间复杂度
- 从MVC到前后端分离(REST-个人也认为是目前比较流行和比较好的方式)
- 用 theano 求解 Logistic Regression (SGD 优化算法)
- 第十二周实践求最大公约数
- centos7安装nfs服务
- JVM基础(7)——jdk常用内置工具
- Linux+db2+was部署问题总结
- 【iOS开发】在程序被送入后台时,开启一个长期任务(voip)。
- VC++ 出现Debug Assertion Failed!
- 【leetcode】454. 4Sum II【M】
- augmented reality(AR)入门实例
- JavaScript——split函数的应用
- linux内核目录树