当我键入命令时,/usr/local/apache/bin/apachectl 启动并转到 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!页?我有什么遗漏的吗?
最佳答案
原来我的 httpd 服务没有运行...... 我通过输入 systemctl status httpd 解决了这个问题 我得到的答复是它没有运行 所以我输入了 systemctl start httpd 然后我输入命令/usr/local/apache/bin/apachectl start 然后测试页面就出现了!
关于linux - Apache 测试页 : how do I get it to come up?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43786333/