본문 바로가기

ops117

[Other] window에 nvm 설치하기 https://cheoltecho.tistory.com/15 node.js와 npm 최신 버전으로 업데이트하기 (window 윈도우)팀원들과 함께 이번 프로젝트를 시작하기에 앞서 팀원들과 협업을 위해서 npm이랑 node.js의 버전을 같이 맞추는 것이 좋을 것 같아 정리하여 공유하려고 한다. 우선 현재 버전을 확인해 보자. nodecheoltecho.tistory.com 2024. 6. 15.
[Other] react, springboot cors 에러 해결 백엔드인 springboot의 cors 설정은 위와 같다.    프론트 엔드인 React에서 fetch로 http 요청을 보낼때  mode를 cors 로 설정해 놓았다.   프론트 엔드에서 요청을 보내면     try catch에서 에러를 잡아서 보여준다.    네트워크 탭을 확인해 보면은 요청이 백엔드로 가지도 않은거 같다. ---> status 코드가 없다     요청 헤더 상황---> 응답헤더가 없는 것을 보니 요청이 백엔드로 가지 않은거 같다.    프론트에 packge.json파일에 proxy를 추가해준다. ---> 서버의 주소와 포트번호를 작성해준다.     백엔드에 요청을 보내는 코드의 url에서 프록시로 설정한 주소를 제외 시킨다.    다시 요청을 보내보면은     백엔드 서버에서 요청을.. 2024. 6. 13.
[Docker] docker 란? https://docs.docker.com/get-started/overview/ Docker overviewGet an in-depth overview of the Docker platform including what it can be used for, the architecture it employs, and its underlying technology.docs.docker.com 2024. 6. 13.
[Docker] 실행중인 컨테이너의 터미널 사용하기 https://docs.docker.com/reference/cli/docker/container/exec/ docker exec docs.docker.com 2024. 6. 13.
[Docker] wordpress & mariadb docker compose 파일작성하기 https://hub.docker.com/_/wordpress wordpress - Official Image | Docker HubQuick reference Supported tags and respective Dockerfile links 6.5.4-php8.1-apache, 6.5-php8.1-apache, 6-php8.1-apache, php8.1-apache, 6.5.4-php8.1, 6.5-php8.1, 6-php8.1, php8.1⁠6.5.4-php8.1-fpm, 6.5-php8.1-fpm, 6-php8.1-fpm, php8.1-fpm⁠6.5.4-php8.1-fphub.docker.com 2024. 6. 13.
[Docker] docker compose 플러그인 추가설치하기 https://docs.docker.com/compose/install/linux/#install-the-plugin-manually 2024. 6. 13.
[Other] tomcat과 apache의 차이 https://www.theserverside.com/video/Tomcat-vs-Apache-HTTP-Server-Whats-the-difference Tomcat vs. Apache HTTP Server: What's the difference? | TheServerSideWhat's the difference between Tomcat and Apache? It's a question developers hear frequently. But, when worded that way, it contains some misleading assumptions. Normally, when people ask this question, they really want to know, "What's the dif.. 2024. 6. 13.
[Docker] docker 네트워크를 생성하고 컨테이너를 서로 연결하기 실행되고 있는 mysql 컨테이너  mysql 컨테이너와 연결할 백엔트의 datasource.url은 위와 같다.   컨테이너들을 연결하기 위해 network 생성    db01과 networkdb를 연결   백엔드 도커 이미지 파일 생성을 위한도커 파일의 내용은 위와 같다. ---> 이미지를 위해 사용할 앱은 이미 생성되어있는 앱을 사용     백엔드 이미지를 빌드    백엔드 이미지 빌드 완료     backend 이미지를 실행하면 db01 컨테이너와 통신을 하지 못하는 에러 발생   아마 도커 엔진 내부에서 연결이 되어서 그런거 같아서db01의 포트 포워딩되어있는 포트 번호가 아닌도커 실행시 사용되는 port번호로 백엔드 설정파일을수정   백엔드 이미지를 다시 빌드한다.   db01과 연결되어있는 .. 2024. 6. 12.
[Docker] 도커엔진에서 실행되는 컨테이너끼리 연결하기 https://www.youtube.com/watch?v=thLhAhPx8ww 2024. 6. 12.