본문 바로가기
반응형

WEB,WAS61

Apache Bench 설치 및 사용법 (window, ubuntu Ubuntu sudo apt install apache2-utils Windows https://rainbound.tistory.com/entry/Apache-24X-%EC%84%A4%EC%B9%98-%EB%B0%8F-%EC%8B%A4%ED%96%89-for-Windows-11 Apache 2.4.X 설치 및 실행 for Windows 11 다운 받는곳 찾는게 일이었다.. https://dlcdn.apache.org/httpd/binaries/win32/ Index of /httpd/binaries/win32 Index of /dist/httpd/binaries/win32 Important Notices Name Last modified Size Description Parent Directory - H.. 2023. 1. 5.
spring broken pipe 에러 org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe 해당 에러발생하면서 연속적인 요청 막기 응답시간 증가 가용 스레드 증가 exception 무시 및 block [해결 방법] 1. Request(요청) 후 Response(응답) 기다리기 : 클라이언트는 계속 해서 데이터를 보내지않고 하나의 레코드를 보낸 뒤 서버에서 정상적으로 수신됫다는 응답을 받게한다. (속도가 좀 느려진다.) 2. Exception 무시해버리기 : Client 가 비정상적인 종료를 했을때 Broken pipe Signal이 발생하고 Client의 종료를 서버에서 제어가 불가능 하므로 시그널을 무시한다. 3. 중복 요청 막기 : 클라이언.. 2023. 1. 2.
Nginx 에서 환경변수를 지원할까요? 정답은 아닙니다. 하지만 docker나 linux에서 환경변수를 설정하여 받아올수는 있습니다. https://linuxhint.com/nginx-use-environment-variables/ Can Nginx Use Environment Variables? Nginx is a powerful web server and reverse proxy that has become a default choice for most developers. With the rise of cloud computing and containers such as Docker, deploying multiple applications using Nginx is easy and efficient. However, when you r.. 2022. 12. 19.
./gradlew buildimage 에러 Execution failed for task ':bootBuildImage'. > Builder lifecycle 'creator' failed with status code 145 [creator] ERROR: failed to build: exit status 1 > Task :bootBuildImage FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':bootBuildImage'. > Builder lifecycle 'creator' failed with status code 145 * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insig.. 2022. 12. 16.
Apache 2.4.X 설치 및 실행 for Windows 11 다운 받는곳 찾는게 일이었다.. https://dlcdn.apache.org/httpd/binaries/win32/ Index of /httpd/binaries/win32 Index of /dist/httpd/binaries/win32 Important Notices Name Last modified Size Description Parent Directory - HTTP Server project patches_applied/ 2022-06-17 11:25 - Official patches symbols/ 2022-06-17 11:25 - HTTP Server project LEGACY.html 2010-03-06 02: dlcdn.apache.org 4중에 아무데나 들어가면 된다. 자신에게 맞는 환경.. 2022. 12. 8.
[Nginx] "GET / HTTP/1.1" 200 193 "-" "ELB-HealthChecker/2.0" "-" 로그 계속 나오는 경우 nginx를 fargate로 돌리는데 뭔200 로그가 health check할때마다 찍히고 있다. 난 해킹당한줄 알고 검색해봣는데 찾아보니 nginx 내부에서 헬스체크 로그를 찍는다는것을 알수 있었다. 해결방법은 nginx.conf나 default.conf(docker에서 기본 nginx 이미지를 사용하면 이걸 사용함)에 다음 코드를 추가하시면 됩니다. ... # 이것과 map $http_user_agent $ignore_useragent { default 1; "ELB-HealthChecker/2.0" 0; } server { .... location / { ... # 이것을 추가해주면 됩니다. access_log /var/log/nginx/access.log combined if=$ignore_use.. 2022. 12. 5.
Hydrate 란? HTML 코드와 React인 JS코드를 서로 매칭 시키는 과정 Next.js의 Hydrate란? :: 이뇽의세상 (tistory.com) Next.js의 Hydrate란? Next.js 프레임워크의 동작원리를 제대로 파악하고 있는 개발자라면 Hydrate에 대해선 이미 익숙한 용어일 것이다. 그러나 Next.js의 주요 동작 방식 중 하나임에도, 눈에 잘 띄지 않아 놓치기도 쉬운 helloinyong.tistory.com 2022. 11. 7.
web rednering 웹페이지 렌더링 영어 https://web.dev/rendering-on-the-web/ Rendering on the Web Where should we implement logic and rendering in our applications? Should we use Server Side Rendering? What about Rehydration? Let's find some answers! web.dev 한국어 https://woojeongmin.com/2022/study-log/what-happens-when-you-type-wwwnavercom/ 브라우저 주소창에 www.naver.com을 치면 일어나는 일 What happens when…을 바탕으로 네트워크와 OS, 브라우저에서 일어나는 일을 정리했습니다... 2022. 11. 7.
tomcat 세션클러스터링 sudo timedatectl set-timezone Asia/Seoul ./bin/catalina.sh start ./bin/catalina.sh stop setenv.sh server.xml java_opts tomcat 실행시 추가실행 옵션 export JAVA_OPTS="$JAVA_OPTS -Dspring.profiles.active=prod -server" export CATALINA_PID="/home/ubuntu/api/bin/catalina.pid" https://12bme.tistory.com/467 [톰캣] 세션 클러스터 휘발성 영역인 JVM 메모리 내에 세션 객체가 생성되어 있을때 Tomcat이 중지한다면, 메모리 내에 생성되어 있던 모든 세션은 제거된다. Tomcat 인스턴스를 다중.. 2022. 10. 25.
SEO 가 되기 위한 SSR 렌더링 하는 이유 SSR 하는이유 1. 속도 - 서버에서 렌더링을 미리 해서 주기 때문에 속도가 빠르다. 2. SEO - 위와 비슷한 이유인데 속도가 빠를수록 상단에 노출되고 javascript의 경우 페이지를 바꿀경우 시간이 오래걸리는데 google bot이 일정시간 크롤링하는시간이 넘어가게 되면 크롤링을 안하게 되서 검색어에 노출이 되질 않는다. 저는 next.js 를 이용하여 ssr 을 사용했습니다. Next.js https://velog.io/@gwak2837/Next.js-%ED%8E%98%EC%9D%B4%EC%A7%80-%EB%A0%8C%EB%8D%94%EB%A7%81-%EC%9D%B4%ED%95%B4%ED%95%98%EA%B8%B0 Next.js 페이지 렌더링 이해하기 React는 기본적으로 1개의 HTML .. 2022. 10. 14.
nextjs s3에 올리기 프로젝트가 이미 있다고 가정하겠습니다. 순서는 간단합닌다. 방법 npm install npm run build 하고 out 폴더에 있는 내용을 s3에 올리기만 하면됩니다. npm run dev는 현재 경로에서 실행 build 이후 에러 그런데.. 이파일 전체를 올리면 안될것같음 npm run build를 한후 out 폴더만 올리면 된다고한다. 그래서 npm run bulid를 해봤지. Warning: Do not use `` element. Use `` from `next/image` instead. See: https://nextjs.org/docs/messages/no-img-element 이건 아닌듯.... eslintrc.json 수정 420:49 Error: `>` can be escaped w.. 2022. 10. 5.
[powershell]메이븐 Unknown lifecycle phase ".test.skip=true" 에러 mvn clean install -Dmaven.test.skip=true 에러 발생 [INFO] Invalid task '.test.skip=true': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId :pluginVersion:goal -앞에 `를 붙여줘야함 mvn clean install `-Dmaven.test.skip=true https://kuniganotas.wordpress.com/2011/08/12/invalid-task-test-skiptrue-you-must-specify-a-valid-lifecycle-phase/ Invalid tas.. 2022. 9. 13.
반응형