Open utterances-bot opened 1 year ago
# certbot v1.11 설치
sudo yum update -y
sudo yum install certbot python3-certbot-nginx
# 테스트
sudo systemctl stop nginx
sudo certbot renew --dry-run
# 재인증
sudo certbot certonly --force-renew -d demo.jeju.onl
# Select the appropriate number => 1
# 재시작
sudo systemctl start nginx
sudo certbot certificates
# ==> Certificate Name: demo.jeju.onl
# ==> Expiry Date: 2023-01-25 02:16:45+00:00 (VALID: 89 days)
5 4 3 1/2 *
크론탭 스케줄 위치는 '분, 시, 일, 월, 주(week)' 순서임
sudo crontab -e
# 매달 3일 오전 4시 5분에 실행
5 4 3 * * /usr/bin/certbot renew --quiet
[ `expr $(date +'%m') % 2` -eq 1 ] && echo "odd" || echo "even"
# ==> 홀수달이면 odd, 짝수달이면 even 출력
AWS Lightsail 에서 Amazon Linux 2 설정하기 | 태주네 블로그
AWS Lightsail 에서 Amazon Linux 2 를 선택하고 초기 설정 작업들을 기록합니다.
https://taejoone.jeju.onl/posts/2022-10-25-setup-amazon-linux-2/