AWS 서버 시간 변경 $ sudo date 2022. 08. 11. (목) 06:06:06 UTC $ sudo cat /etc/localtime TZif2UTCTZif2?UTC UTC0 -- 기존시간 삭제 $ sudo rm /etc/localtime -- 서울시간 등록 $ sudo ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime -- 시간 확인 $ date 2022. 08. 11. (목) 15:11:01 KST skill/Linux 2022.08.11
AWS 서버 Jenkins pipeline 연결 시, codedeploy-agent 설치 및 IAM 연동 [CodeDeploy error] : ApplicationStop : [error] CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server. + 배포되는 서버에 CodeDeploy 에이전트가 실행 중인 지 확인 $ sudo service codedeploy-agent status (비정상) Redirecting to /bin/systemctl status codedeploy-agent.service (정상) The AWS CodeDepl.. skill/Linux 2022.06.16
nohup java -jar 실행 시, 1>/dev/null 2>&1 & 쓰임 nohup java -jar ~/test-0.0.1-SNAPSHOT.jar 1>/dev/null 2>&1 & jar 파일 서버 실행 시, 백그라운드로 실행 하기 위해 nohup 사용 nohup 실행 시, 로그는 nohup.log 파일이 생성 되어 기록 되는데 jar 파일 명 뒤에 1>/dev/null 2>&1 & 추가 시, nohup 로그 기록되지 않음. (설정한 log4j로 확인) skill/Linux 2022.06.16
git 파일 권한 추가 git 파일 권한 확인 git ls-tree HEAD git 파일 권한 등록 755 변경 : [file_name] 에 파일 명 git update-index --add --chmod=+x [file_name] 명령어 실행 ./[file_name] clean build git commit, push skill/Git 2022.06.02
[Kotlin] 배열 만들기 List<Int>, List<String> List, List의 배열 생성 fun main() { println(mutableListOf(1,2,3)) println(mutableListOf("가", "나", "다")) } 배열의 가장 큰 숫자 조회 object Util { fun getBigger(list: List): Int { var result = 0 for(count in list) { if(count != null && result < count) { result = count } } return result } } fun main() { println(Util.getBigger(mutableListOf(1, 2, 3))) // 3 } skill/Java.Kotlin 2022.04.27
Kotlin Scheduler (batch) import javax.annotation.PostConstruct; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Service; import lombok.extern.slf4j.Slf4j import org.slf4j.LoggerFactory @EnableScheduling @Slf4j @Service class ShedulingTask { private val logger = LoggerFactory.getLogger(BatchTask::class.jav.. skill/Java.Kotlin 2022.02.07
[css] @media print 머릿글 바닥글 삭제 및 다음 페이지 여백 주기 print-hide : 화면에서는 보이나, 출력 시 숨김 처리 print-show : 화면에서는 보이지 않으나, 출력 시 노출 처리 출력 시, 머릿글, 바닥글 미노출 처리 @media print { @page {margin:0 1.3cm} } @page 에서 margin:0으로 설정 해야, 머릿글 / 바닥글 가려짐. 하지만 2Page이상 상단 여백도 사라짐 그래서, 기본적으로 @page에 margin을 주고, 첫 페이지에 top, bottom margin을 0으로 처리 @page {margin:1.3cm 1.3cm} @page :first {margin:0 1.3cm} skill/HTML.Javscript.CSS 2021.12.09
[script] modal 열기, 닫기, 닫기 이벤트처리 및 해제 열기(open) : $('#modalID').modal('show') 닫기(close) : $('#modalID').modal('hide') modal 종료 시, 이벤트 처리 $('#modalID').on('hidden.bs.modal', function (e) { // function }) modal 종료 시, 이벤트 처리 해제 $('#modalID').off() modal 오픈 시, 이벤트 처리 $('#modalID').on('shown.bs.modal', function (e) { // function; }) example 1. 모달로 alert 창 생성 (+종료 시 focus 처리) /** * alert('이름은 필수 입니다.', $('[name=name]')); // 모달창 종료 시, name에.. skill/HTML.Javscript.CSS 2021.10.19
toast-chart column data 배열 받기 및 처리 const data = { categories: ['Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct'], series: { column: [ { name: 'Seoul', data: [11.3, 17.0, 21.0, 24.4, 25.2, 20.4, 13.9], }, { name: 'NewYork', data: [9.9, 16.0, 21.2, 24.2, 23.2, 19.4, 13.3], }, ], line: [ { name: 'Average', data: [11, 15.1, 17.8, 19.7, 19.5, 16.5, 12.3], }, ], } }; const columnArray = new Array(2) const column = {} column['name'] = "S.. skill/HTML.Javscript.CSS 2021.07.26
Port 8080 is already in use 톰캣 프로세스 종료 처리 해결 2021-05-12 09:21:56.949 DEBUG 7800 - [ restartedMain ] o.s.b.d.LoggingFailureAnalysisReporter - (LoggingFailureAnalysisReporter.java:37) report: Application failed to start due to an exception org.springframework.boot.web.server.PortInUseException: Port 8080 is already in use at org.springframework.boot.web.server.PortInUseException.lambda$throwIfPortBindingException$0(PortInUseException.java:70.. skill/Linux 2021.06.12