apache服务器安装
1,下载apache-64
2,解压出来
3,运行cmd 找到D:\Installsoftware\apache\apache\httpd-2.2-x64\bin
运行httpd -k start
错误:
1,没有找到文件
更改D:\Installsoftware\apache\apache\httpd-2.2-x64\conf文件夹中的httpd.conf文件
ServerRoot "D:/Installsoftware/apache/apache/httpd-2.2-x64"
DocumentRoot "D:/Installsoftware/apache/apache/httpd-2.2-x64/htdocs"
俩参数指向自己的文件路径
2,启动之后,访问http://localhost:8080出现
You don't have permission to access / on this server.
更改D:\Installsoftware\apache\apache\httpd-2.2-x64\conf文件夹中的httpd.conf文件中
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
改成
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
3,启动时报
httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.2.116 for ServerName错误
在#ServerName www.example.com:80 添加 ServerName www.example.com:80