iT邦幫忙

1

apache 無預警關閉?caught SIGTERM, shutting down

  • 分享至 

  • twitterImage
[Wed Jun 19 06:26:39.142106 2019] [mpm_prefork:notice] [pid 29571] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 2400:8902::f03c:91ff:fec5:994e. Set the 'ServerName' directive globally to suppress this message
[Wed Jun 19 06:26:39.660571 2019] [mpm_prefork:notice] [pid 29571] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1a configured -- resuming normal operations
[Wed Jun 19 06:26:39.660595 2019] [core:notice] [pid 29571] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jun 19 06:26:40.211092 2019] [mpm_prefork:notice] [pid 29571] AH00169: caught SIGTERM, shutting down
[Wed Jun 19 08:01:19.573647 2019] [mpm_prefork:notice] [pid 799] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1a configured -- resuming normal operations
[Wed Jun 19 08:01:19.603284 2019] [core:notice] [pid 799] AH00094: Command line: '/usr/sbin/apache2'

為什麼我的 apache 會無預警關閉呢
ubuntu 18.04
php 7.3
主機使用 linode
我 reboot linode 就好了
只是 caught SIGTERM, shutting down 這是怎麼了嗎?
我安裝好 apache 只有啟用 rewrite 其他設置都是預設的

fillano iT邦超人 1 級 ‧ 2019-06-20 20:05:59 檢舉
1. 管理行程時,送SIGTERM把他關掉,應該很常見吧XD
2. mpm_prefork是worker行程,實際上負責處理請求。他的設定就是一開始有幾個、最多有幾個在跑等等。沒有使用的worker,收到SIGTERM然後關掉,是正常不過的事情
fillano iT邦超人 1 級 ‧ 2019-06-20 20:06:46 檢舉
如果只是在log看到,實際上並沒有發生服務障礙等,那可以不用管他。
火爆浪子 iT邦研究生 1 級 ‧ 2019-06-21 00:47:50 檢舉
fillano :有出現問題,當關掉之後我的 apache 就停了,我重開 linode 後才正常?
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

1
dragonH
iT邦超人 5 級 ‧ 2019-06-19 16:24:53
最佳解答

我是覺得重點不在那裏

重點應該是在

Graceful restart requested, doing restart

你說的那行直白的翻大概就是收到 SIGTERM 訊號

所以要關閉

至於為什麼會這樣

google到的給你參考

幾乎都說跟log轉換有關

參考

火爆浪子 iT邦研究生 1 級 ‧ 2019-06-19 17:08:27 檢舉

真詭異,這沒辦法解決嗎

dragonH iT邦超人 5 級 ‧ 2019-06-19 17:16:58 檢舉

看起來他是說 restart 不是 shutdown

所以你的 Server 沒有 restart 嗎

是的話

這篇可以參考

不明
【**此則訊息已被站方移除**】

我要發表回答

立即登入回答