1.下载laravel源码包
http://down.golaravel.com/laravel/laravel-v5.2.15.zip
2.lnmp添加虚拟机
lnmp vhost add
3.把laravel源码包上传到对应目录解压
再赋777权限,chmod 777 -R test
并把根目录下server.php改为index.php
4.进入/usr/local/nginx/conf/vhost/,修改配置文www.test.com.conf
location / {
try_files $uri $uri/ /index.php?$query_string;
}
5.修改php配置文件
php.ini 里去个proc_open和proc_get_status函数,重启一下php-fpm
6.重启
lnmp restart
访问网址就能正常访问了