thinkcmf5.1的下載
鏈接:https://pan.baidu.com/s/17BikltE-zOVoJbrSgwI6lQ
提取碼:48wi
1、將thinkcmf5.1的文件全部解壓后,放到 D:\phpstudy_pro\WWW\thinkcmf 文件夾下面;安裝目錄設置到 thinkcmf/public下面去的;

2.打開phpstudy,設置->配置文件,選擇對應的.conf設置文件,

復制下面的代碼,替換cmf.im_80內容代碼;注意 root "D:/project/thinkcmf/public";
server { listen 80; server_name cmf.im; root "D:/project/thinkcmf/public"; location / { index index.html index.htm index.php; #主要是這一段一定要確保存在 if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; } #結束 #列出目錄 autoindex on; } location ~ \.php(.*)$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params; } }
3。再進行下一步,輸入數據庫的賬號和密碼,安裝thinkcmf即可

查看 https://www.thinkcmf.com/doc5_1.html
5.1文檔->基礎->安裝thinkcmf5.1->
nginx配置參考

