赞
踩
下载Xampp : https://www.apachefriends.org/download.html
下载完成后,双击安装,一路next,安装完成
点击Finish:
浏览器访问:http://localhost/dashboard/
出现页面,安装成功!
系统自带的根目录为/Applications/XAMPP/htdocs
我们希望自定义网站根目录文件夹,如下配置
1,应用程序/XAMPP-/xamppfiles/etc/httpd.conf
2 commond+f 搜索 htdocs
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"
<Directory "/Applications/XAMPP/xamppfiles/htdocs">
修改DocumentRoot和<Directory>中的路径为自定义目录文件夹即可
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。