gpt4 book ai didi

ubuntu - ubuntu 12.04 上的 Apache 重启错误

转载 作者:行者123 更新时间:2023-12-04 19:21:16 25 4
gpt4 key购买 nike

我正在尝试从 here 在 ubuntu 12.04 上安装 phpmyadmin

安装 apache2 后,我运行以下命令

sudo /etc/init.d/apache2 restart

我得到了以下错误,无论如何如何解决这个错误并在ubuntu上安装phpmyadmin
 * Restarting web server apache2                                                                                                                 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.

当我尝试 localhost/phpmyadmin从浏览器显示 Welcome to nginx!

最佳答案

您有一个 Nginx 网络服务器运行在可能与 Apache 尝试绑定(bind)的相同端口上。
我不知道谁在使用这个 Nginx 网络服务器,但你可以通过以下方式阻止它:

sudo service nginx stop

然后尝试再次启动 Apache。

查看谁在使用哪些端口:
sudo netstat -nptul

关于ubuntu - ubuntu 12.04 上的 Apache 重启错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18104045/

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