Linux基础教程学习笔记之NFS
NFS配置:
-
lab nfskrb5 setup
-
wget -o http://keytab.krb5.key
-
vim /etc/sysconfig/nfs RPCNFSDAGS=-V4.2
-
mkdir /nfs2; mkdir /nfs2/private
-
chown ldapuser5 /nfs2/private
-
vim /etc/exports
/nfs2 172.25.0.0/24(rw, sync) sec=krb5p
-
systemctl restart nfs-server.service
systemctl restart nfs-secure-server.service
-
Desktop:
server0:/nfs2 /mnt/nfs2 nfs defaults, V4.2, sec=krb5p 0 0
-
ssh ldapuser5@localhost kerberos
touch /mnt/nfs2/private/ttt.file
-
若是在客户端不能用mount -a挂载,尝试
systemctl stop rpc.socket
systemctl start rpc.socket
systemctl restart rpcbind.service
systemctl restart nfs-server.service
-
tailf /var/log/messages 或ntpdate classroom
本文永久更新链接地址:http://www.linuxidc.com/Linux/2016-11/137610.htm