728x90 cron2 Crontab 설치 및 사용 설정 Crontab 설치 - CentOS # cron 설치 sudo yum update -y sudo yum install -y cronie # cron 시작 sudo systemctl start crond # cron systemctl 활성화 sudo systemctl enable crond # cron systemctl 등록 확인 sudo systemctl list-unit-files | grep crondCrontab 설치 - Ubuntu # cron 설치 sudo apt update -y sudo apt install -y cron # cron 시작 sudo service cron start # cron systemctl 활성화 sudo systemctl enable cron.service # cron.. Linux 2021. 7. 9. [Docker] Crontab 설치 https://codeday.me/ko/qa/20190325/152387.html Cron Job * * * * * root echo "Hello world" >> /var/log/cron.log 2>&1 Dockerfile FROM ubuntu:latest MAINTAINER docker@ekito.fr RUN apt-get update && apt-get -y install cron # Add crontab file in the cron directory ADD crontab /etc/cron.d/hello-cron # Give execution rights on the cron job RUN chmod 0644 /etc/cron.d/hello-cron # Create the log file to b.. DevOps 2020. 9. 3. 이전 1 다음 💲 추천 글 728x90