설치 문서: OWASP Juice Shop
환경: Ubuntu Server 기술: Node.js + Express + Angular
0조회
환경: Ubuntu Server 기술: Node.js + Express + Angular
1. Node.js 설치
Sección titulada «1. Instalación de Node.js»OWASP Juice Shop은 최신 버전의 Node.js(버전 18 이상)가 필요합니다. 설치할 버전은 22입니다.
sudo apt updatecurl -fsSL [https://deb.nodesource.com/setup_22.x](https://deb.nodesource.com/setup_22.x) | sudo -E bash -sudo apt install -y nodejs
# Verificar versiónnode -v# Debe ser v20+cd /var/www/htmlsudo git clone [https://github.com/juice-shop/juice-shop.git](https://github.com/juice-shop/juice-shop.git)cd juice-shop3. 설치 및 빌드 (Build)
Sección titulada «3. Instalación y Compilación (Build)»이 단계는 필수적입니다. 실패할 경우 서버가 시작되지 않습니다 (오류 CONNECTION_REFUSED). npm install을 쓰기 권한으로 실행하여 build 폴더를 생성해야 합니다.
# 1. Asignar propiedad a tu usuario actual para poder compilarsudo chown -R $USER:$USER /var/www/html/juice-shop
# 2. Instalar dependencias y compilar la aplicaciónnpm install
# 3. Devolver la propiedad al usuario web (seguridad)sudo chown -R www-data:www-data /var/www/html/juice-shop4. 서비스 관리 (시작 및 중지)
Sección titulada «4. Gestión del Servicio (Iniciar y Parar)»OWASP Juice Shop은 Apache와 같은 시스템 서비스가 아닙니다. Node.js 프로세스로, 터미널에서 계속 실행해야 합니다.
OWASP Juice Shop 시작
Sección titulada «Iniciar OWASP Juice Shop»cd /var/www/html/juice-shopsudo -u www-data npm startinfo: Server listening on port 3000 메시지를 보게 될 때까지 기다립니다.
웹 접근: http://TU_IP:3000
OWASP Juice Shop 중지
Sección titulada «Detener OWASP Juice Shop»실행 중인 터미널에서 다음을 누릅니다:
Ctrl + C

