WSL2/Laravel導入
をテンプレートにして作成
Search in
this wiki
and
or
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
* WSL2でLaravel [#xb46f76e]
wsl -l -v
wsl --install -d Ubuntu
wsl --set-version Ubuntu 2
wsl --export Ubuntu Ubuntu_php.tar
wsl --import Ubuntu_php %USERPROFILE%\AppData\Local\Pack...
wsl --unregister Ubuntu
del Ubuntu_php.tar
wsl -l -v
wsl -d Ubuntu_php -u user
- 以下wsl内で実行
# Jaistに変更
sudo sed -i'~' -E "s@http://(..\.)?(archive|security)\.u...
sudo apt -y update && sudo apt -y full-upgrade
sudo apt -y install php php-bcmath php-mbstring php-xml ...
# 確認
php -m
# Composer https://getcomposer.org/download/
php -r "copy('https://getcomposer.org/installer', 'compo...
php -r "if (hash_file('sha384', 'composer-setup.php') ==...
php composer-setup.php
php -r "unlink('composer-setup.php');"
sudo mv composer.phar /usr/local/bin/composer
# 確認
composer -V
composer global require "laravel/installer"
echo 'export PATH="$PATH:$HOME/.config/composer/vendor/b...
. .bash_profile
mkdir dev
cd dev
laravel new example
cd example
php artisan serve
終了行:
* WSL2でLaravel [#xb46f76e]
wsl -l -v
wsl --install -d Ubuntu
wsl --set-version Ubuntu 2
wsl --export Ubuntu Ubuntu_php.tar
wsl --import Ubuntu_php %USERPROFILE%\AppData\Local\Pack...
wsl --unregister Ubuntu
del Ubuntu_php.tar
wsl -l -v
wsl -d Ubuntu_php -u user
- 以下wsl内で実行
# Jaistに変更
sudo sed -i'~' -E "s@http://(..\.)?(archive|security)\.u...
sudo apt -y update && sudo apt -y full-upgrade
sudo apt -y install php php-bcmath php-mbstring php-xml ...
# 確認
php -m
# Composer https://getcomposer.org/download/
php -r "copy('https://getcomposer.org/installer', 'compo...
php -r "if (hash_file('sha384', 'composer-setup.php') ==...
php composer-setup.php
php -r "unlink('composer-setup.php');"
sudo mv composer.phar /usr/local/bin/composer
# 確認
composer -V
composer global require "laravel/installer"
echo 'export PATH="$PATH:$HOME/.config/composer/vendor/b...
. .bash_profile
mkdir dev
cd dev
laravel new example
cd example
php artisan serve
ページ名: