在Linux服務器上,保持服務穩定運行,對於網站SEO非常重要。
CWP控制面板將通過服務監控工具為你提供幫助。
CWP控制面板怎樣開啟ServicesMonitor (systemd)?
要在CWP中啟用服務監控:
- 連接到你的CWP安裝
- 尋找Services Config->ServicesMonitor( systemd )選項
- 選擇/輸入:
啟用/禁用——這將啟用/禁用服務監控。
Email notifications發送至——輸入你將在其中接收通知的電子郵件地址。
檢查每個——兩次檢查之間的時間間隔 - 選擇你要監控的服務,例如:mariadb.service、monit.service
- 單擊提交按鈕。你將看到一條確認消息:
Service Monitoring is not enabled Enabling monitoring in cron MAILTO=cwp1@ chenweilaing.com */15 * * * * root /usr/local/bin/svcMonitor-systemd Monitoring Enabled: Yes
注意事項:
- 如果systemd狀態服務是
Unknown
,監控不會為服務工作。 - 選定要監控的服務,將保存在文件
/usr/local/etc/services-monitor-systemd
中。 - 監控cron作業可以在文件
/etc/cron.d/svcMonitor-systemd
中找到。
你也可以通過配置文件命令,手動添加/刪除服務:
chkconfig service_name on
chkconfig service_name off
例如,當啟用所有可用服務時,我們將顯示cron消息,例如:
From: (Cron Daemon) <[email protected]> Subject: Cron <root@cwp1> /usr/local/bin/svcMonitor-systemd Restarted service amavisd.service on cwp1 at Sat Mar 31 01:00:01 EDT 2018 Job for amavisd.service failed because the control process exited with error code. See “systemctl status amavisd.service” and “journalctl -xe” for details. Restarted service arp-ethers.service on cwp1 at Sat Mar 31 01:00:03 EDT 2018 Restarted service [email protected] on cwp1 at Sat Mar 31 01:00:04 EDT 2018 Failed to stop [email protected]: Unit name [email protected] is missing the instance name. See system logs and ‘systemctl status [email protected]‘ for details. Failed to get load state of [email protected]: Unit name [email protected] is missing the instance name. Failed to start [email protected]: Unit name [email protected] is missing the instance name. See system logs and ‘systemctl status [email protected]‘ for details. Restarted service console-shell.service on cwp1 at Sat Mar 31 01:00:05 EDT 2018 Restarted service garb.service on cwp1 at Sat Mar 31 01:00:06 EDT 2018 Restarted service [email protected] on cwp1 at Sat Mar 31 01:00:07 EDT 2018 Failed to stop [email protected]: Unit name [email protected] is missing the instance name. See system logs and ‘systemctl status [email protected]‘ for details. Failed to get load state of [email protected]: Unit name [email protected] is missing the instance name. Failed to start [email protected]: Unit name [email protected] is missing the instance name. See system logs and ‘systemctl status [email protected]‘ for details. Restarted service ntalk.service on cwp1 at Sat Mar 31 01:00:09 EDT 2018 Job for ntalk.service failed because a configured resource limit was exceeded. See “systemctl status ntalk.service” and “journalctl -xe” for details. Restarted service rdisc.service on cwp1 at Sat Mar 31 01:00:10 EDT 2018 Job for rdisc.service failed because the control process exited with error code. See “systemctl status rdisc.service” and “journalctl -xe” for details. Restarted service [email protected] on cwp1 at Sat Mar 31 01:00:17 EDT 2018 Failed to stop [email protected]: Unit name [email protected] is missing the instance name. See system logs and ‘systemctl status [email protected]‘ for details. Failed to get load state of [email protected]: Unit name [email protected] is missing the instance name. Failed to start [email protected]: Unit name [email protected] is missing the instance name. See system logs and ‘systemctl status [email protected]‘ for details. Restarted service svnserve.service on cwp1 at Sat Mar 31 01:00:18 EDT 2018 Job for svnserve.service failed because the control process exited with error code. See “systemctl status svnserve.service” and “journalctl -xe” for details. Restarted service tcsd.service on cwp1 at Sat Mar 31 01:00:19 EDT 2018 Job for tcsd.service failed because the control process exited with error code. See “systemctl status tcsd.service” and “journalctl -xe” for details. Restarted service vzfifo.service on cwp1 at Sat Mar 31 01:00:20 EDT 2020
CWP控制面板啟用ServicesMonitor (systemd)視頻教程
以下是本文CWP控制面板如何啟用服務監控ServicesMonitor (systemd)的YouTube視頻教程▼
希望陳溈亮博客( https://www.chenweiliang.com/ ) 分享的《CWP控制面板如何啟用服務監控ServicesMonitor (systemd)》,對您有幫助。
歡迎分享本文鏈接:https://www.chenweiliang.com/cwl-1414.html
歡迎加入陳溈亮博客的Telegram 頻道,獲取最新更新!
🔔 率先在頻道置頂目錄獲取寶貴的《ChatGPT 內容行銷AI 工具使用指南》! 🌟
📚 這份指南蘊含價值巨大,🌟難逢的機遇,切勿錯失良機! ⏰⌛💨
喜歡就分享和按贊!
您的分享和按贊,是我們持續的動力!
📚 這份指南蘊含價值巨大,🌟難逢的機遇,切勿錯失良機! ⏰⌛💨
喜歡就分享和按贊!
您的分享和按贊,是我們持續的動力!
下一篇: 賣家如何開通淘寶客?加入條件是什麼?