일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- error
- 제어루프
- 정규표현식
- Catalina
- 네이버웍스
- 분산추적
- 리눅스
- 알림
- desktop
- 마이크로서비스 패턴
- docker
- AWS
- MSA
- eclipse
- 네이버클라우드플랫폼
- 모니터링 및 경고 중앙화
- chat API
- Chat gpt
- MAC
- GitLab
- ChatGPT
- sh
- GIT
- 자바 정규식
- 가상머신 차이
- application 재기동
- linux
- 도커
- crontab
- 메시지
- Today
- Total
목록전체 글 (48)
시간나는대로 틈틈히 정리 합시다~~!!!
1. Crontab 편집 화면 오픈(vi 편집기 동일) [root@hostname ~]# crontab -e 2. 등록된 Crontab 목록 확인 [root@hostname ~]# crontab -l 3. Crontab 등록 문법 #주석입니다. #분 시 일 월 주 실행명령 * * * * * /home/test.sh 4. 예시 # 매분 test.sh 실행 * * * * * /home/test.sh # 매주 금요일 오전 5시 45분에 test.sh 를 실행 45 5 * * 5 /home/test.sh # 매일 매시간 0분, 20분, 40분에 test.sh 를 실행 0,20,40 * * * * /home/test.sh # 매일 1시 0분부터 30분까지 매분 tesh.sh 를 실행 0-30 1 * * * /ho..
1. boolean java.lang.String.matches(String regex) public class RegularExpressionsTest { public static void main(String[] args) throws Exception { System.out.println( "aaa@google.com".matches("^[0-9a-zA-Z]([-_.]*?[0-9a-zA-Z])*@[a-zA-Z]([-_.]*?[0-9a-zA-Z])*.[a-zA-Z]{2,3}$") ); System.out.println( "aaa_1@google.co.kr".matches("^[0-9a-zA-Z]([-_.]*?[0-9a-zA-Z])*@[a-zA-Z]([-_.]*?[0-9a-zA-Z])*.[a-zA-Z]..

1. 표현식 테스트 사이트 : https://regex101.com/ regex101: build, test, and debug regex Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java. Features a regex quiz & library. regex101.com
서버에 /usr/sbin/rotatelogs 파일이 있어야 사용 가능하다. 없다면 아파치를 설치하면 해당 파일도 설치된다. 1. 설정 [root@hostname ~]# cd /home/tomcat/apache-tomcat-8.5.51/bin [root@hostname bin]# vi catalina.sh 2. 추가 입력해야 하는 값 | /usr/sbin/rotatelogs "$CATALINA_OUT".%Y-%m-%d 86400 540 & - 명령어 설명 86400 => 로테이션 시간(초단위) 24시간 540 => 표준시를 한국시간으로 조정 +9시간 3. 변경전 내용 shift touch "$CATALINA_OUT" if [ "$1" = "-security" ] ; then if [ $have_tty -e..
1. Shell Script 파일 생성 [root@hostname ~]# cd /home [root@hostname home]# vi delete_log.sh 2. delete_log.sh에 아래 내용 입력(위치는 예시임) #톰캣 로그 디렉토리 TOMCAT_LOG=/home/tomcat/logs #오늘 날짜 가져옴 DATE='date +%Y_%m_%d' #catalina.out 파일 날짜별로 백업 cp $TOMCAT_LOG/catalina.out $TOMCAT_LOG/catalina.out.$DATE #catalina.out 파일 초기화 cat /dev/null > $TOMCAT_LOG/catalina.out #오래된 로그 파일 삭제(30일 이상 지난 파일들) find $TOMCAT_LOG -mtime ..

1. 환경 - Windows 10 Pro 64bit - java : open jdk 1.8.0.252-2.b09 64bit - spring boot v2.2.2.Release - eclipse v2020-12 (4.18.0) - Tomcat 8.5.63 2. 오류메시지 3. 문제점 - Tomcat 8.5 가 Dynamic Web Module 4.0을 지원하지 못해서 발생 4. 해결방법 1) 프로젝트 Properties > Project Facets > Dynamic Web Module - 4.0 => 3.1 으로 다운 시킬 수 없다고 나옴 2) 윈도우 탐색기에서 해당 프로젝트 폴더로 이동 - ./.settings/org.eclipse.wst.common.project.facet.core.xml -..
1. 환경 - Windows 10 Pro 64bit - java : open jdk 1.8.0.252-2.b09 64bit - spring boot v2.2.2.Release - eclipse v2020-12 (4.18.0) - 내장톰캣 9.0.29 - maven compiler 3.8.1 2. 오류메시지 - Goal 에 package 입력 후 Maven Build.. 시 오류 발생 [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /C:/Project/workspace/aicrawlingcheduler/src/main/java/com/enliple/ai/sched..
1. 환경 - Windows 10 Pro 64bit - java : open jdk 1.8.0.252-2.b09 64bit - spring boot v2.2.2.Release - eclipse v2020-12 (4.18.0) - 내장톰캣 9.0.29 2. 오류메시지 Could not initialize class org.hibernate.validator.internal.engine.valueextraction.ValueExtractorManager Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. ERROR 10:38:00.546 [main Sprin..