Ir al contenido

설치 문서: OWASP Juice Shop

환경: Ubuntu Server 기술: Node.js + Express + Angular

0조회

환경: Ubuntu Server 기술: Node.js + Express + Angular

OWASP Juice Shop은 최신 버전의 Node.js(버전 18 이상)가 필요합니다. 설치할 버전은 22입니다.

Ventana de terminal
sudo apt update
curl -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ón
node -v
# Debe ser v20+
Ventana de terminal
cd /var/www/html
sudo git clone [https://github.com/juice-shop/juice-shop.git](https://github.com/juice-shop/juice-shop.git)
cd juice-shop

이 단계는 필수적입니다. 실패할 경우 서버가 시작되지 않습니다 (오류 CONNECTION_REFUSED). npm install을 쓰기 권한으로 실행하여 build 폴더를 생성해야 합니다.

Ventana de terminal
# 1. Asignar propiedad a tu usuario actual para poder compilar
sudo chown -R $USER:$USER /var/www/html/juice-shop
# 2. Instalar dependencias y compilar la aplicación
npm install
# 3. Devolver la propiedad al usuario web (seguridad)
sudo chown -R www-data:www-data /var/www/html/juice-shop

OWASP Juice Shop은 Apache와 같은 시스템 서비스가 아닙니다. Node.js 프로세스로, 터미널에서 계속 실행해야 합니다.

Ventana de terminal
cd /var/www/html/juice-shop
sudo -u www-data npm start

info: Server listening on port 3000 메시지를 보게 될 때까지 기다립니다.

웹 접근: http://TU_IP:3000

실행 중인 터미널에서 다음을 누릅니다: Ctrl + C