이 세상에 하나는 남기고 가자

이 세상에 하나는 남기고 가자

세상에 필요한 소스코드 한줄 남기고 가자

CentOS autofs

유영재

설치

yum install -y autofs

설정

# 서버 부팅시 자동 시작
/sbin/chkconfig --add autofs
/sbin/chkconfig --level 35 autofs on

mount 설정

vi /etc/auto.master

/home/nfsusers   /etc/auto.users --timeout 60

vi /etc/auto.users
yyj -rw,vers=3,udp,nolock   192.168.11.99:/czdev/vagrant/work/web

service autofs restart

관리

# 데몬 재시작
service autofs restart

# 상태 확인
service autofs status

# 설정 다시 일기
service autofs reload

Troubleshooting

# 동작 로그 보기
service autofs stop
automount -f -v
comments powered by Disqus