apache安装过程记录
apache和iis都是网站服务端 但是apache比iis好太多
但是apache的安装并非下载安装包解压这么简单
1 将conf文件夹下的httpd.conf文件进行修改。
打开httpd.conf后,搜索Define SRVROOT(只有一处),将其后面的双引号里面的路径改为Apache的实际解压路径后保存即可
之后 要进入cmd命令行模式
2在cmd模式下 进入apache的文件目录安装
h:
h:\>cd H:\apache\httpd-2.4.46-o111j-x64-vc15\Apache24\bin 这是进入了bin文件夹
h:\>cd H:\apache\httpd-2.4.46-o111j-x64-vc15\Apache24\bin httpd -k install 这是安装
3在cmd模式下 运行服务器
h:\>cd H:\apache\httpd-2.4.46-o111j-x64-vc15\Apache24\bin net start Apache2.4 这是运行
4在浏览器上检验
浏览器输入:http://localhost/
This page is used to test the proper operation of the Apache HTTP server after it has been
installed. If you can read this page, it means that the web server installed at this site is
working properly, but has not yet been configured.
该页面用于在
安装Apache HTTP服务器后测试其是否正常运行。如果您可以阅读此页面,则表示此站点上安装的Web服务器可以
正常工作,但尚未配置。(这是正常的 说明运行成功了)
5在ApacheMonitor上检验
在bin中 打开ApacheMonitor.exe (会运行在屏幕右下角,双击显现)
小绿灯说明正常运行