運行環境介紹 分開安裝了apt-get install nginx |php |mysqlphp
問題一:報錯404 Not Foundmysql
解決辦法: location / { #try_files $uri $uri/ =404; #try_files $uri $uri/ /index.php?$query_string; if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; } }nginx
問題二:驗證碼出不來,報錯顯示sql
致命錯誤: Call to undefined function think\captcha\imagecreate(),其根本解決辦法就是安裝gd庫!致使登陸處的刷新驗證刷新不出來php7
Ubuntu安裝blog
sudo apt-get install php7.2-gdget