解决nfs无法挂载的问题

来源:互联网 发布:sql 随机选取 编辑:程序博客网 时间:2024/05/01 11:40

 新建一个已.sh为后缀的文件,输入

#!/bin/sh
service xinetd restart
service portmap restart
service nfs restart
service iptables stop

 

同时需要在/etc/exports中添加

 共享路径(例如/) *(rw,sync,no_root_squash)

然后运行该脚本。

原创粉丝点击