# 视频教程

# 1. 在本地安装phpStudy和部署A3Mall商城系统

# 视频笔记

nginx:

location / {
	if (!-e $request_filename){
    	rewrite ^(.*)$ /index.php?s=$1 last; break;
    }
}


apache:

<IfModule mod_rewrite.c>
 RewriteEngine on
 RewriteBase /

 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !^(static|uploads)
 RewriteRule ^(.*)$ index.php?s=/$1 [QSA,PT,L]
</IfModule>


[mysqld]
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION

# 2.在Linux下安装宝塔和部署A3Mall商城系统