root@gugeosigan:~# certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
Certificate Name: gnu.mogibu.kro.kr
Domains: gnu.mogibu.kro.kr
Expiry Date: 2024-07-04 04:27:04+00:00 (VALID: 83 days) Certificate Path: /etc/letsencrypt/live/gnu.mogibu.kro.kr/fullchain.pem
Private Key Path: /etc/letsencrypt/live/gnu.mogibu.kro.kr/privkey.pem
Certificate Name: wp.mogibu.kro.kr
Domains: wp.mogibu.kro.kr
Expiry Date: 2024-07-04 04:30:20+00:00 (VALID: 83 days) Certificate Path: /etc/letsencrypt/live/wp.mogibu.kro.kr/fullchain.pem
Private Key Path: /etc/letsencrypt/live/wp.mogibu.kro.kr/privkey.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
7월 2일 시행
crontab -e
MAILTO = ""
0 12 2 * * /usr/bin/letsencrypt renew >> /var/log/le-renew.log
5 12 2 * * /usr/sbin/service apache2 reload
0 13 * * * ./backup.sh 1>/dev/null 2>/dev/null
0 23 * * * /sbin/poweroff
service cron status
● cron.service - Regular background program processing daemon
Loaded: loaded (/lib/systemd/system/cron.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2024-04-12 20:29:02 KST; 1h 1min ago
Docs: man:cron(8)
Main PID: 331 (cron)
Tasks: 1 (limit: 4443)
Memory: 2.1M
CGroup: /system.slice/cron.service
└─331 /usr/sbin/cron -f
Apr 12 20:39:01 Gugeosigan CRON[1027]: pam_unix(cron:session): session opened for user root by (uid=0)
Apr 12 20:39:01 Gugeosigan CRON[1055]: (root) CMD ( [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Apr 12 20:39:01 Gugeosigan CRON[1027]: pam_unix(cron:session): session closed for user root
Apr 12 21:09:01 Gugeosigan CRON[1578]: pam_unix(cron:session): session opened for user root by (uid=0)
Apr 12 21:09:01 Gugeosigan CRON[1579]: (root) CMD ( [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Apr 12 21:09:01 Gugeosigan CRON[1578]: pam_unix(cron:session): session closed for user root
Apr 12 21:17:01 Gugeosigan CRON[1866]: pam_unix(cron:session): session opened for user root by (uid=0)
Apr 12 21:17:01 Gugeosigan CRON[1867]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Apr 12 21:17:01 Gugeosigan CRON[1866]: pam_unix(cron:session): session closed for user root
Apr 12 21:28:01 Gugeosigan cron[331]: (root) RELOAD (crontabs/root)
반드시
crontab 실행 명령
// 크론탭 시작
service cron start
// 크론탭 중지
service cron stop
// 작동확인
service cron status
'IT' 카테고리의 다른 글
서버 디렉토리별 용량 (0) | 2024.04.14 |
---|---|
서버가 자주 에러가 난다. (0) | 2024.04.12 |
windows 11 인터넷 간헐적 끊김 현상 (0) | 2024.04.11 |
그누보드와 워드프레스 연동 (0) | 2024.04.08 |
워드프레스 파일 퍼미션 (0) | 2024.04.06 |