Redhat7 autofs自动挂载nfs共享的home目录


# vi /etc/auto.master.d/home.autofs


/home/guests   /etc/auto.home

:wq


# vi /etc/auto.home


* aa.ming.com:/home/guests/&

:wq


# systemctl start autofs

# systemctl enable autofs