我停止nginx,删除它,重新启动,安装Apache2并重新安装php5-fpm。
现在,当我尝试启动Apache时,出现此错误:
(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.
当我运行网络统计时,我看到这个:
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1613/nginx
tcp6 0 0 :::8080 :::* LISTEN 1850/java
tcp6 0 0 :::80 :::* LISTEN 1613/nginx
tcp6 0 0 127.0.0.1:8005 :::* LISTEN 1850/java
在我删除Nginx之后,我也进行了清除。
有人可以告诉我如何去除这些剩余的残余物,以便我可以开始 阿帕奇2?另外 - 我无法弄清楚是什么为我的网页服务......哈哈..但是网站已经启动了。
感谢您的任何帮助! 三
php5-fpm
仅在运行nginx时才有意义。如果要改为运行 apache,请停止并删除php5-fpm
。另外,请确保 php 是--with-apache
编译的,而不是--with-fpm
的。使用 php 运行 apache 时,还要确保libphp5.so
模块加载在httpd.conf
中。