安裝docker、docker-composephp
克隆地址: https://github.com/helloMJW/d...laravel
切換TAG到laravel5.5: git checkout laravel5.5git
構建容器github
docker-compose up -d
進入docker安裝Laraveldocker
docker ps //查看php容器ID docker exec -it <容器ID> sh composer global require "laravel/installer" cd /home/wwwroot ~/.composer/vendor/bin/laravel new laravel chmod -R 777 laravel
配置本地主機host文件網絡
服務IP demo.laravel.comphp7
訪問出現laravel歡迎頁則表示環境創建成功~.composer
[RuntimeException] Failed to clone https://github.com/laravel/laravel.git, git was not found, check that it is installed and in your PATH env. sh: git: not found