在LinuxTrên máy chủ, giữ cho dịch vụ hoạt động ổn định, cho trang webSEORất quan trọng.
Bảng điều khiển CWPSẽ giúp bạn thông qua các công cụ giám sát dịch vụ.
Làm cách nào để bật ServicesMonitor (systemd) trong bảng điều khiển CWP?
Để kích hoạt giám sát dịch vụ trong CWP:
- kết nối với của bạnCWP安装
- Tìm thấyCấu hình dịch vụ-> ServicesMonitor( systemd )选项
- Chọn / Nhập:
Cho phép vô hiệu hóa- Điều này sẽ bật / tắt giám sát dịch vụ.
Emaitôi thông báoGửi tới - Nhập địa chỉ email mà bạn sẽ nhận được thông báo.
Kiểm tra mọi- khoảng thời gian giữa các lần kiểm tra - Chọn dịch vụ bạn muốn theo dõi, ví dụ: mariadb.service ,osystem.service
- nhấp chuột提交cái nút.Bạn sẽ thấy một thông báo xác nhận:
Service Monitoring is not enabled Enabling monitoring in cron MAILTO=cwp1@ chenweilaing.com */15 * * * * root /usr/local/bin/svcMonitor-systemd Monitoring Enabled: Yes
Lưu ý:
- 如果trạng thái systemddịch vụ là
Unknown
,Giám sát sẽ không hoạt động đối với các dịch vụ. - Các dịch vụ được chọn để giám sát sẽ được lưu trong tệp
/usr/local/etc/services-monitor-systemd
Trung bình. - Giám sát công việc cron có thể được tìm thấy trong tệp
/etc/cron.d/svcMonitor-systemd
中xuất hiện.
Bạn cũng có thể vượt quachkconfigLệnh thêm / xóa dịch vụ theo cách thủ công:
chkconfig service_name on
chkconfig service_name off
Ví dụ: khi tất cả các dịch vụ có sẵn được bật, chúng tôi sẽ hiển thị các thông báo cron như:
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
Bảng điều khiển CWP Kích hoạt Video Hướng dẫn ServicesMonitor (systemd)
Sau đây là cách bảng điều khiển CWP trong bài viết này cho phép giám sát dịch vụ ServicesMonitor (systemd)YouTubeVideo hướng dẫn▼
Hy vọng Chen Weiliang Blog ( https://www.chenweiliang.com/ ) đã chia sẻ "Cách bật ServicesMonitor (systemd) trong bảng điều khiển CWP", hữu ích cho bạn.
Chào mừng bạn đến chia sẻ liên kết của bài viết này:https://www.chenweiliang.com/cwl-1414.html
Chào mừng bạn đến với kênh Telegram trên blog của Chen Weiliang để cập nhật những thông tin mới nhất!
📚 Hướng dẫn này chứa đựng giá trị to lớn, 🌟Đây là cơ hội hiếm có, đừng bỏ lỡ! ⏰⌛💨
Chia sẻ và thích nếu bạn thích!
Chia sẻ và thích của bạn là động lực không ngừng của chúng tôi!