[PHP] laravel5.5 搭建流程

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

 

参考:

https://blog.csdn.net/jimliu004/article/details/45154981

https://blog.csdn.net/qq_25615395/article/details/79554863

posted @ 2019-12-19 11:12  wukong1688  阅读(185)  评论(0编辑  收藏  举报