安装 xampp, 下载地址:自己百度
安装之后修改httpd-vhosts.conf文件,文件目录 xampp\apache\conf\extra\httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "F:\xampp\htdocs\works\guandan"
ServerName guandan.local
</VirtualHost>
配置本地host文件,文件目录 C:Windows\System32\drivers\etc\hosts
127.0.0.1 guandan.local
使127.0.0.1这个IP指向到上面的ServerName本地域名
执行xampp-control.exe文件 开启Apache MySQL
后面把地址的域名改成ServerName就可以本地调试了。
http://guandan.local/