레드햇 rc.local 이용하여 시작시 특정 프로그램 실행하기
페이지 정보

본문
> chmod +x /etc/rc.d/rc.local
> systemctl status rc-local.service
> systemctl start rc-local.service
> vi /usr/lib/systemd/system/rc-local.service
아래를 추가
[Install]
WantedBy=multi-user.target
> systemctl enable rc-local.service
> systemctl list-unit-files | grep rc.local
> vi /etc/rc.d/rc.local
실행시킬 명령어 넣기
재부팅후 실제 실행하는지 확인하기
관련링크
- 이전글centos8 에서 .html 도 php 작동하게 설정하기 23.09.14
- 다음글centos 8 rabbimq 설치 20.09.01
댓글목록
등록된 댓글이 없습니다.