PHP 설치
PHP 모듈을 설치합니다.
sudo apt install php7.4 php7.4-cli php7.4-curl php7.4-common php7.4-gd \ php7.4-intl php7.4-gmp php7.4-fpm php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-readline php7.4-xml php7.4-zip
PHP composer 와 유틸리티 프로그램을 설치합니다.
sudo apt install composer zip jq xsel certutil
라라벨 인스톨러를 설치합니다.
composer global require laravel/installer
이제 laravel installer 로 새로운 라라벨 프로젝트를 생성할 수 있습니다.
laravel new new-laravel-project
MySQL 설치
Unable to render {include} The included page could not be found.
Redis 설치
sudo apt install redis-server
구동 스크립트 작성
WSL 은 systemctl 을 지원하지 않으므로 다음 스크립트를 작성하고 한 번 실행해 줍니다.
service-start.sh
#!/bin/bash sudo service mysql start sudo service redis-server start