您的位置:首页 > 其它

在ubuntu 12.04 14.04上面安装nfs服务器

2012-03-20 20:32 337 查看
在ubuntu 12.04上面安装nfs服务器过程如下:

# sudo apt-get install nfs-kernel-server nfs-common

# sudo mkdir /nfsroot

# sudo chmod 777 /nfsroot -R

# sudo chown nobody /nfsroot -R

# sudo vim /etc/exports添加如下一行:

[On Ubuntu 12.04]:

/nfsroot *(rw,sync,no_root_squash)

[On Ubuntu 14.04]: need oneno_subtree_check option, or else, it will throw out the warning when do start.

/nfsroot *(rw,sync,no_root_squash,no_subtree_check)

# sudo /etc/init.d/nfs-kernel-server restart

至此,NFS服务器安装成功。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: