ubuntu20.4配置pxe之配置nfs
安装
1 | sudo apt install nfs-common nfs-kernel-server |
配置nfs服务
修改/etc/exports
1 | vim /etc/exports |
文件中增加以下内容
1 | # /etc/exports: the access control list for filesystems which may be exported |
重启服务
1 | systemctl restart nfs-kernel-server |
查看状态
1 | systemctl status nfs-kernel-server |
1 | ● nfs-server.service - NFS server and services |
本机或客户端测试
1 | exportfs -r |
查看
1 | showmount -e 192.168.8.88 |
1 | Export list for 192.168.8.88: |
挂载测试
1 | mkdir /mnt/tmp1 |
查看挂载目录
1 | ls /mnt/tmp1 |
1 | root |
1 | ls /mnt/tmp2 |
1 | bin boot dev etc home initrd.img initrd.img.old lib lib32 lib64 libx32 media mnt opt proc root run sbin srv sys tmp usr var vmlinuz vmlinuz.old |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 张拓的博客!