728x90
반응형
crontab 파일에서 cron 설정을 해준다
커맨드 crontab -e : crontab 파일을 설정을 할 수 있음
![](http://t1.daumcdn.net/tistory_admin/static/images/xBoxReplace_250.png)
위 사진처럼 왼쪽에서부터 분 시 일 주 요일 [실행할 파일 명령어]로 사용
* : 모든값 포함이란 뜻 즉 오후3시 35분에 해당 sh(쉘)을 실행하겠다는 의미
설정이 완료되었으면 :wq! 필수
수정 후 crond restart 필수
![](http://t1.daumcdn.net/tistory_admin/static/images/xBoxReplace_250.png)
![](http://t1.daumcdn.net/tistory_admin/static/images/xBoxReplace_250.png)
status로 active라 써져있다면 정상적으로 동작중인것
728x90
반응형
'TIP)' 카테고리의 다른 글
window->linux 서버로 파일 전송하는 방법 (0) | 2023.04.13 |
---|---|
[JSP, SPRING] JSP에서 java properties 파일 안의 값 가져오는 방법 (0) | 2023.04.07 |
[JAVA] BasicDataSource를 이용한 외부 db연결하는방법 (0) | 2023.04.04 |
[JAVA] 폴더안에 있는 파일을 압축하는 방법 (0) | 2023.03.22 |
[JAVA] arrayList 값의 구분자 콤마(',')에서 변경하는방법 (0) | 2023.03.14 |
댓글