# 系統環境
*****
PHP =7.4
Mysql = 5.7
Apache 或 Nginx
*****
# 搭建教程
一.將源碼上傳至服務器(空間)
*****
二.解壓,將域名解析到服務器并指向目錄
*****
三.設置偽靜態
nginx:
```
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
```
apache:
```
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>
```
由于我的服務器配置是nginx,所以apache的偽靜態我沒有親測過,如果無法使用的話,就使用寶塔中默認的thinkphp的偽靜態即可,nginx同理。
*****
四:開始安裝
訪問網址http://你的域名/Install
注意:是Install,不是install