laravel5教程【1】:安装

#安装composer

参考:安装composer


#下载lavarel

composer global require "laravel/installer=~1.1"


#加入path

export PATH="~/.composer/vendor/bin:$PATH"

#创建项目

aravel new blog


浏览 http://localhost/blog/public/


laravel5教程【1】:安装_第1张图片


恭喜,第一步创建成功!


参考

http://www.golaravel.com/laravel/docs/5.0/ (官方文档)

http://jingyan.baidu.com/user/npublic/expList?un=milertom&pn=14

https://www.digitalocean.com/community/tutorials/how-to-install-laravel-with-nginx-on-an-ubuntu-12-04-lts-vps


防止内存溢出

dd if=/dev/zero of=/swapfile bs=1024 count=512k
mkswap /swapfile
swapon /swapfile

https://www.digitalocean.com/community/tutorials/how-to-install-laravel-with-nginx-on-an-ubuntu-12-04-lts-vps

你可能感兴趣的:(laravel5教程【1】:安装)