当前位置: 技术问答>linux和unix
ubuntu里 NFS 无法建立
来源: 互联网 发布时间:2016-06-25
本文导语: 我的/etc/exports 文件内容 : # /etc/exports: the access control list for filesystems which may be exported # to NFS clients. See exports(5). # # Example for NFSv2 and NFSv3: # /srv/homes hostname1(rw,sync) hostname2(ro,sync) # # Example for NFSv4: ...
我的/etc/exports 文件内容 :
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync) hostname2(ro,sync)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/homes gss/krb5i(rw,sync)
#
/home/lee/rootfs *(rw, sync, no_root_squash)
重新启动exportfs:
lee@ubuntu:/etc$ sudo exportfs -r
结果:exportfs: /etc/exports:1: syntax error: bad option list
请高手指点!!!谢谢!!!
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync) hostname2(ro,sync)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/homes gss/krb5i(rw,sync)
#
/home/lee/rootfs *(rw, sync, no_root_squash)
重新启动exportfs:
lee@ubuntu:/etc$ sudo exportfs -r
结果:exportfs: /etc/exports:1: syntax error: bad option list
请高手指点!!!谢谢!!!
|
/home/lee/rootfs *(rw, sync, no_root_squash)
是你括号里面选项之间的空格导致的错误,去掉就没问题了
如:/home/lee/rootfs *(rw,sync,no_root_squash)
是你括号里面选项之间的空格导致的错误,去掉就没问题了
如:/home/lee/rootfs *(rw,sync,no_root_squash)
|
不要加进去空格