Auto Shutdown and Restart Apache HTTPD Service Daemon at Preset Time ऑटो Shutdown और Restart अपाचे HTTPD सेवा डेमन प्रीसेट समय पर

The core component of any websites, blogs, web services and web applications is the web server. किसी भी वेबसाइट, ब्लॉग, वेब सेवाओं और वेब अनुप्रयोगों के मुख्य घटक वेब सर्वर है. And Apache is the most popular HTTP server that powers the websites worldwide. और Apache HTTP सर्वर के सबसे लोकप्रिय है कि शक्तियों वेबसाइट दुनिया भर में है. It's important to ensure that the uptime and continuous running of Apache service or daemon on the server, as if HTTPD service is down, your website will be unaccessible to the visitors. यह सुनिश्चित करने के लिए जरूरी है कि uptime और Apache सर्वर पर सेवा या डेमॉन के चल रहे सतत, अपनी वेबसाइट के रूप में हो अगर HTTPD सेवा के नीचे है आगंतुकों को unaccessible होगा. Other than using monitoring service, script or utility to check if the HTTPD daemon is up, server administrator also has a choice to restart the Apache service periodically. निगरानी सेवा, लिपि या उपयोगिता का उपयोग करने अगर HTTPD डेमॉन ऊपर है की जांच करने के अलावा, सर्वर प्रशासक भी एक विकल्प के लिए Apache सेवा को पुनः आरंभ समय समय पर किया है.

Shutdown and restart Apache periodically at specific interval helps to ensure that Apache web service is always running in top notch condition, without effect of possible memory leak and resource hogging by persistent connections. बंद और अपाचे विशिष्ट अंतराल पर समय समय पर पुनः आरंभ करने के लिए कि Apache वेब सेवा सुनिश्चित करने में मदद करता है हमेशा शीर्ष पायदान हालत में चल रहा है, संभव स्मृति रिसाव और लगातार कनेक्शन द्वारा hogging संसाधन के प्रभाव के बिना. It also ensure that the web sites downtime is limited to the next restart schedule, just in case it's so unlucky that Apache hangs indefinitely and your monitoring service can't pick up the incident. यह भी सुनिश्चित करना है कि वेब साइटों स्र्कना को अगले कार्यक्रम पुनरारम्भ करने के मामले में सिर्फ इतना बदकिस्मत है कि अपाचे और अनिश्चित काल तक अपनी निगरानी सेवा कर लेने की घटना नहीं हो सकता लटक रहा है सीमित है.

To shutdown and start Apache automatically, we can make use of crontab (or Scheduled Task or Task Scheduler in Windows Server) to schedule the task at the time prefer. बंद करने के लिए और अपाचे स्वतः शुरू, हम Windows सर्वर में crontab का प्रयोग कर (या अनुसूचित टास्क या टास्क समयबद्धक कर सकते हैं) को पसंद करते समय पर काम अनुसूची. Simply edit the cron jobs with a root or whell user, and add in the following line: बस एक जड़ या whell उपयोगकर्ता के साथ cron नौकरी संपादित करें, और निम्न पंक्ति में जोड़ें:

mhdmw /usr/local/apache/bin/apachectl restart mhdmw / स्थानीय usr / / Apache / bin / apachectl पुनः आरंभ

Replace m, h, d, m and w with value of your preference, where they represent the following meaning: मी, ज, बदलें घ, मी और अपनी पसंद के मूल्य के साथ w वे निम्नलिखित अर्थ जहां प्रतिनिधित्व:

m: min (0 – 59) मी: (0-59 मिनट)
h: hour (0 – 23) ज: घंटे (0-23)
d: day of month (1 – 31) D: (1-31 महीने के दिन)
m: month (1 – 12) मी: महीने (1 - 12)
w: day of week (0 – 6) (Sunday=0) w: (0-6) सप्ताह के दिन (रविवार = 0)

For variables that you want to happen every time, set it as * (asterisk). चर के लिए है कि आप हर बार होगा चाहते हैं, तो * के रूप में सेट (asterisk).

For example, to kill the Apache daemon and start it immediately at 1 AM every night, set the crontab line to: उदाहरण के लिए, Apache डीमन को मारने के लिए और 1 पर तुरंत शुरू हर रात हूँ, को crontab लाइन सेट करें:

0 1 * * * /usr/local/apache/bin/apachectl restart 0 * 1 * * / usr / local / Apache / bin / apachectl पुनः आरंभ

To restart Apache HTTPD service on weekend, such as Sunday 12 noon, use the following cron job: को सप्ताहांत पर अपाचे HTTPD सेवा के रूप में ऐसे रविवार, 12 दोपहर को पुनः आरंभ करने के लिए, निम्न क्रॉन जॉब का उपयोग करें:

0 12 * * 0 /usr/local/apache/bin/apachectl restart 0 * 12 * 0 / usr / local / Apache / bin / apachectl पुनः आरंभ

You can input “man crontab” to learn more about cron jobs in Linux/Unix/FreeBSD/CentOS. तुम इनपुट "आदमी" crontab कर सकते हैं लिनक्स में cron रोजगार / यूनिक्स / FreeBSD / CentOS के बारे में अधिक जानें. To edit the crontab job list, simply enter “crontab -e” on the shell. को crontab नौकरी की सूची को संपादित करने के लिए, बस में प्रवेश "crontab 'कवच पर ए. Existing crontab will appear on a text editor, such as GNU nano. मौजूदा crontab ऐसे ग्नू नैनो के रूप में एक पाठ संपादक, पर दिखाई देंगे. If this is the case, make the necessary changes, then press “Ctrl-X”, follow by “Y” to save the file, and follow by Enter press to accept the default file name. यदि यह मामला है, आवश्यक परिवर्तन करें, तो प्रेस "Ctrl-X", द्वारा अनुसरण "Y" फ़ाइल को बचाने के लिए, और ने प्रेस दर्ज करें पालन के लिए डिफ़ॉल्ट फ़ाइल नाम स्वीकार करते हैं. The new crontab will be installed and in effect immediately. नई crontab और स्थापित हो जाएगा प्रभाव में तुरंत.

Note that the path to apachectl may be different on different variant of Unix, Linux or BSD flavors. ध्यान दें कि मार्ग Unix, Linux या बीएसडी जायके के विभिन्न संस्करण पर अलग अलग हो सकता apachectl है. Use one of the following command to find out where is Apache installed: स्थापित निम्न कमांड का प्रयोग एक पता लगाने के लिए जहां अपाचे है:

find / apachectl | grep apachectl खोज / apachectl | grep apachectl
whereis apachectl whereis apachectl

Some Apache may install in /usr/sbin/apachectl, or you can use the httpd or apachectl symbolic links in /etc/rc.d/init.d/apachectl or /etc/rc.d/init.d/httpd. कुछ Apache / usr / sbin apachectl /, या आप / etc में httpd या apachectl प्रतीकात्मक लिंक का उपयोग कर सकते में स्थापित / rc.d / init.d / apachectl या / etc / rc.d / / httpd init.d / हो सकता है.

IMPORTANT : The page is machine translated and provided "as is" without warranty. महत्वपूर्ण: पृष्ठ की मशीन है और अनुवाद प्रदान "के रूप में वारंटी के बिना है." Machine translation may be difficult to understand. मशीन अनुवाद मुश्किल से समझ सकते हो. Please refer to कृपया उल्लेख करने original English article मूल अंग्रेजी लेख whenever possible. जब भी संभव है.


Leave a Reply एक उत्तर दें छोड़ दो

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> आप इन टैग्स: <a href="" उपयोग title=""> <abbr title=""> <acronym कर सकते हैं <blockquote title=""> <b> cite=""> <cite> <code> <डेल DateTime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. टिप्पणी की सुविधा है विकलांग गया है की सदस्यता लें. To receive notification of latest comments posted, subscribe to सदस्यता के लिए नई टिप्पणियों की सूचना प्राप्त पोस्ट किया है, My Digital Life Comments RSS feed मेरे डिजिटल जीवन टिप्पणियाँ आरएसएस फ़ीड or या register to receive रजिस्टर प्राप्त करने के लिए new comments in daily email digest. दैनिक ईमेल में नई टिप्पणियाँ डाइजेस्ट.
Custom Search

New Articles नए लेख

Incoming Search Terms for the Article के लिए खोजें शर्तें आने अनुच्छेद

shutdown apache बंद एपाचे - -- apache shutdown एपाचे बंद - -- restart apache service एपाचे सेवा को पुनः आरंभ - -- centos apache restart centos एपाचे पुनः आरंभ - -- cron restart apache cron एपाचे पुनः आरंभ - -- shutdown apache linux बंद Apache Linux - -- apache daemon Apache डीमन - -- apache auto restart एपाचे ऑटो पुनः आरंभ - -- centos autostart service centos autostart सेवा - -- apache auto start एपाचे ऑटो शुरू - -- cron job restart apache क्रॉन जॉब एपाचे पुनः आरंभ - -- centos auto start httpd centos ऑटो httpd शुरू - -- apache restart interval एपाचे अंतराल पुनः आरंभ - -- linux apache shutdown एपाचे बंद Linux - -- crontab restart service crontab सेवा को पुनः आरंभ - -- crontab service restart crontab सेवा को पुनः आरंभ - -- restart apache centos एपाचे centos पुनः आरंभ - -- restart httpd पुनः आरंभ httpd - -- apache shutdown linux एपाचे बंद Linux - -- crontab restart apache crontab एपाचे पुनः आरंभ - -- find apachectl खोज apachectl - -- freebsd restart apache freebsd एपाचे पुनः आरंभ - -- centos shutdown apache centos बंद एपाचे - -- start apache httpd शुरू Apache httpd - -- restart apache services एपाचे सेवाओं को पुनः आरंभ - -- cron job to restart apache क्रॉन जॉब एपाचे पुनः आरंभ करें - -- cron httpd restart cron httpd पुनः आरंभ - -- service apache restart सेवा एपाचे पुनः आरंभ - -- how to restart apache service कैसे एपाचे सेवा को पुनः आरंभ करने के लिए - -- linux restart apache service Linux Apache सेवा को पुनः आरंभ - -- shutdown httpd बंद httpd - -- cron restart service cron सेवा को पुनः आरंभ - -- restart apache crontab एपाचे crontab पुनः आरंभ - -- centos reboot apache centos रिबूट एपाचे - -- how to shutdown apache बंद एपाचे कैसे - -- how to shutdown apache in linux लिनक्स में बंद एपाचे कैसे - -- apache daemon example Apache डीमन उदाहरण - -- linux shutdown apache लिनक्स बंद एपाचे - -- cron apache restart cron एपाचे पुनः आरंभ - -- crontab apache restart crontab एपाचे पुनः आरंभ - -- how to shut down apache linux कैसे बंद को Apache Linux - -- centos autostart services centos autostart सेवाएं - -- restart apache cron एपाचे cron पुनः आरंभ - -- restart apache via cron cron के द्वारा एपाचे पुनः आरंभ - -- restart httpd in freebsd freebsd में httpd पुनः आरंभ - -- apache restart service एपाचे सेवा को पुनः आरंभ - -- freebsd apache autostart freebsd एपाचे autostart - -- centos autostart httpd centos httpd autostart - -- centos restart apache centos एपाचे पुनः आरंभ - -- httpd shutdown httpd बंद - --