CentOS 6.5下NFS安装配置
2016-11-23 19:28
357 查看
一、环境介绍
NFS服务器:CentOS6.5 192.168.0.10
NFS客户端:CentOS6.5 192.168.0.11
二、服务器端安装配置
1、先用rpm -qa命令查看所需安装包(nfs-utils、rpcbind)是否已经安装:
2、如查询结果如上,说明服务器自身已经安装了NFS,如果没有安装,则用yum命令来安装:
3、创建共享目录:
4、NFS共享文件路径配置:
编辑/etc/exports添加下面一行,添加后保存退出。
5、启动NFS服务(先启动rpcbind,再启动nfs;如果服务器自身已经安装过NFS,那就用restart重启两个服务):
6、设置NFS服务开机自启动:
三、客户端挂载配置
1、创建一个挂载点:
2、查看NFS服务器上的共享:
客户端没有showmount命令的话,需要执行yum -y install nfs-utils rpcbind
3、挂载:
4、查看已挂载共享:
NFS服务器:CentOS6.5 192.168.0.10
NFS客户端:CentOS6.5 192.168.0.11
二、服务器端安装配置
1、先用rpm -qa命令查看所需安装包(nfs-utils、rpcbind)是否已经安装:
1 2 3 4 5 6 | [root@local /]# rpm -qa | grep "rpcbind" rpcbind-0.2.0-11.el6.x86_64 [root@local /]# rpm -qa | grep "nfs" nfs-utils-1.2.3-39.el6.x86_64 nfs4-acl-tools-0.3.3-6.el6.x86_64 nfs-utils-lib-1.1.5-6.el6.x86_64 |
1 | [root@local /]# yum -y install nfs-utils rpcbind |
1 | [root@local /]# mkdir /sharestore |
编辑/etc/exports添加下面一行,添加后保存退出。
12 | [root@local /]# vi /etc/exports /sharestore *(rw,sync,no_root_squash) |
1 2 3 4 5 67 | [root@local /]# service rpcbind start Starting rpcbind: [ OK ] [root@local /]# service nfs start Starting NFS services: [ OK ] Starting NFS quotas: [ OK ] Starting NFS mountd: [ OK ] Stopping RPC idmapd: [ OK ] Starting RPC idmapd: [ OK ] Starting NFS daemon: [ OK ] [root@local /]# |
12 | [root@local /]# chkconfig rpcbind on [root@local /]# chkconfig nfs on |
1、创建一个挂载点:
1 | [root@localhost ~]# mkdir /mnt/store |
客户端没有showmount命令的话,需要执行yum -y install nfs-utils rpcbind
12 | [root@localhost /]# showmount -e 192.168.0.10 Export list for 192.168.0.10: /sharestore * |
1 | [root@localhost ~]# mount -t nfs 192.168.0.10:/sharestore /mnt/store |
1 2 3 4 5 67 | [root@localhost ~]# mount /dev/mapper/VolGroup-lv_root on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw) /dev/sda1 on /boot type ext4 (rw) /dev/mapper/VolGroup-lv_home on /home type ext4 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) nfsd on /proc/fs/nfsd type nfsd (rw) 192.168.0.10:/mailstore1/ on /mailstore_new type nfs (rw,vers=4,addr=192.168.0.10,clientaddr=192. |
相关文章推荐
- CentOS 6.5下NFS安装配置
- CentOS 6.5下NFS安装配置
- CentOS 6.5下NFS安装配置
- CentOS 6.5下NFS安装配置
- CentOS 6.5下NFS安装配置
- Centos 6.5下NIS服务安装配置
- centos 下安装配置nfs服务器
- Centos 6.5下samba服务安装配置
- Linux学习笔记之Centos 6.3下NFS的安装配置
- CentOS下NFS服务器安装及配置实例
- 关于Hadoop2.2.0在虚拟机centOS6.5下的安装配置
- cloudstack在centos6.5下的安装与配置
- CentOS 6.5下源码包安装配置JDK 7
- Centos6.4 NFS的安装与配置
- Centos6.5下Varnish4安装配置
- Centos 6.5下SVN服务安装配置
- Centos6.4 NFS的安装与配置
- centos 6.0 安装配置nfs与排错
- CentOS下NFS服务器安装及配置实例
- CentOS 6.2 NFS的安装配置