linux中nfs的安装、配置
2015-03-19 13:14
211 查看
假设有A、B两台服务器,ip地址分别为:(A)192.168.1.1 (B)192.168.1.2。
将A中的/home/test目录中的文件共享给B
1、安装nfs及其依赖文件
* yum search nfs/rpc(查询相关软件包名,分开查询)
安装:yum install nfs-utils.x86_64 rpcbind.x86_64(中间有空格,两个软件可以一起安装nfs依赖rpc*,先后顺序自己选择,最好先rpcbind。两个系统都要安装这两个服务)
2、 编辑A服务器中的/etc/exports文件
exports中内容如下:
/home/test *(rw[ro],sync)
或者:/home/test *(rw[ro],async)
rw读写,ro是只读
3、关闭A防火墙 service iptables stop
4、启动A服务
先启动rpcbind:service rpcbind start
再启动nfs:service nfs start
5、挂载/home/test目录
到B服务器中执行:mount -t nfs 192.168.1.1:/home/test /mnt
(卸载)umount -t nfs 192.168.1.1:/home/test /mnt
将A中的/home/test目录中的文件共享给B
1、安装nfs及其依赖文件
* yum search nfs/rpc(查询相关软件包名,分开查询)
安装:yum install nfs-utils.x86_64 rpcbind.x86_64(中间有空格,两个软件可以一起安装nfs依赖rpc*,先后顺序自己选择,最好先rpcbind。两个系统都要安装这两个服务)
2、 编辑A服务器中的/etc/exports文件
exports中内容如下:
/home/test *(rw[ro],sync)
或者:/home/test *(rw[ro],async)
rw读写,ro是只读
3、关闭A防火墙 service iptables stop
4、启动A服务
先启动rpcbind:service rpcbind start
再启动nfs:service nfs start
5、挂载/home/test目录
到B服务器中执行:mount -t nfs 192.168.1.1:/home/test /mnt
(卸载)umount -t nfs 192.168.1.1:/home/test /mnt
相关文章推荐
- Linux下配置安装NFS
- Linux 下配置安装 NFS
- Linux存储实验四:NFS的安装与配置
- Linux NFS服务器的安装与配置
- Linux下配置安装NFS
- Linux网络安装介绍2之tftp、nfs和dhcp的安装和配置
- Linux NFS服务器的安装与配置
- Linux实战攻略之NFS服务器安装配置
- LINUX(fedora10)下NFS的安装与配置
- Linux下安装配置NFS服务器
- NFS 配置与安装 linux
- Linux下配置安装NFS
- Linux下配置安装NFS
- Linux存储实验四:NFS的安装与配置
- Linux下配置安装NFS-ubuntu和 fc4
- 配置Linux DHCP+TFTP+NFS(FTP|HTTP)通过PXE启动安装Cent OS操作系统
- Linux下配置安装NFS
- Linux学习笔记之Centos 6.3下NFS的安装配置
- Linux下配置安装NFS
- Linux NFS服务器的安装与配置