ubuntu16.04 nfs服务配置
2018-12-14 10:14
302 查看
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ggxyx123/article/details/84998670
安装nfs服务:
sudo apt-get install nfs-kernel-server nfs-common
配置nfs:
vim /etc/exports
[code]1 # /etc/exports: the access control list for filesystems which may be exported 2 # to NFS clients. See exports(5). 3 # Example for NFSv2 and NFSv3: 4 # /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check) 5 # Example for NFSv4: 6 # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check) 7 # /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check) 8 #
添加:
/home/flnet/kernel/tmp/tmp *(rw,sync,no_subtree_check)
rw:读/写权限,只读权限的参数为ro;
sync:数据同步写入内存和硬盘,也可以使用async,此时数据会先暂存于内存中,而不立即写入硬盘。
no_root_squash:NFS服务器共享目录用户的属性,如果用户是 root,那么对于这个共享目录来说就具有 root 的权限
重启服务
sudo service nfs-kernel-server restart
mount测试
mount -o nolock 192.168.1.120:/home/flnet/kernel/tmp/tmp /mnt
相关文章推荐
- Ubuntu 16.04安装配置Samba服务
- ubuntu下配置NFS,TFTP服务
- 在Ubuntu为mini2440开发板配置NFS服务(转)
- Ubuntu 16.04 配置NFS
- Ubuntu配置FTP,SSH,NFS服务
- Ubuntu 14.04配置nfs服务
- Ubuntu配置tftp和nfs服务的步骤
- ubuntu 16.04 nfs服务的搭建
- ubuntu16.04上安装配置DHCP服务的详细过程
- Ubuntu下安装NFS服务及其配置
- ubuntu server 16.04的安装 以及配置网络还有ssh服务
- 学习笔记_安装和配置NFS服务(For Ubuntu)
- ubuntu 16.04 nfs服务的搭建
- ubuntu 下 配置nfs服务
- Ubuntu下配置NFS服务
- ubuntu16.04上安装配置DHCP服务的详细过程
- ubuntu 8.04 NFS服务的配置(转)
- ubuntu下配置nfs服务<自己有一定的修改>
- Ubuntu下配置NFS服务
- Ubuntu下配置tftp服务和NFS服务