apachectl启动找不到httpd,但它在那里?

只需通过X-Win32 SSH在远程服务器上configuration并安装Apache(据我所知,成功)。

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

要启动Web服务器我提供的服务器状态说明:

从您的安装Apache目录中input'./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 

任何帮助是极大的赞赏。

谢谢!

根据您的发行版,还有其他命令可以尝试:

 service httpd restart service apache2 restart 

你使用什么发行版?

正如我所看到的,您已经手动安装了apache,并且在某处进行了错误configuration,因为apachectl会尝试启动不存在的apache / bin / httpd。

我假设你已经在apache目录下,如果httpd在bin目录下,你将可以通过../apache/bin/httpd运行httpd。