码迷,mamicode.com
首页 > 其他好文 > 详细

RHCE7.0答案之NFS

时间:2016-10-28 07:54:54      阅读:319      评论:0      收藏:0      [点我收藏+]

标签:rhce

NFS配置:

  1. lab nfskrb5 setup

  2. wget -o http://keytab.krb5.key

  3. vim /etc/sysconfig/nfs RPCNFSDAGS=-V4.2

  4. mkdir /nfs2; mkdir /nfs2/private

  5. chown ldapuser5 /nfs2/private

  6. vim /etc/exports

    /nfs2 172.25.0.0/24(rw, sync) sec=krb5p

  7. systemctl restart nfs-server.service

    systemctl restart nfs-secure-server.service

  8. Desktop:

    server0:/nfs2 /mnt/nfs2 nfs defaults, V4.2, sec=krb5p 0 0

  9. ssh ldapuser5@localhost kerberos

    touch /mnt/nfs2/private/ttt.file

  10. 若是在客户端不能用mount -a挂载,尝试

    systemctl stop rpc.socket

    systemctl start rpc.socket

    systemctl restart rpcbind.service

    systemctl restart nfs-server.service

  11. tailf /var/log/messages 或ntpdate classroom

RHCE7.0答案之NFS

标签:rhce

原文地址:http://ponyjia.blog.51cto.com/917324/1866559

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!