Linux
Centos 7 rc.local 활성화
Scottlang
2020. 9. 28. 13:58
728x90
* OS 설치 후 rc.local 수정 후 실행이 안되는 경우
활성화
#chmod +x /etc/rc.d/rc.local

# rc.local 서비스 시작 및 상태 확인

# systemctl enable
vi /usr/lib/systemd/system/rc-local.service
[install]
WantedBy=multi-user.target
#systemctl list-unit-files |grep rc.local
#systemctl enalbe rc-local.service
완료