Auto Shutdown and Restart Apache HTTPD Service Daemon at Preset Time إيقاف السيارات وإعادة تشغيل اباتشي 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. واباتشي هو الأكثر شعبية بين النص المتشعب الخادم ان القوى والمواقع في جميع أنحاء العالم. 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. انه من المهم لضمان استمرار تشغيل والجهوزية لخدمة أباتشي أو الخفي على الخادم ، كما لو HTTPD الخدمة باستمرار ، وسوف يكون موقع الويب الخاص بك غير ممكن للزوار. 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 متروك ، مسؤول الملقم أيضا لديه خيار إعادة تشغيل الخدمة اباتشي دوريا.

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. إيقاف وإعادة تشغيل اباتشي بشكل دوري في الفترة الفاصلة محددة تساعد على كفالة اباتشي خدمة الإنترنت هي دائما في حالة تشغيل من الدرجة الأولى ، من دون تأثير من احتمال تسرب معلومات سرية الذاكرة والموارد القص من الاتصالات المستمرة. 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. لإيقاف وبدء الاباتشى تلقائيا ، يمكننا الاستفادة من crontab (أو المهام المجدولة أو جدولة المهام في ويندوز سيرفر) لجدولة المهمة في الوقت تفضل. Simply edit the cron jobs with a root or whell user, and add in the following line: ببساطة تحرير وظيفة كرون مع جذر أو مستخدم whell ، وتضاف في السطر التالي :

mhdmw /usr/local/apache/bin/apachectl restart mhdmw / البيرة / المحلية / اباتشى / بن / apachectl إعادة تشغيل

Replace m, h, d, m and w with value of your preference, where they represent the following meaning: استبدال م ، ح ، د ، م و ث مع قيمة المفضل لديك ، حيث أنها تمثل المعنى التالي :

m: min (0 – 59) م : دقيقة (0 -- 59)
h: hour (0 – 23) ح : ساعة (0 -- 23)
d: day of month (1 – 31) د : يوم من شهر (1 -- 31)
m: month (1 – 12) م : في الشهر (1 -- 12)
w: day of week (0 – 6) (Sunday=0) ث : يوم من الأسبوع (0 -- 6) (الاحد = 0)

For variables that you want to happen every time, set it as * (asterisk). للمتغيرات التي تريد أن يحدث في كل مرة ، وضبطها على النحو * (النجمة).

For example, to kill the Apache daemon and start it immediately at 1 AM every night, set the crontab line to: على سبيل المثال ، لقتل شيطان اباتشي والبدء فورا في 1 صباحا كل ليلة ، تعيين خط crontab ل:

0 1 * * * /usr/local/apache/bin/apachectl restart 0 1 * * * / البيرة / المحلية / اباتشى / بن / 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 / البيرة / المحلية / اباتشى / بن / apachectl إعادة تشغيل

You can input “man crontab” to learn more about cron jobs in Linux/Unix/FreeBSD/CentOS. يمكنك إدخال "رجل crontab" لمعرفة المزيد عن وظيفة كرون في لينوكس / يونيكس / فري / 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. إذا كان هذا هو الحال ، إجراء التغييرات اللازمة ، ثم اضغط على "السيطرة العاشر" ، اتبع ب "نعم" لحفظ الملف ، ومتابعة من قبل الصحافة لقبول أدخل اسم الملف الافتراضي. 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. علما بأن الطريق إلى apachectl قد تكون مختلفة عن البديل مختلفة من يونيكس ، لينكس أو بي إس دي النكهات. Use one of the following command to find out where is Apache installed: استخدم أحد الأوامر التالية لمعرفة أين هو اباتشي مثبت :

find / apachectl | grep apachectl العثور على / apachectl | 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. بعض أباتشي قد تثبيت في / البيرة / sbin / apachectl ، أو يمكنك استخدام الروابط httpd أو apachectl رمزية في / الخ / rc.d / init.d / apachectl أو / الخ / rc.d / init.d / httpd.

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> يمكنك استخدام هذه العلامات : <ahref=""title=""> <abbrtitle=""> <acronymtitle=""> <b><blockquote<cite><code><دل التاريخ والوقت = "">> <i><qcite=""><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 كرون استئناف اباتشي - -- shutdown apache linux اغلاق اباتشي لينكس - -- apache daemon شيطان اباتشي - -- apache auto restart إعادة تشغيل السيارات اباتشي - -- centos autostart service centos خدمة تسغيل - -- apache auto start اباتشي تبدأ السيارات - -- cron job restart apache إعادة تشغيل وظيفة كرون اباتشي - -- centos auto start httpd centos السيارات بدء httpd - -- apache restart interval اباتشي إعادة الفاصل - -- linux apache shutdown لينكس اباتشي الاغلاق - -- crontab restart service crontab إعادة تشغيل الخدمة - -- crontab service restart إعادة تشغيل خدمة crontab - -- restart apache centos إعادة تشغيل centos اباتشي - -- restart httpd إعادة تشغيل httpd - -- apache shutdown linux اباتشي الاغلاق لينكس - -- crontab restart apache crontab استئناف اباتشي - -- find apachectl العثور على apachectl - -- freebsd restart apache فري استئناف اباتشي - -- centos shutdown apache centos اغلاق اباتشي - -- start apache httpd بدء httpd اباتشي - -- restart apache services إعادة تشغيل الخدمات اباتشي - -- cron job to restart apache وظيفة كرون لاستئناف اباتشي - -- cron httpd restart كرون httpd إعادة تشغيل - -- service apache restart اباتشي إعادة تشغيل الخدمة - -- how to restart apache service كيفية إعادة تشغيل خدمة اباتشي - -- linux restart apache service إعادة تشغيل لينكس خدمة اباتشي - -- shutdown httpd اغلاق httpd - -- cron restart service كرون إعادة تشغيل الخدمة - -- restart apache crontab إعادة تشغيل crontab اباتشي - -- centos reboot apache centos اباتشي تمهيد - -- how to shutdown apache كيفية اغلاق اباتشي - -- how to shutdown apache in linux كيفية اغلاق اباتشي في لينكس - -- apache daemon example اباتشي شيطان سبيل المثال - -- linux shutdown apache لينكس اباتشي الاغلاق - -- cron apache restart إعادة تشغيل اباتشي كرون - -- crontab apache restart إعادة تشغيل اباتشي crontab - -- how to shut down apache linux كيفية اغلاق اباتشي لينكس - -- centos autostart services centos الخدمات تسغيل - -- restart apache cron إعادة تشغيل كرون اباتشي - -- restart apache via cron إعادة تشغيل اباتشي عبر كرون - -- restart httpd in freebsd إعادة تشغيل httpd في فري - -- apache restart service اباتشي إعادة تشغيل الخدمة - -- freebsd apache autostart فري اباتشي تسغيل - -- centos autostart httpd centos تسغيل httpd - -- centos restart apache centos استئناف اباتشي - -- httpd shutdown اغلاق httpd - --