본문 바로가기 메뉴 바로가기

별별코딩

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

별별코딩

검색하기 폼
  • 분류 전체보기 (96) N
    • 사소한 개발 일기 (3)
    • language (21)
      • java (17)
      • kotlin (4)
      • python (0)
    • backend (17) N
      • spring boot (7) N
      • jpa (4)
      • server (2)
      • linux (3)
      • 장애대응 (1)
    • database (5)
      • mysql (2)
      • redis (1)
      • mongodb (2)
    • devops (1)
      • docker (1)
    • etc (13)
      • git (8)
      • mac (1)
      • firebase (1)
      • etc (3)
    • error log (19)
    • computer science (2)
      • network (2)
    • algorithm (1)
    • project (9)
      • side project (3)
      • academy (6)
    • Series (5)
      • 자바 플레이그라운드 with TDD, 클린코드 (1)
      • 도메인 주도 개발 시작하기 (0)
      • 스프링 핵심 원리 - 기본편 (4)
  • 방명록

전체 글 (96)
[linux] 현재 사용하고 있는 포트 확인

포트 사용하고 있는 프로세스 확인 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

backend/linux 2023. 2. 17. 19:00
[GIT] branch 이름 변경

[로컬 저장소] 브랜치 이름 변경 $ 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 :기존브랜치명 변경할브랜치명

etc/git 2023. 2. 15. 09:20
[GIT] add 취소하기

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..

etc/git 2023. 2. 15. 09:03
[MAC] Spring Boot 리눅스 서버에 jar 파일 배포

피치 못할 사정으로... 쓰고 있던 젠킨스에 접근을 못하게 되어 수동으로 배포할 일이 생겼다. 이참에 리눅스에 jar 파일로 배포하는 법도 익힐겸 수동 배포를 해보았다. 깃허브 연동하여 배포하는 방법은 차차 해봐야겠다.! 젠킨스 만세...!! * 리눅스 서버 배포 ? 로컬에서 프로젝트를 배포하여 새로 시작할 때는 IDE로 손쉽게 Run 버튼을 누르면 되지만, 리눅스 서버에서 배포하기 위해서는 jar 파일을 실행해 줘야 한다. jar 파일 빌드하기 1. 우측 Gradle 탭 - 배포하고자할 모듈 - build - bootJar 실행 2. 좌측 프로젝트 - 배포할 모듈 - build - libs 폴더에서 생성된 jar파일 여기서 생성된 jar파일을 Linux 서버에 옮겨 실행하면 배포 된다. 서버에 JDK ..

backend/server 2023. 2. 14. 19:34
[linux] 리눅스 프로세스 확인 & 중지

프로세스가 정상적으로 동작하고 있는지를 확인 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

backend/linux 2023. 2. 14. 18:56
ChatGPT 랑 놀기 : 에러 고쳐줘. 삼행시 지어줘.

지금 해결 못하고 있는 에러 물어보기 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..

etc/etc 2023. 2. 13. 16:50
Firebase Storage 이미지 업로드

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 폴더 ..

etc/firebase 2023. 2. 12. 20:58
[MAC] 사용중인 포트 찾아서, Kill 하기

사용중인 포트 찾기 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

etc/mac 2023. 2. 12. 18:16
[GIT] stash로 파일 임시저장하기 + 특정 파일만 임시 저장

git stash * git add 명령어로 한번이라도 index 영역에 트래킹 된 파일만 stash영역에 저장한다. stash로 파일 임시 저장하기 저장하기 tracked 된 파일 모두 stash git stash 저장하기 + 명칭추가 : save git stash save "설명" 목록보기 : list git stash list 적용하기 1 : apply : 적용 후에도 리스트에 유지 git stash apply 가장 최근의 stash 적용 * 원하는 저장이력 적용 git stash apply stash@{숫자} ex) git stash apply 2 적용하기 2 : pop 적용 후 리스트에서 삭제 git stash pop 가장 최근의 stash 적용되고 삭제 * 원하는 저장이력 적용 git stas..

etc/git 2023. 2. 12. 16:55
[kotlin] java.lang.NumberFormatException: For input string

에러메세지 java.lang.NumberFormatException: For input string: "aaa@kakao.com" 원인 숫자가 아닌 문자열 (aaa@kakao.com 전부)이 포함된 문자열을 변환하면 NumberFormatException 발생 해결방법 1. 숫자 데이터에 toLong() 을 사용한다. 2. NumberFormatException에 대한 try catch 예외처리 String.toLong() String.toLong()는 문자열을 Long으로 변환하여 리턴 val str: String = "1234" val num: Long = str.toLong() print("num : $num") Output: num : 1234 NumberFormatException 숫자가 아닌 ..

error log 2023. 2. 12. 16:04
이전 1 ··· 3 4 5 6 7 8 9 10 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • addFilterBefore
  • 추상클래스
  • junit5
  • Kotlin
  • 스프링오류
  • jvm warm-up 전략
  • 스프링 스케줄링
  • array
  • QueryDSL
  • spring boot 3
  • n+1
  • 자바 어플리케이션 실행 과정
  • bucket4j
  • dto 클래스 생성자
  • Linux
  • checkout
  • Cannot construct instance of
  • Git
  • ChatGPT
  • 배열
  • MultipleBagFetchException
  • MongoDB
  • FetchJoin
  • redisson 분산락
  • 티스토리챌린지
  • port
  • Spring Security
  • JPA
  • 오블완
  • Java
more
«   2025/07   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바