티스토리 뷰

AWS EC2(Amazon Linux) 인스턴스에서 /etc/rc.local 기능 활성화

 

rc.local 퍼미션 확인

ls -l /etc/rc.local
lrwxrwxrwx 1 root root 13 Jun 23 04:50 /etc/rc.local -> rc.d/rc.local

ls -l /etc/rc.d/rc.local
-rw-r--r-- 1 root root 581 Aug 28 09:57 /etc/rc.d/rc.local

 

rc.local 퍼미션 변경

chmod +x /etc/rc.d/rc.local

ls -l /etc/rc.d/rc.local
-rwxr-xr-x 1 root root 581 Aug 28 09:57 /etc/rc.d/rc.local

 

리부팅

reboot
댓글
댓글쓰기 폼