解決centos重啟關機異常慢相關問題

來源:互聯網
上載者:User

解決centos重啟關機異常慢相關問題

上周六淩晨協助一客戶進行伺服器資料庫升級。
資料庫升級完成後,為了檢驗伺服器重啟後資料庫能否正常啟動並主從同步,故對系統進行了reboot操作。
沒想到reboot後,伺服器一直都能PING通,但SSH卻登入不過去,且各類服務連接埠也無法串連。
焦急中等待了十多分鐘,伺服器正常啟動了,業務恢複正常。

事後查閱伺服器日誌(/var/log/messages)發現關機時出現異常慢:
Aug 4 02:14:19 localhost init: tty (/dev/tty1) main process (2380) killed by TERM signal
Aug 4 02:14:19 localhost init: tty (/dev/tty2) main process (2383) killed by TERM signal
Aug 4 02:14:19 localhost init: tty (/dev/tty3) main process (2385) killed by TERM signal
Aug 4 02:14:19 localhost init: tty (/dev/tty4) main process (2387) killed by TERM signal
Aug 4 02:14:19 localhost init: tty (/dev/tty5) main process (2389) killed by TERM signal
Aug 4 02:14:19 localhost init: tty (/dev/tty6) main process (2391) killed by TERM signal
Aug 4 02:14:19 localhost avahi-daemon[1363]: Got SIGTERM, quitting.
Aug 4 02:14:19 localhost avahi-daemon[1363]: Leaving mDNS multicast group on interface eth0.IPv4 with address 172.31.251.67.
Aug 4 02:14:20 localhost abrtd: Got signal 15, exiting
Aug 4 02:27:00 localhost acpid: exiting
Aug 4 02:27:01 localhost init: Disconnected from system bus
Aug 4 02:27:01 localhost rpcbind: rpcbind terminating on signal. Restart with "rpcbind -w"
Aug 4 02:27:01 localhost auditd[1210]: The audit daemon is exiting.
Aug 4 02:27:01 localhost kernel: type=1305 audit(1375554421.205:1706): audit_pid=0 old=1210 auid=4294967295 ses=4294967295 res=1
Aug 4 02:27:01 localhost kernel: type=1305 audit(1375554421.309:1707): audit_enabled=0 old=1 auid=4294967295 ses=4294967295 res=1
Aug 4 02:27:01 localhost kernel: Kernel logging (proc) stopped.
Aug 4 02:27:01 localhost rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="1235" x-info="http://www.rsyslog.com"] exiting on signal 15.

解決方案(還有待時間驗證):
嘗試關閉acpid服務:

# chkconfig acpid off

引用百度百科中acpid詞條:
Advanced Configuration and PowerInterface,為替代傳統的APM電源管理標準而推出的新型電源管理標準。建議所有的筆記本使用者開啟它。一些伺服器可能不需要acpi。支援的通用操作有:“電源開關“,”電池監視“,”筆記本 Lid 開關“,“筆記本顯示屏亮度“,“休眠”, “掛機”,等等。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.