rc.local 썸네일형 리스트형 우분투에서 rc.local 파일을 활성화하는 방법 우분투에서 rc.local 파일을 활성화하는 방법 Ubuntu에서 rc.local 파일을 활성화하는 방법은 다음과 같습니다. 1. rc-local.service 서비스 파일을 생성 sudo vim /etc/systemd/system/rc-local.service [Unit] Description=/etc/rc.local Compatibility [Service] Type=forking ExecStart=/etc/rc.local start TimeoutSec=0 StandardInput=tty RemainAfterExit=yes [Install] WantedBy=multi-user.target 2. rc-local.service 파일 저장 및 종료 vim 편집기에서 Shift + zz를 누르고 저장 및 종.. 더보기 rc.local 스크립트를 활성화하는 방법 rc.local 스크립트를 활성화하는 방법 rc.local은 리눅스 부팅 시 자동으로 실행되는 스크립트입니다. rc.local 스크립트를 활성화하는 방법은 다음과 같습니다. 1. rc.local 스크립트를 작성합니다. 일반적으로 /etc/rc.local 파일에 스크립트를 작성합니다. 예를 들어, 다음과 같은 스크립트를 작성할 수 있습니다. vim /etc/rc.local #!/bin/bash # This script will be executed at the end of each multiuser runlevel /path/to/your/command arg1 arg2 2. rc.local 파일을 실행 가능하도록 변경합니다. sudo chmod +x /etc/rc.local 3. 시스템을 다시 부팅합니다.. 더보기 이전 1 다음