gpt4 book ai didi

linux - apachectl start 找不到 httpd 但它在那里?

转载 作者:太空宇宙 更新时间:2023-11-04 09:51:23 27 4
gpt4 key购买 nike

Unix 和 Apache 世界的新手。

刚刚通过 X-Win32 SSH 在远程服务器上配置并安装了 Apache(据我所知是成功的)。

在 bin 目录中,我看到列出了“httpd”。

要启动 Web 服务器,我为服务器状态提供了说明:

From your installation Apache directory type, './bin/apachectl start'.

但是,我收到以下错误(11-14 只是显示它在那里):

server.edu(11): ls
bin cgi-bin conf htdocs icons include libexec logs man proxy
server.edu(12): cd bin
server.edu(13): ls
ab apxs dbmmanage htpasswd logresolve
apachectl checkgid htdigest httpd rotatelogs
server.edu(14): cd ..
server.edu(15): ./bin/apachectl start
./bin/apachectl: apache/bin/httpd: not found
./bin/apachectl start: httpd could not be started

非常感谢任何帮助。

谢谢!

编辑 @h4b0

server.edu(98): pwd
/home/scf-25/gmcnulty/apache_1.3.42/apache

server.edu(99): ls -l bin/httpd
-rwxr-xr-x 1 gmcnulty 28880 May 24 22:12 bin/httpd

EDIT2 @h4b0

server.edu(102): ls
ab apxs dbmmanage htpasswd logresolve
apachectl checkgid htdigest httpd rotatelogs

server.edu(103): cd ../..

server.edu(104): ls
ABOUT_APACHE NOTICE README cgi-bin htdocs
INSTALL NWGNUenvironment.inc README-WIN.TXT conf icons
LICENSE NWGNUhead.inc README.configure config.layout logs
Makefile NWGNUmakefile WARNING-WIN.TXT config.status src
Makefile.tmpl NWGNUtail.inc apache configure

server.edu(105): ./apache/bin/apachectl start
fopen: No such file or directory
httpd: could not open error log file apache/apache/logs/error_log.
./apache/bin/apachectl start: httpd could not be started

最佳答案

  • 检查 httpd 的权限
  • apache/bin/httpd 真的存在吗?在第 11 行显示目录的 pwd 输出

关于linux - apachectl start 找不到 httpd 但它在那里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10749304/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com