- 전체보기
- user 비밀번호 변경
- 첫 ubuntu 서버 접속
- 첫 user 등록
- 비밀번호 접속 막기
- Root 접속 막기
- 비밀번호 대신 SSH key로 접속할 수 있게 설정
- Nginx 설치하기
- MySQL 설치하기
- 우분투 18.04에서 PHP 7.4 설치
- 매번 sudo 비밀번호 입력하지 않게 설정하기
- Apache2 포트 변경하기
- 현재 위치하고 있는 폴더 확인하기
- 우분투에 설치된 패키지 리스트 보기
- 우분투 20.04에서 PHP 8.1 설치하기
- SSH key 터미널에서 보이게 하기
- 우분투 유저 리스트 보기
- 우분투 MySQL user 추가하기
- 우분투 권한 변경하기
- 우분투 cron job 크론잡 설정
- 우분투에서 메모리 사용량 확인하기
- Nano Editor에서 제일 마지막 라인으로 가기
- 맥 터미널에서 SSH로 파일 업로드
- 파일 삭제
Ubuntu - 우분투 cron job 크론잡 설정
조회수: 502서버에 접속 후
crontab -e 실행하자.
처음 실행하면 목록이 나올 것이다.
가장 쉬운 걸로 선택하면 된다.
아래와 같이 설명이 되어 있다.
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').
#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
command를 넣어야 한다.
예를 들어서 라라벨의 경우에는
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
이렇게 넣으면 작동한다.
별표 5개(***** )는 매 분이라는 의미다.
https://crontab.guru/에 접속하면 감이 올 것이다.
처음에는 머리 아프다. 계속 반복 연습.