yum install docker 安装docker
service docker start 启动docker
docker pull docker.io/skiychan/nginx-php 下载这个镜像
docker images 查看镜像
docker run --name "自定义名字" -p 8086:80 -p 9100:9100 -p 9101:9101 -p 9102:9102 -p 9103:9103 -it --privileged 镜像ID /bin/bash 创建容器
docker ps -a 查看容器
docker start 自定义名字
docker exec -it 自定义名字 /bin/bash
yum install wget 安装wget
wget https://dl.laravel-china.org/composer.phar -O /usr/local/bin/composer 安装composer
chmod a+x /usr/local/bin/composer
export PATH=$PATH:/usr/local/php/bin 设置php环境变量
然后把composer的镜像换成国内的
composer config -g repo.packagist composer https://packagist.phpcomposer.com
cd data/www/
composer create-project --prefer-dist laravel/laravel blog