포트 사용하고 있는 프로세스 확인 sudo lsof -i :8080 다음과 같이 포트를 확인할 수 있다. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 1949 daeun 8u IPv6 0x9bd5b38e4fbe7c4b 0t0 TCP localhost:http-alt (LISTEN) java 15097 daeun 176u IPv6 0x9bd5b38e4fb4444b 0t0 TCP *:http-alt (LISTEN) 특정 포트 프로세스 죽이기 kill 명령어 kill -9 {PID} fuser 명령어 $ fuser -k -n tcp 9090 9090/tcp: 2894
[로컬 저장소] 브랜치 이름 변경 $ git branch -m 기존브랜치명 변경할브랜치명 230212-daeun ➡️ 230215-daeun 로 변경하였다. $ git branch -m 230212-daeun 230215-daeun $ git status On branch 230215-daeun [원격 저장소] 브랜치 이름 변경 $ git push origin 변경할브랜치명 $ git push origin --delete 기존브랜치명 새로운 브랜치 푸시 + 기존 브랜치 삭제 한번에 하기 $ git push origin :기존브랜치명 변경할브랜치명
add 취소하기 : staged 상태를 unstage 로 변경 $ git restore --staged {파일명} $ git restore --staged ../batch/src/main/kotlin/com/beside/backend/batch/job/wisesaying/WiseSayingJobConfiguration.kt $ git status On branch daeun Changes to be committed: (use "git restore --staged ..." to unstage) new file: ../api/src/test/kotlin/com/beside/backend/api/service/emotion/EmotionServiceTest.kt Changes not staged for c..
피치 못할 사정으로... 쓰고 있던 젠킨스에 접근을 못하게 되어 수동으로 배포할 일이 생겼다. 이참에 리눅스에 jar 파일로 배포하는 법도 익힐겸 수동 배포를 해보았다. 깃허브 연동하여 배포하는 방법은 차차 해봐야겠다.! 젠킨스 만세...!! * 리눅스 서버 배포 ? 로컬에서 프로젝트를 배포하여 새로 시작할 때는 IDE로 손쉽게 Run 버튼을 누르면 되지만, 리눅스 서버에서 배포하기 위해서는 jar 파일을 실행해 줘야 한다. jar 파일 빌드하기 1. 우측 Gradle 탭 - 배포하고자할 모듈 - build - bootJar 실행 2. 좌측 프로젝트 - 배포할 모듈 - build - libs 폴더에서 생성된 jar파일 여기서 생성된 jar파일을 Linux 서버에 옮겨 실행하면 배포 된다. 서버에 JDK ..
프로세스가 정상적으로 동작하고 있는지를 확인 ps -ef | grep java : 현재 실행되고 있는 java 관련 프로세스가 있는지 확인한다. $ ps -ef | grep java root 14188 14162 0 Feb06 ? 00:39:45 java -jar -Dspring.profiles.active=dev /api.jar root 43501 42301 9 18:46 pts/0 00:00:26 java -jar api.jar root 44611 42301 0 18:51 pts/0 00:00:00 grep java 프로세스 중지 kill -9 {pid(프로세스번호)} $ kill -9 43501
지금 해결 못하고 있는 에러 물어보기 Resolve this issue. Could not autowire. No beans of 'JobBuilderFactory' type found. This error message indicates that the JobBuilderFactory class is not found in the application context. This can happen for several reasons, including: The required library or dependencies are missing in your project. The class is not correctly imported in your code. The class is not annotated..
Firebase 프로젝트 생성 https://console.firebase.google.com/u/0/ 로그인 - Google 계정 이메일 또는 휴대전화 accounts.google.com Firebase Storage 시작하기 Cloud Storage 설정 1. 프로덕션 모드에서 시작 2. asia-northeast3 선택 읽기, 쓰기 권한 true 1. Rules 에서 권한 수정 2. 게시 버튼 클릭 allow read, write: if false; // -> true로 변경해줘야 읽고 쓰기 가능 allow read, write: if true; URL 규칙 다음 순서대로 작성해주면 된다. 1. https://firebasestorage.googleapis.com/v0/b/ 2. bucket 폴더 ..
사용중인 포트 찾기 lsof -i :포트번호 lsof = list open files lsof -i :8080 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 800 daeun 8u IPv6 0x27ada903c078e0a7 0t0 TCP localhost:http-alt (LISTEN) java 92939 daeun 82u IPv6 0x27ada903d0e60527 0t0 TCP *:http-alt (LISTEN) Kill 하기 kill -9 PID kill -9 92939
- Total
- Today
- Yesterday
- redisson 분산락
- 배열
- FetchJoin
- 스프링 스케줄링
- dto 클래스 생성자
- array
- addFilterBefore
- Spring Security
- 추상클래스
- MultipleBagFetchException
- n+1
- 자바 어플리케이션 실행 과정
- bucket4j
- MongoDB
- junit5
- JPA
- spring boot 3
- port
- ChatGPT
- Git
- QueryDSL
- Cannot construct instance of
- Kotlin
- 오블완
- checkout
- jvm warm-up 전략
- 티스토리챌린지
- Java
- Linux
- 스프링오류
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |