在linuxसर्व्हरवर, वेबसाइटसाठी सेवा स्थिरपणे चालू ठेवाएसइओफार महत्वाचे.
CWP नियंत्रण पॅनेलसेवा निरीक्षण साधनांद्वारे तुम्हाला मदत करेल.
CWP कंट्रोल पॅनेलमध्ये ServicesMonitor (systemd) कसे सक्षम करावे?
CWP मध्ये सेवा देखरेख सक्षम करण्यासाठी:
- आपल्याशी कनेक्ट करासीडब्ल्यूपीस्थापित करा
- शोधणेसर्व्हिसेस कॉन्फिग->सर्व्हिसेस मॉनिटर( systemd )选项
- निवडा/प्रविष्ट करा:
सक्षम / अक्षम करा- हे सेवा निरीक्षण सक्षम/अक्षम करेल.
Email सूचनायाला पाठवा - तुम्हाला जेथे सूचना प्राप्त होतील तो ईमेल पत्ता प्रविष्ट करा.
प्रत्येक तपासा- चेक दरम्यान वेळ मध्यांतर - तुम्हाला देखरेख करायची असलेली सेवा निवडा, उदाहरणार्थ: 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
मध्ये - मॉनिटरिंग क्रॉन जॉब्स फाइलमध्ये आढळू शकतात
/etc/cron.d/svcMonitor-systemd
मध्यमवर वळणे
तुम्ही देखील पास होऊ शकताchkconfigसेवा व्यक्तिचलितपणे जोडण्यासाठी/काढण्यासाठी आदेश:
chkconfig service_name on
chkconfig service_name off
उदाहरणार्थ, जेव्हा सर्व उपलब्ध सेवा सक्षम केल्या जातात, तेव्हा आम्ही क्रॉन संदेश प्रदर्शित करू जसे की:
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 कंट्रोल पॅनल सक्षम सर्व्हिसेसमॉनिटर (सिस्टमडी) व्हिडिओ ट्यूटोरियल
या लेखात CWP नियंत्रण पॅनेल सर्व्हिस मॉनिटरिंग सर्व्हिसेसमॉनिटर (सिस्टमडी) कसे सक्षम करते ते खालीलप्रमाणे आहेYouTube वरव्हिडिओ ट्यूटोरियल▼
होप चेन वेइलांग ब्लॉग ( https://www.chenweiliang.com/ ) ने "CWP कंट्रोल पॅनेलमध्ये ServicesMonitor (systemd) कसे सक्षम करावे" सामायिक केले आहे, जे तुमच्यासाठी उपयुक्त आहे.
या लेखाची लिंक सामायिक करण्यासाठी आपले स्वागत आहे:https://www.chenweiliang.com/cwl-1414.html
नवीनतम अपडेट्स मिळवण्यासाठी चेन वेइलियांगच्या ब्लॉगच्या टेलिग्राम चॅनेलवर आपले स्वागत आहे!
📚 या मार्गदर्शकामध्ये प्रचंड मूल्य आहे, 🌟ही एक दुर्मिळ संधी आहे, ती चुकवू नका! ⏰⌛💨
आवडल्यास शेअर आणि लाईक करा!
तुमचे शेअरिंग आणि लाईक्स ही आमची सतत प्रेरणा आहे!