首頁 > 軟體

Linux基礎教學學習筆記之NFS

2020-06-16 17:27:10

Linux基礎教學學習筆記之NFS

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

本文永久更新連結地址http://www.linuxidc.com/Linux/2016-11/137610.htm


IT145.com E-mail:sddin#qq.com