挂在命令:mount -t nfs -o nolock,vers=3 192.168.1.19:/home/book/nfs_rootfs /mnt
- ERROR:
mount: mounting 192.168.1.19:/home/book/nfs_rootfs on /mnt failed: No route to host
- resolve:
首先,你的网络是桥接模式,我开始NAT模式,导致一直出现这个问题。
其次,保证ubuntu防火墙是关闭的,开始执行systemctl status firewalld.service,显示报错,原因是未安装防火墙软件
sudo apt-get install firewalld firewall-config // sudo yum install firewalld firewall-config
service firewalld stop 关闭 // 似乎重启后,防火墙是自动打开的,所以每次开ubuntu要重新关闭一下
最后,挂载,mount -t nfs -o nolock,vers=3 192.168.1.19:/home/book/nfs_rootfs /mnt。 竟然出现了新的问题。心态崩了呀
- ERROR:
mount: mounting 192.168.1.19:/home/book/nfs_rootfs on /mnt failed: Device or resource busy
resolve:
需要重新挂在:umount /mnt