首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Apache2失败“开始”

Apache2失败“开始”
EN

Ask Ubuntu用户
提问于 2016-02-06 21:01:08
回答 1查看 707关注 0票数 0

大家好,我希望你们帮助我。我的问题是apache 2没有运行,尽管我编写了命令service apache2 start/etc/init.d/apache2 restart

当我进入本地主机时,我看到了这个

他在终点站给了我这个:

代码语言:javascript
复制
 * Restarting web server apache2                                                AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 0.0.0.1. Set the 'ServerName' directive globally to suppress this message
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
                                                                         [fail]
 * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems
EN

回答 1

Ask Ubuntu用户

发布于 2016-02-06 21:18:01

端口80已经被lighttpd服务器使用。(netstat -an \ grep :80)

停止照明:

代码语言:javascript
复制
/etc/init.d/lighttpd stop

代码语言:javascript
复制
service lighttpd stop

查看lighttpd进程是否正在运行:

代码语言:javascript
复制
ps -ef |grep "lighttpd"

如果是,请手动杀人

代码语言:javascript
复制
kill -9 Process_ID

start apache2

代码语言:javascript
复制
/etc/init.d/apache2 start

代码语言:javascript
复制
service apache2 start
票数 3
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/730576

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档