Roll The Dice
close
프로필 배경
프로필 로고

Roll The Dice

  • 분류 전체보기 (110)
    • error (16)
    • Web (31)
      • TIL (16)
      • JAVA (1)
      • JS (13)
      • Python (1)
    • 알고리즘 (30)
    • 운영체제 (10)
    • 네트워크 (9)
    • ML DL (4)
      • TensorFlow 기초 (2)
      • Object Detection (2)
    • 면접 (2)
    • 회고 (1)
  • 홈
  • 태그
  • 방명록

iptables NAT 테이블을 활용한 포트포워딩 에러 해결

포트 번호 없애기 (5000) sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 5000이 명령어는 eth0 인터페이스를 통해 들어오는 TCP 프로토콜의 포트 80(일반적으로 HTTP 트래픽)으로 들어오는 모든 트래픽을 포트 5000으로 redirect 하는 것이다. 이 때 app.py를 재시작하면 포트포워딩이 제대로 되지 않는 경우가 있는데, 이는 iptables 규칙이 기본적으로 메모리에 저장되기 때문이라고 한다. iptables 규칙을 영구적으로 유지하려면 이를 파일에 저장하고, 시스템이 부팅될 때 해당 파일에서 규칙을 불러와야 한다.    이번 경우에는 ssh 명령어와 aws key 를 사용해 서버에..

  • format_list_bulleted error
  • · 2024. 7. 9.
  • textsms
ssh: connect to host ~ port 22: Operation timed out

ssh: connect to host ~ port 22: Operation timed out

방화벽 접근 확인만약 mac을 쓰고 있다면 설정에 들어가 AirPlay 수신 모드를 해제해주어야 한다. 그리고 방화벽도 꺼두어야 한다.ssh localhostThe authenticity of host 'localhost (::1)' can't be established.ED25519 key fingerprint is SHA256:qN5jcneN6vPjm+D/Ss9nBRS4K7+mrDRttHE/i7lkVDM.This key is not known by any other names.Are you sure you want to continue connecting (yes/no/[fingerprint])? Last login: Fri Jul 5 00:05:00 2024 from ::1문제가 있는 경우 ssh..

  • format_list_bulleted error
  • · 2024. 7. 5.
  • textsms

Unable to locate a Java Runtime : M1,M2칩을 사용하는 맥에서 마주한다면 Homebrew로 재설치하여 해결하자..^^

ufw를 설치하려는데 JAVA Runtime을 찾을 수 없다는 에러가 등장했다.sudo apt install ufw The operation couldn’t be completed. Unable to locate a Java Runtime.Please visit http://www.java.com for information on installing Java. 자바 설치 확인 방법java --version java version 명령어로는 확인java --versionopenjdk 21.0.1 2023-10-17OpenJDK Runtime Environment (build 21.0.1+12-29)OpenJDK 64-Bi..

  • format_list_bulleted error
  • · 2024. 7. 4.
  • textsms

[VM] ERROR: Could not find a version that satisfies the requirement request (from versions: none)

pip install request 실행시 ERROR: Could not find a version that satisfies the requirement request (from versions: none)ERROR: No matching distribution found for request 에러가 발생하였다.  pip list 로 확인해보니 Package Version------- -------pip     24.0 이었고,  A new release of pip is available: 24.0 -> 24.1.1 이 가능하다 해서pip install --upgrade pip 명령 실행 후 다시 install 하였음에도 같은 에러가 발생했고, 수많은 해결책들을 여전히 실행했으나 설치되지 않았다. 알..

  • format_list_bulleted error
  • · 2024. 6. 29.
  • textsms
[Node.js] npm ERR! JSON.parse Unexpected end of JSON input while parsing empty string

[Node.js] npm ERR! JSON.parse Unexpected end of JSON input while parsing empty string

npm eslint --init 실행 에러 상황 정리 1. 가장 최상위 폴더에 eslint 설치 후 , elsint --init 명령어 가 실행되지 않았다. 2. 최상위 폴더는 node.js환경만 구성되어있고, npm init 은 실행 하지 않음 3. npm uninstall 명령으로 eslint 삭제 4. eslint 설치 이전에는 Package.json파일이 생성되지 않았으므로, package.json 파일을 제거해줌 {} ( uninstall 이후에는 이렇게 생성되어 있었다 ) 5. npm 이 init 되어있는 하위 폴더로 이동하여 npm install eslint 실행 ✗ npm install eslint npm ERR! code EJSONPARSE npm ERR! path /Users/jeong..

  • format_list_bulleted error
  • · 2024. 3. 29.
  • textsms
[React] Warning: Each child in a list should have a unique "key" prop.

[React] Warning: Each child in a list should have a unique "key" prop.

props 렌더링 app의 내부 state를 TOC에 주입함으로써 자동으로 목록이 바뀌게 하는 작업 TOC의 부모가 가진 state값을 이용해서 TOC의 내부 값을 바뀌게 해본다 class App extends Component { constructor (props){ super(props); this.state = { subject:{title:'WEB', sub:'World Wide Web!'}, contents:[ {id:1, title:'HTML', desc:"HTML is for information"}, {id:2, title:'CSS', desc:'CSS is for design'}, {id:3, title:'JavaScript', desc:'JavaScript is for interacti..

  • format_list_bulleted error
  • · 2023. 11. 3.
  • textsms
  • navigate_before
  • 1
  • 2
  • 3
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (110)
    • error (16)
    • Web (31)
      • TIL (16)
      • JAVA (1)
      • JS (13)
      • Python (1)
    • 알고리즘 (30)
    • 운영체제 (10)
    • 네트워크 (9)
    • ML DL (4)
      • TensorFlow 기초 (2)
      • Object Detection (2)
    • 면접 (2)
    • 회고 (1)
최근 글
인기 글
최근 댓글
태그
  • #메세지브로커
  • #CPU
  • #cpu게이트
  • #java22
  • #node.js #express
  • #TS #typescript #generic
  • #캐시메모리
  • #pm2 #vm
  • #이벤트브로커
  • #Ram
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바