글
라벨이 Nginx Server Setup인 게시물 표시
[7] Nging Server Setup - Building a Text Detection API using Drogon Server with OpenCV
- 공유 링크 만들기
- X
- 이메일
- 기타 앱
Setting up text detection in RHEL and integrating it with a Drogon server to develop functionality that extracts text information as an API and displays it to clients. Note: The purpose is Text Detection, not OCR (Optical Character Recognition). OCR will be integrated later. 0. Search for Text Detection Frameworks | Framework | Language | Pros | Cons | |---------------------|-----------------|------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------| | Tesseract OCR | C++ (Python, etc.) | Open source, supports multiple languages, customizable | Can have degraded performance without preprocessing, requires integration with OpenCV f...
[6] Nginx Server Setup - Implementing Upload/Download + Simple Upload Client
- 공유 링크 만들기
- X
- 이메일
- 기타 앱
With directory listing set up, let's implement file upload/download functionality using Drogon. 1. Server Function Implementation 1-1. Implementing Drogon Controller Register the Drogon Controller. (This step is required for it to be recognized during the build.) ``` cd /root/drogon2/drogon/build/drogon_ctl drogon_ctl create controller FileController ``` 1-2. Implement Upload/Download Functionality Source path: `/root/drogon2/drogon/build/drogon_ctl/testAPI/controllers` FileController.h #pragma once #include using namespace drogon; class FileController : public HttpController { public: std::string _storagePath = "/root/storage/"; METHOD_LIST_BEGIN // Handles POST requests for "/upload" ADD_METHOD_TO(FileController::handleUpload, "/upload", Post); // Handles GET requests for "/download/{filename}" ADD_METHOD_TO(FileController::handleDownload, "/download/{1}", Get); METHOD_LIST_END // Method declarations void handleUplo...
[5] Nginx Server Setup - Folder Listing on Web
- 공유 링크 만들기
- X
- 이메일
- 기타 앱
Before implementing file upload/download functionality, let's first create a local storage directory and make it accessible via the web. 1. Create Storage and Set Permissions - Create storage directory ``` mkdir /root/storage cd /root/storage vi test.txt # Add any content, save, and exit ``` - Grant permissions to the directory for the user running NGINX ``` ps aux | grep nginx ``` For example, if the NGINX process runs as "nobody", change the folder's ownership: ``` [root@vbox build] (master) $ ps aux | grep nginx root 52636 0.0 0.0 4544 2412 ? Ss 01:26 0:00 nginx: master process ./nginx root 59772 0.0 0.1 13064 9600 pts/1 T 06:04 0:00 /usr/bin/vim nginx.conf nobody 60676 0.0 0.0 13168 5484 ? S 06:23 0:00 nginx: worker process nobody 60677 0.0 0.0 13168 5612 ? S 06:23 0:00 nginx: worker process ``` - Change permissions and ownership sudo chmod -R 755 /root/storage sudo chown -R ...
[4] Nginx Server Setup - Writing a Drogon Test API
- 공유 링크 만들기
- X
- 이메일
- 기타 앱
Let's create an API using Drogon to return specific values as a test. 1. Setting up the Drogon Test Project - Run the following command in the directory where `drogon_ctl` is installed: ``` drogon_ctl create project testAPI cd testAPI ``` 2. Build - The full path will be /root/drogon2/drogon/build/drogon_ctl/testAPI/build ``` mkdir build cd build cmake .. make ``` If the following error occurs, it’s best to set the environment variable and reinstall Drogon: ``` CMake Error at /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package): By not providing "FindJsoncpp.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Jsoncpp", but CMake did not find one. Could not find a package configuration file provided by "Jsoncpp" with any of the following names: JsoncppConfig.cmake jsoncpp-config.cmake Add the installation prefix of "Jsoncpp" to CMAKE_PREFIX_PATH or set ...
[3] Nginx Server Setup - Connecting to C++ Web Framework
- 공유 링크 만들기
- X
- 이메일
- 기타 앱
0. Researching C++ Web Frameworks To achieve the goal of building a server in C++, I've started by researching suitable C++ web frameworks. According to GPT recommendations, Drogon is popular, so I'll proceed with this framework first. | Framework | Advantages | Disadvantages | |------------|-------------------------------------------------------------------------------------------|------------------------------------------------------------------| | Drogon | Supports modern C++14/17 standards Asynchronous programming and multi-thread support Supports HTTP2 and WebSocket High performance and user-friendly API Active community and support | Initial setup can be complex due to many features | | Pistache | Lightweight design enables quick web server implementation Suitable for RESTful API development Simple code and easy to learn | S...
[2] Nginx Server Setup - Downloading and Setting Up a Specific Version of Nginx
- 공유 링크 만들기
- X
- 이메일
- 기타 앱
Instead of installing Nginx directly to the system path, this guide explains how to download, build, and set up Nginx manually. Setup Environment - Red Hat Enterprise Linux release 9.4 (Plow) 1. Download and Extract Nginx To download and extract Nginx: ``` wget http://nginx.org/download/nginx-1.21.6.tar.gz tar -xvf nginx-1.21.6.tar.gz ``` To download a different version, simply change the version number in the command and proceed with the steps as outlined. 2. Install Required Libraries Install essential libraries: ``` sudo yum install -y gcc pcre pcre-devel zlib zlib-devel openssl openssl-devel ``` ``` Explanation of each library: - gcc: The C compiler required to compile Nginx source code into an executable. - pcre: Provides regular expression handling for Nginx. - pcre-devel: Contains development headers needed when compiling Nginx. - zlib: Enables gzip compression in Nginx. - zlib-devel: Provides zlibs development files needed for compiling. - openssl: Necessary for SSL/T...
[1] Nginx Server Setup - VirtualBox Installation and Putty Connection
- 공유 링크 만들기
- X
- 이메일
- 기타 앱
# How to Set Up a Linux Virtual Environment for Testing Using VirtualBox on Windows 10 Setting up a Linux virtual environment can be helpful for testing purposes. This guide walks you through setting up a virtual machine on Windows 10 using VirtualBox. 1. VirtualBox Download To begin, download VirtualBox. - Go to VirtualBox Downloads . - Download the installer for your OS (choose "Windows hosts" for Windows 10). After downloading, proceed with the installation by following the prompts. 2. RHEL (Red Hat Enterprise Linux) OS Download Since CentOS reached its End of Life (EOL), it's recommended to use RHEL. - Visit RHEL Downloads (version 9.4 as of 2024.11.02). - To use RHEL for free, register for an Individual Developer Subscription. There is no cost for registration. 3. VirtualBox - Setting Up a RHEL Virtual Machine 1. Create a New Machine - Open VirtualBox and click "New.", Set the storage path. 2. Set Up VM Password - Create a password for...
이 블로그의 인기 게시물
[로스트아크] 제작 효율 최적화 위한 영지 세팅
1. 대성공 확률 증가 vs. 제작 수수료 절감 - 대성공 확률 증가 : 대성공 확률이 2% 증가해도 실제 효과는 크지 않습니다. 예를 들어, 기본 대성공 확률 5%에 2% 증가를 적용해도 실질적인 효과는 0.1% 증가에 불과합니다. - 제작 수수료 절감 : 제작 수수료를 2% 절감할 경우, 제작할 때마다 발생하는 골드 비용을 직접적으로 줄일 수 있어 비용 절약 효과가 훨씬 큽니다. - 결과적으로, 제작 수수료 절감이 대성공 확률 증가보다 약 10배 더 많은 이득을 제공합니다. 따라서 대성공 확률보다는 수수료 절감에 집중하는 것이 권장됩니다. 2. 효율적인 영지 세팅을 위한 이득 극대화 세팅 - 영지 내 필수 세팅 아이템으로 "곡예사의 대기실," "찬란한 소원 나무," "여신의 가호"가 추천됩니다. - 곡예사의 대기실 : 마리샵에서 블루 크리스탈로 구매할 수 있으며, 기본적인 제작 효율을 높이는 데 필수 아이템입니다. - 찬란한 소원 나무 : 수수료 절감을 제공하여 제작 비용을 절감하는 효과가 있어 이득 극대화에 도움이 됩니다. - 여신의 가호 : 미술품 42개를 모아 획득할 수 있으며, 추가적인 제작 효율을 제공합니다. 여유가 있다면 필수로 장착하는 것이 좋습니다. - 여신의 가호 대신, 곡예사의 무기 진열대 를 구매해 사용할 수도 있으며, 경제적인 선택지로 활용할 수 있습니다. 3. 의상 세팅 (선택적 적용) - 특정 의상을 착용하면 제작 효율이 약간 증가하지만, 최적의 의상 옵션은 없기 때문에 필수는 아닙니다. 크리스탈 비용이 부담스러울 경우 생략 가능하며, 다른 세팅을 우선적으로 강화하는 것이 좋습니다. - 드레스룸 이용 : 크리스탈을 사용하여 드레스룸에서 특정 NPC와의 호감도로 얻을 수 있는 의상을 구매할 수 있습니다. - 추천 의상 : 페일린, 실리안, 엘리제로나운 의상이 추천되며, 각각 350 크리스탈로 구매할 수 있습니다. - 비용 절약 방법 : 크리스탈이 부족하거나 가성비...
[로스트아크] 로스트아크 생활 도구 옵션
생활 도구 옵션 및 확률 | 옵션 | 고급 | 희귀 | 영웅 | 전설 | 유물 | |-------------------------|-------------|------------|-------------|-------------|-------------| | 기본 보상 추가 획득률 | 5~10% | 10~20% | 15~30% | 20~40% | 25~50% | | 희귀 재료 획득률 | 5~10% | 10~20% | 15~30% | 20~40% | 25~50% | | 특수 획득 확률 | 0.5~1% | 1~2% | 1.5~3% | 2~4% | 2.5~5% | | 내구도 미차감 확률 | 2.5~5% | 5~10% | 7.5~15% | 10~20% | 12.5~25% | | 채집속도 | 1.25~2.5% | 2.5~5% | 3.75~7.5% | 5~10% | 6.25~12.5% | | 미니게임 난이도 하락 | 1 | 1~2 | 1~2 | 2~3 | 2~3 | | 미니게임 보상 획득 확률 | 5~10% | 10~20% | 15~30% | 20~40% | 25~50% | | 낚시 캐스팅 등급 | 1~2 | 2~4 | 4~6 | 6~8 | 8~10 | 생활 키트 옵션 정리 - 영웅 등급 생활 도구가 제작 비용면에서 효율 좋음 | 생활 유형 | 필수 옵션 (빨간색) ...
작은 거인 심권호: 한국 레슬링의 전설과 그의 성공 전략
# 심권호 프로필 및 수상 경력 심권호 는 대한민국을 대표하는 레슬링 선수로, 작은 체구에도 불구하고 강력한 체력과 기술로 세계적인 성과를 거둔 인물입니다. 그는 두 체급에서 올림픽과 세계 선수권 대회를 제패하며 한국 레슬링 역사상 가장 성공적인 선수로 기록되었습니다. 주요 수상 경력 - 1992년 : 아시아 주니어 선수권 - 금메달 - 1993년 : 아시아 선수권 - 금메달 - 1994년 : 히로시마 아시안 게임 - 금메달 (48kg급) - 1995년 : 세계 선수권 (체코 프라하) - 금메달 (48kg급) - 1996년 : 애틀랜타 올림픽 - 금메달 (48kg급) - 1998년 : 방콕 아시안 게임 - 금메달 (54kg급) - 1999년 : 세계 선수권 (그리스) - 금메달 (54kg급) - 2000년 : 시드니 올림픽 - 금메달 (54kg급) 그랜드슬램 달성 - 1996년 : 애틀랜타 올림픽 금메달을 획득하며, 아시아 선수권, 아시안 게임, 세계 선수권, 올림픽 금메달로 레슬링 그랜드슬램 달성 훈련 및 주요 기술 훈련 방법 - 체력 훈련 : 매일 장시간 러닝과 인터벌 트레이닝을 통해 지구력 강화. - 근력 강화 : 체중 대비 높은 힘 발휘를 위해 하체와 상체 근력 훈련 집중. - 기술 연습 : 실전에서 사용하는 기술을 반복 연습해 정확성과 속도 향상. - 유연성 훈련 : 스트레칭과 요가로 유연성 강화, 부상 방지에 주력. 자주 사용한 기술 - 들어 던지기 : 상대방을 들어 던져 균형을 무너뜨리는 기술. - 굴리기 및 뒤집기 : 상대를 회전시키며 포지션을 바꾸는 기술. - 후크 및 잠금 기술 : 상대의 다리나 팔을 걸어 잠금으로 고정. 식단 관리 - 단백질 중심 식단 : 닭가슴살, 생선, 두부, 계란 등을 통해 근육 회복과 유지. - 저지방, 저탄수화물 식단 : 체중 조절을 위해 저지방 식단 유지. - 수분 조절 : 경기 전후 수분 조절로 체중 관리 및 경기력 유지. - 비타민과 미네랄 보충 : 과일과 야채를 통한 비타민 ...