Linux新建nfs
1.安装软件包:
apt-getinstall portmap/rpcbind <-------------客户端和服务器的安装
apt-getinstall nfs-kernel-server
apt-getinstall nfs-user-server (安装后才有此文件/etc/exports)
apt-getinstall nfs-common
2.指定共享目录
3.在配置文件中配置共享目录:
vi /etc/export <-------------配置文件
/home/share 192.168.1.122/24(rw)
4.开启服务
/etc/init.d/rpcbind restart
/etc/init.d/nfs-kernel-server restart<-------------重启服务