laravel学习

Ubuntu14.04 64bit

1、下载composer,地址:https://getcomposer.org/composer.phar

2、安装

sudo mv composer.phar /usr/local/bin/composer
composer config -g repo.packagist composer https://packagist.phpcomposer.com

3、使用 Composer 下载 Laravel 安装包

composer global require "laravel/installer"

4、添加:export PATH=/home/gary/.config/composer/vendor/bin:$PATH 到 .bashrc 并 source .bashrc

5、创建名为 “blog” 项目

sudo mkdir /var/www
cd /var/www
sudo laravel new jjf
sudo chown -R www-data:www-data jjf

6、配置php-fpm: http://blog.csdn.net/kevin6216/article/details/50895810

7、配置nginx:http://blog.csdn.net/kevin6216/article/details/50896603

8、配置/etc/hosts:x.x.x.x jjf.com

9、浏览器访问:jjf.com

你可能感兴趣的:(laravel配置)