ubuntu 12.04配置NFS服务

来源:互联网 发布:java接口 英文缩写 编辑:程序博客网 时间:2024/04/30 23:10
1.在Ubuntu 上新建一个终端,依次输入以下命令:
# apt-get install portmap
# apt-get install nfs-kernel-server
# gedit /etc/exports
在弹出的文本编辑器中编辑exports 文件,在最后一行添加:
/nfs 192.168.1. *(rw,sync,no_root_squash)
2. 启动NFS服务
#sudo /etc/init.d/portmap restart
#sudo /etc/init.d/nfs-kernel-server restart
3 检查服务是否已经运行
#service portmap status
#service nfs-kernel-server status
原创粉丝点击