1、nginx 配置
server {
listen 80;
server_name laravel5-test.d.com;
charset utf-8;
location / {
root D:/***/www/test/laravel55-test/public;
index index.php index.html index.htm;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
root D:/***/www/test/laravel55-test/public;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
2、composer install
3、php artisan key:generate
参考:
手机扫一扫
移动阅读更方便
你可能感兴趣的文章