[root@centos7 /]$systemctl enable autofs
Created symlink from /etc/systemd/system/multi-user.target.wants/autofs.service to /usr/lib/systemd/system/autofs.service.
测试
[root@centos7 ~]#cd /misc/cd
[root@centos7 cd]#ls
CentOS_BuildTag EULA images LiveOS repodata RPM-GPG-KEY-CentOS-Testing-7
EFI GPL isolinux Packages RPM-GPG-KEY-CentOS-7 TRANS.TBL
[root@centos7 cd]#ll
total 1640
-rw-rw-r-- 1 root root 14 May 2 19:28 CentOS_BuildTag
drwxr-xr-x 3 root root 2048 May 4 04:34 EFI
-rw-rw-r-- 1 root root 227 Aug 30 2017 EULA
-rw-rw-r-- 1 root root 18009 Dec 10 2015 GPL
drwxr-xr-x 3 root root 2048 May 4 04:34 images
drwxr-xr-x 2 root root 2048 May 4 04:34 isolinux
drwxr-xr-x 2 root root 2048 May 4 04:34 LiveOS
drwxrwxr-x 2 root root 1640448 May 3 22:24 Packages
drwxrwxr-x 2 root root 4096 May 7 20:41 repodata
-rw-rw-r-- 1 root root 1690 Dec 10 2015 RPM-GPG-KEY-CentOS-7
-rw-rw-r-- 1 root root 1690 Dec 10 2015 RPM-GPG-KEY-CentOS-Testing-7
-r--r--r-- 1 root root 2883 May 7 20:53 TRANS.TBL