1.找到你本地的运行环境vhost.conf文件,将以下代码添加进去:
Listen 200
<VirtualHost *:200>
DocumentRoot E:/dinging/public/
ServerName localhost
</VirtualHost>
2.找到第二个文件host:配置这么一句进去
127.0.0.1 xxx.com
说无法打开topthink/Loader 文件 说明你的 文件vendor下缺少这些
3.你得先去除伪静态为index.php的:处理方式 则是在 public/.htaccess插入这些代码:
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
# RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]
</IfModule>
配置好就可以在网页上运行:localhost:200,页面出现则大功告成:
若页面出现一些不知道的错误,则可以在config.php 文件下 找到debug,打开它 ,就会提示你是哪里出错了