当我输入命令时,/ usr / local / apache / bin / apachectl start并转到http://localhost/,我得到一个" It Works!"页。我安装了Apache 2.4.25。我没有安装Apache Tomcat。我试图让Apache测试页面出现。 当我转到/ usr / local / apache / htdocs并使用vi编辑器查看index.html文件时,它显示localhost页面被定向到It Works!页。
要在我的Fedora VM上安装Apache,我使用了命令./configure --enable-mods-shared = all --prefix = / usr / local / apache --with-pcre = / usr / local / pcre。然后我使用make clean命令,然后是make命令,然后是make install命令。
如何让Apache测试页面出现在It Works的INSTEAD中!页?我有什么遗失的吗?
答案 0 :(得分:1)
原来我的httpd服务没有运行.... 我通过输入systemctl status httpd来解决这个问题 我得到了它没有运行的响应 所以我输入了systemctl start httpd 然后我输入命令/ usr / local / apache / bin / apachectl start 然后测试页出现了!