Papa Kuhikuhi ʻatikala
Ka nānā ʻana i ka monitʻŌnaehanaʻAʻole i hoʻomaka ka nānā ʻana i ka hoʻomaka ʻana.
Hoʻomaka ʻo Monit i ke kaʻina hana nānā a nalowale, e koi ana i ka monit.service faialakaʻi ʻia.
ICWP Control Panel (CWP7) e hoʻokomo i ka nānā ʻana iā MonitMa hope o ka hoʻokomo ʻia ʻana o ka polokalamu, nalowale ke kaʻina hana o ka hoʻomaka ʻana o Monit, a ʻike ʻia kahi wikiwiki: ua hāʻule ka monit.service.
Pono e hoʻomaopopo ʻia ua hoʻāʻo ʻia e hiki aisystemctl enable monit
[root@stage-web-1 vagrant]# systemctl status monit
monit.service - Pro-active monitoring utility for unix systems
Loaded: loaded (/usr/lib/systemd/system/monit.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2017-06-01 16:37:00 UTC; 6min ago
Process: 1131 ExecStop=/usr/bin/monit quit (code=exited, status=1/FAILURE)
Process: 1079 ExecStart=/usr/bin/monit -I (code=exited, status=1/FAILURE)
Main PID: 1079 (code=exited, status=1/FAILURE)
Jun 01 16:37:00 stage-web-1 systemd[1]: Started Pro-active monitoring utility for unix systems.
Jun 01 16:37:00 stage-web-1 systemd[1]: Starting Pro-active monitoring utility for unix systems...
Jun 01 16:37:00 stage-web-1 monit[1079]: Error opening the log file '/var/www/html/nfs/monit/stage-web-1.log' for writing -- No such file or directory
Jun 01 16:37:00 stage-web-1 systemd[1]: monit.service: main process exited, code=exited, status=1/FAILURE
Jun 01 16:37:00 stage-web-1 monit[1131]: Error opening the log file '/var/www/html/nfs/monit/stage-web-1.log' for writing -- No such file or directory
Jun 01 16:37:00 stage-web-1 systemd[1]: monit.service: control process exited, code=exited status=1
Jun 01 16:37:00 stage-web-1 systemd[1]: Unit monit.service entered failed state.
Jun 01 16:37:00 stage-web-1 systemd[1]: monit.service failed.
Hōʻike nā ʻoiaʻiʻo/var/www/html/nfs
he waihona i kau ʻia i kahi kaʻa pūnaewele ma o NFS.
Ua hoʻomaka ʻia ʻo Monit ma mua o ka NFS, no laila ʻaʻole i loaʻa ka waihona, ke kumu o ka hewa monitError opening the log file '/var/www/html/nfs/monit/stage-web-1.log' for writing -- No such file or directory
.
Pehea e hoʻoponopono ai i ka nalo ʻana o ke kaʻina hana hoʻomaka ʻana o Monit i ka monit.service i hāʻule.?
ʻO ka hoʻoponopono ka hoʻoponopono/lib/systemd/system/monit.service
:
[Unit] Description=Pro-active monitoring utility for unix systems After=network.target [Service] Type=simple ExecStart=/usr/bin/monit -I ExecStop=/usr/bin/monit quit ExecReload=/usr/bin/monit reload [Install] WantedBy=multi-user.target
a hoʻohuinfs.service
i kaAfter
Mahope.ʻO ka hopena hope e like me kēia:
[Unit]
Description=Pro-active monitoring utility for unix systems
After=network.target nfs.service
[Service]
Type=simple
ExecStart=/usr/bin/monit -I
ExecStop=/usr/bin/monit quit
ExecReload=/usr/bin/monit reload
[Install]
WantedBy=multi-user.target
Hiki i ka Monit monitor ke hoʻomaka maikaʻi i ka wā boot.
Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) kaʻana like "Hoʻoholo i ka Monit Startup Monitoring Process Disappearance monit.service failed.", he mea kōkua ia iā ʻoe.
Welina mai e kaʻana like i ka loulou o kēia ʻatikala:https://www.chenweiliang.com/cwl-1422.html
Welina mai i ke kahawai Telegram o ka moʻomanaʻo ʻo Chen Weiliang e kiʻi i nā mea hou loa!
📚 He waiwai nui kēia alakaʻi, 🌟He manawa kakaikahi kēia, mai poina! ⏰⌛💨
Kaʻana like a like inā makemake ʻoe!
ʻO kāu kaʻana like a me kou makemake ʻo kā mākou hoʻoikaika mau!