将端口80添加到ports.conf时出现apache2错误:apache2.service因控制进程失败

时间:2018-04-04 19:02:35

标签: apache2

我想让我自己的云安装监听端口80.现在它监听端口81.所以在apache2 / ports.conf中,我添加了

听80

当我想重启apache 2时,它给了我: apache2.service的作业失败,因为控制进程退出并显示错误代码。

当我试图找出哪个进程可能使用该端口时,键入: lsof -i:80 我一无所获。所以没有任何进程似乎听那个端口。

可能出了什么问题?

我的整个配置:

Listen 81

<IfModule ssl_module>
        Listen 443
</IfModule>

<IfModule mod_gnutls.c>
        Listen 443
</IfModule>

Listen 82

 # vim: syntax=apache ts=4 sw=4 sts=4 sr noet

netstat -a | grep LISTEN给了我

tcp        0      0 0.0.0.0:nntps           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:ssh             0.0.0.0:*               LISTEN 
tcp        0      0 0.0.0.0:nntp            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:504             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:smtp            0.0.0.0:*               LISTEN    
tcp        0      0 0.0.0.0:microsoft-ds    0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:imaps           0.0.0.0:*               LISTEN    
tcp        0      0 0.0.0.0:pop3s           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:2020            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:xmpp-client     0.0.0.0:*               LISTEN
tcp        0      0 localhost:mysql         0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:submission      0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:netbios-ssn     0.0.0.0:*               LISTEN
tcp        0      0 localhost:11211         0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:pop3            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:imap2           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:http            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:urd             0.0.0.0:*               LISTEN
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN
tcp6       0      0 ip6-localhost:3350      [::]:*                  LISTEN
tcp6       0      0 [::]:3389               [::]:*                  LISTEN
tcp6       0      0 [::]:microsoft-ds       [::]:*                  LISTEN
tcp6       0      0 [::]:netbios-ssn        [::]:*                  LISTEN
tcp6       0      0 [::]:81                 [::]:*                  LISTEN
tcp6       0      0 [::]:82                 [::]:*                  LISTEN

/var/log/apache2/error.log说

[Wed Apr 04 20:26:55.673090 2018] [mpm_prefork:notice] [pid 1082] AH00163: Apache/2.4.25 (Raspbian) configured -- resuming normal o$
[Wed Apr 04 20:26:55.673314 2018] [core:notice] [pid 1082] AH00094: Command line: '/usr/sbin/apache2'
[Wed Apr 04 20:27:44.980083 2018] [mpm_prefork:notice] [pid 1082] AH00169: caught SIGTERM, shutting down
[Wed Apr 04 20:28:04.370959 2018] [mpm_prefork:notice] [pid 1162] AH00163: Apache/2.4.25 (Raspbian) configured -- resuming normal o$
[Wed Apr 04 20:28:04.371181 2018] [core:notice] [pid 1162] AH00094: Command line: '/usr/sbin/apache2'
[Wed Apr 04 20:31:12.299314 2018] [mpm_prefork:notice] [pid 1162] AH00169: caught SIGTERM, shutting down
[Wed Apr 04 20:31:12.703337 2018] [mpm_prefork:notice] [pid 1226] AH00163: Apache/2.4.25 (Raspbian) configured -- resuming normal o$
[Wed Apr 04 20:31:12.703553 2018] [core:notice] [pid 1226] AH00094: Command line: '/usr/sbin/apache2'
[Wed Apr 04 20:31:31.775335 2018] [core:notice] [pid 1226] AH00052: child pid 1230 exit signal Segmentation fault (11)
[Wed Apr 04 20:31:32.789760 2018] [mpm_prefork:notice] [pid 1226] AH00169: caught SIGTERM, shutting down
[Wed Apr 04 20:34:07.337845 2018] [mpm_prefork:notice] [pid 1334] AH00163: Apache/2.4.25 (Raspbian) configured -- resuming normal o$
[Wed Apr 04 20:34:07.338077 2018] [core:notice] [pid 1334] AH00094: Command line: '/usr/sbin/apache2'
[Wed Apr 04 20:37:03.819967 2018] [mpm_prefork:notice] [pid 1334] AH00169: caught SIGTERM, shutting down
[Wed Apr 04 20:37:30.130293 2018] [mpm_prefork:notice] [pid 1439] AH00163: Apache/2.4.25 (Raspbian) configured -- resuming normal o$
[Wed Apr 04 20:37:30.130520 2018] [core:notice] [pid 1439] AH00094: Command line: '/usr/sbin/apache2'
[Wed Apr 04 20:51:34.940551 2018] [mpm_prefork:notice] [pid 1439] AH00169: caught SIGTERM, shutting down

0 个答案:

没有答案