7.4.2 nfs服务器配置

1、安装nfs

root@jewel-cli:~# apt-get install nfs-kernel-server

2、设置配置文件exports,指定共享目录

root@jewel-cli:~# vim /etc/exports

添加如下信息,指定:共享目录、允许客户端访问的IP地址、权限控制

/mnt/nfs-share 172.20.2.*(rw,async,no_subtree_check,no_root_squash)

3、启动nfs服务

#sudo /etc/init.d/portmap restart
root@jewel-cli:~# service nfs-kernel-server start
 * Exporting directories for NFS kernel daemon...                                      [ OK ] 
 * Starting NFS kernel daemon                                                          [ OK ]

results matching ""

    No results matching ""