标签:exports util vsftp nfs实战 use ast linu nbsp 文件
系统平台:CentOS release 6.8 (Final)
NFS Server IP:172.16.55.6
防火墙关闭
SELinux=disabled
1.查看系统是否已经安装
[root@node1 vsftpd]$ yum list nfs-utils 已加载插件:fastestmirror, security Loading mirror speeds from cached hostfile 已安装的软件包 nfs-utils.x86_64 1:1.2.3-70.el6 @net
2.如果没有安装nfs,则安装nfs程序包
[root@node1 vsftpd]$ yum install -y nfs-utils
[root@node1 vsftpd]$ mkdir -pv /shared/pub mkdir: 已创建目录 "/shared" mkdir: 已创建目录 "/shared/pub" [root@node1 vsftpd]$ vim /etc/exports # 配置 /shared/pub 172.16.55.7(rw) 172.16.0.0/16(ro)
[root@node1 vsftpd]$ exportfs -rav
[root@node1 pub]$ showmount -e localhost # 查看
Export list for localhost: /shared/pub 172.16.0.0/16
[root@localhost vsftpd]#mkdir /shared [root@localhost vsftpd]#mount -t nfs -w 172.16.55.6:/shared/ /shared/ #以读写方式挂载 [root@localhost vsftpd]#df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda6 148787220 4877916 143909304 4% / devtmpfs 1001368 0 1001368 0% /dev ... tmpfs 203216 0 203216 0% /run/user/0 172.16.55.6:/shared 4908544 1396992 3255552 31% /shared # 挂载成功
标签:exports util vsftp nfs实战 use ast linu nbsp 文件
原文地址:http://www.cnblogs.com/vathe/p/6950623.html