Monit સ્ટાર્ટઅપ મોનિટરિંગ પ્રક્રિયા અદ્રશ્ય monit.service નિષ્ફળ ઉકેલો.

મોનીટરીંગ软件સ્ટાર્ટઅપ પર દેખરેખ શરૂ કરવામાં નિષ્ફળ.

Monit સ્ટાર્ટઅપ મોનિટરિંગ પ્રક્રિયા અદ્રશ્ય monit.service નિષ્ફળ ઉકેલો.

Monit સ્ટાર્ટઅપ મોનિટરિંગ પ્રક્રિયા અદૃશ્ય થઈ જાય છે monit.service faiએલ.ઈ. ડી.

મોનિટ મોનિટરિંગ ઇન્સ્ટોલ કરવા માટે CWP કંટ્રોલ પેનલ (CWP7).સૉફ્ટવેર ઇન્સ્ટોલ થઈ ગયા પછી, મોનિટ સ્ટાર્ટઅપની મોનિટરિંગ પ્રક્રિયા અદૃશ્ય થઈ જાય છે, અને પ્રોમ્પ્ટ દેખાય છે: monit.service નિષ્ફળ.

નોંધનીય છે કે સક્ષમ કરવાનો પ્રયાસ કરવામાં આવ્યો છેsystemctl 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.

હકીકતો દર્શાવે છે કે તે/var/www/html/nfsNFS મારફતે નેટવર્ક ડ્રાઇવ પર માઉન્ટ થયેલ ફોલ્ડર છે.

મોનિટ NFS પહેલા શરૂ કરવામાં આવ્યું હતું, તેથી ફોલ્ડર હજી અસ્તિત્વમાં નથી, મોનિટ ભૂલનું કારણ છેError opening the log file '/var/www/html/nfs/monit/stage-web-1.log' for writing -- No such file or directory.

Monit સ્ટાર્ટઅપ મોનિટરિંગ પ્રક્રિયા monit.service ના અદ્રશ્ય થઈ જવાની નિષ્ફળતાને કેવી રીતે ઉકેલવી.?

ઉકેલ એ સંપાદિત કરવાનો છે/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

અને ઉમેરોnfs.service到该Afterપાછળ.અંતિમ પરિણામ આના જેવો દેખાય છે:

[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

Monit મોનિટર હવે બુટ સમયે સફળતાપૂર્વક શરૂ થઈ શકે છે.

હોપ ચેન વેઇલિયાંગ બ્લોગ ( https://www.chenweiliang.com/ ) એ "સોલ્વિંગ ધ મોનિટ સ્ટાર્ટઅપ મોનિટરિંગ પ્રોસેસ ડિસએપિયરન્સ monit.service ફેલ" શેર કર્યું, જે તમારા માટે મદદરૂપ છે.

આ લેખની લિંક શેર કરવા માટે આપનું સ્વાગત છે:https://www.chenweiliang.com/cwl-1422.html

નવીનતમ અપડેટ્સ મેળવવા માટે ચેન વેઇલિઆંગના બ્લોગની ટેલિગ્રામ ચેનલ પર આપનું સ્વાગત છે!

🔔 ચૅનલની ટોચની ડિરેક્ટરીમાં મૂલ્યવાન "ChatGPT કન્ટેન્ટ માર્કેટિંગ AI ટૂલ વપરાશ માર્ગદર્શિકા" મેળવનારા પ્રથમ બનો! 🌟
📚 આ માર્ગદર્શિકામાં ઘણું મૂલ્ય છે, 🌟આ એક દુર્લભ તક છે, તેને ચૂકશો નહીં! ⏰⌛💨
ગમે તો શેર કરો અને લાઈક કરો!
તમારી શેરિંગ અને લાઈક્સ એ અમારી સતત પ્રેરણા છે!

 

评论 评论

તમારું ઇમેઇલ સરનામું પ્રકાશિત કરવામાં આવશે નહીં. જરૂરી ક્ષેત્રો વપરાય છે * લેબલ

ટોચ પર સ્ક્રોલ કરો