环境搭建 2016.11.28

开发环境:

服务器: ubuntu 16.04

Yii版本: Yii2.0.10

Redis版本: 3.0.6

安装apache2

apt-get install apache2

安装php7

apt-get install php libapache2-mod-php7.0  php7.0-mysql php7.0-gd

apt-get install php7.0-mbstring php7.0-curl php7.0-zip

安装redis

sudo apt-get install redis-server redis-tools php-redis

安装Composer

apt-get install composer

composer config -g repo.packagist composer https://packagist.phpcomposer.com

安装Yii2

composer global require "fxp/composer-asset-plugin:^1.2.0"

composer create-project --prefer-dist yiisoft/yii2-app-basic yii2

你可能感兴趣的:(环境搭建 2016.11.28)