首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

linux上NFS的配置

2013-01-23 
linux下NFS的配置nfs 安装(1)apt-get install nfs-kernel-serverapt-get install portmap nfs-common(2)编

linux下NFS的配置
nfs 安装(1)
apt-get install nfs-kernel-server
apt-get install portmap nfs-common
(2)
编辑/etc/exports
/home/username/nfsroot  *(rw,sync,no_root_squash)
(3)
修改挂载点的属性
chmod 777 /home/username/nfsroot
(4)
重启nfs
sudo /etc/init.d/nfs-kernel-server restart
sudo /etc/init.d/portmap restart
(5)
在本机上测试
showmount -e
mount 192.168.1.2:/home/username/nfsroot /mnt
或者
mount 192.168.1.2:/home/username/nfsroot /home/clientUserName/nfsclient

热点排行