centos6.5 下的nfs
1、查看系统是否已安装NFS
rpm -qa |grep nfs
2、若没有安装:
yum install nfs* -y
4、服务器端使用showmount命令查询NFS的共享状态
[root@zabbix-server centos1]# showmount -e
clnt_create: RPC: Unknown host
解决办法:
1 关掉iptables
2 vim /etc/hosts #添加IP 主机名
4、客户端使用showmount命令查询NFS的共享状态
格式:showmount -e NFS服务器IP
5、客户端挂载NFS服务器中的共享目录(建议客户端上来直接执行这一步)
格式:mount NFS服务器IP:共享目录 本地挂载点目录
mount -t nfs 192.168.221.140:/tmp /tmp/nfs
umount /tmp/nfs
ubuntu 下的 nfs
1先安装
sudo apt-get install nfs-kernel-server
(安装nfs-kernel-server时,apt会自动安装nfs-common和portmap)
转载于:https://blog.51cto.com/dengyong/2362289