Auto Shutdown and Restart Apache HTTPD Service Daemon at Preset Time Auto Shutdown ja Käynnistä Apache httpd Service Daemon klo Preset Time

The core component of any websites, blogs, web services and web applications is the web server. Keskeisiä osa kaikki sivustot, blogit, web-palveluita ja web-sovellusten Web-palvelimeen. And Apache is the most popular HTTP server that powers the websites worldwide. Ja Apache on suosituin HTTP-palvelin, joka toimivaltuuksia sivustot maailmassa. 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. On tärkeää varmistaa, että käytettävyyttä ja jatkuvissa Apache palvelun tai daemon-palvelimella, niin kuin httpd palvelu ei ole käytössä, sivustosi on unaccessible että vierailijoille. 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. Muu kuin käyttämällä seuranta palvelun komentosarja tai apuohjelma tarkistaa jos httpd daemon on ylhäällä, palvelimen järjestelmänvalvojan on myös valinta käynnistää Apache palvelua säännöllisesti.

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. Sammuta ja käynnistä Apache määräajoin tietyille interval auttaa varmistamaan, että Apache-web-palvelu on aina käynnissä yläpäätä kunnossa, ilman vaikutusta mahdollista muistivuodon ja luonnonvarojen hogging jatkuva yhteys. 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. On myös varmistettava, että Web-sivustot seisokkiaikaa on rajoitettu seuraavan uudelleenkäynnistyksen aikataulussa, vain jos se on niin onneton, että Apache jumittuu loputtomiin ja seuranta palvelua ei voi poimia tapahtumasta.

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. Jos haluat pysäyttää ja käynnistää Apache automaattisesti, voimme hyödyntää crontab (tai Scheduled Task tai Task Scheduler Windows Server) Ajoita tehtävä tuolloin mieluummin. Simply edit the cron jobs with a root or whell user, and add in the following line: Yksinkertaisesti muokata cron työpaikkoja juuriin tai whell käyttäjä, ja lisätä seuraava rivi:

mhdmw /usr/local/apache/bin/apachectl restart mhdmw / usr / local / apache / bin / apachectl restart

Replace m, h, d, m and w with value of your preference, where they represent the following meaning: Korvaa m, h, d, m ja w kanssa arvo teidän parempana, jos ne ovat seuraavat:

m: min (0 - 59) m: min (0 - 59)
h: hour (0 - 23) h: tunti (0 - 23)
d: day of month (1 - 31) d: päivä kuukausi (1 - 31)
m: month (1 - 12) m: kuukausi (1 - 12)
w: day of week (0 - 6) (Sunday=0) w: viikonpäivä (0 - 6) (sunnuntai = 0)

For variables that you want to happen every time, set it as * (asterisk). Muuttujille, jotka haluat tapahtuu joka kerta, asettaa sen * (tähti).

For example, to kill the Apache daemon and start it immediately at 1 AM every night, set the crontab line to: Esimerkiksi tappaa Apache daemon ja käynnistä se heti 1 AM joka yö, aseta crontab rivi:

0 1 * * * /usr/local/apache/bin/apachectl restart 0 1 * * * / usr / local / apache / bin / apachectl restart

To restart Apache HTTPD service on weekend, such as Sunday 12 noon, use the following cron job: Jos haluat käynnistää Apache httpd palvelua viikonloppuna, kuten sunnuntai 12 noon, käytä seuraavaa cron työ:

0 12 * * 0 /usr/local/apache/bin/apachectl restart 0 12 * * 0 / usr / local / apache / bin / apachectl restart

You can input “man crontab” to learn more about cron jobs in Linux/Unix/FreeBSD/CentOS. Voit syöttää "mies crontab" oppia lisää cron työpaikkoja Linux / Unix / FreeBSD / CentOS. To edit the crontab job list, simply enter “crontab -e” on the shell. Voit muokata crontab työpaikkojen luettelo, kirjoita "crontab-e" on the shell. Existing crontab will appear on a text editor, such as GNU nano. Nykyiset crontab näkyvät tekstieditorissa, kuten GNU nano. 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. Jos näin on, tee tarvittavat muutokset ja paina sitten Ctrl-X-, seuranta on "Y", jos haluat tallentaa tiedoston, ja seuraa ja paina Enter painamalla Hyväksy oletusnimi tiedoston nimi. The new crontab will be installed and in effect immediately. Uusi crontab tulee olla asennettuna ja voimaan välittömästi.

Note that the path to apachectl may be different on different variant of Unix, Linux or BSD flavors. Huomaa, että polun apachectl saattavat olla erilaiset eri versiossa, Unix-, Linux-tai BSD makuja. Use one of the following command to find out where is Apache installed: Käytä yhtä seuraavista komento selville, mistä on Apache asennettu:

find / apachectl | grep apachectl find / 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. Jotkut Apache saa asentaa hakemistoon / usr / sbin / apachectl, tai voit käyttää httpd tai apachectl symboliset linkit / etc / rc.d / init.d / apachectl tai / etc / rc.d / init.d / httpd.

IMPORTANT : The page is machine translated and provided "as is" without warranty. TÄRKEÄÄ: Sivua kone käännetään ja tarjotaan "sellaisenaan" ilman takuu. Machine translation may be difficult to understand. Machine translation voi olla vaikea ymmärtää. Please refer to Tutustu original English article alkuperäinen Englanti artikkeli whenever possible. aina kun mahdollista.


Leave a Reply Erota Uusintaottelu

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> Voit käyttää näitä koodeja: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del Datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Tilaa kommentit ominaisuus on poistettu käytöstä. To receive notification of latest comments posted, subscribe to Jos haluat saada ilmoituksen Uusimmat kommentit lähetetty, tilata My Digital Life Comments RSS feed My Digital Life Kommentit RSS-syöte or tai register to receive rekisteri vastaanottaa new comments in daily email digest. uusia kommentteja päivittäin emaildigest.
Custom Search

New Articles Uudet artikkelit

Incoming Search Terms for the Article Saapuvat Hakutermit varten artikla

shutdown apache shutdown apache - -- crontab restart apache crontab käynnistä apache - -- restart apache cron käynnistä apache cron - -- restart schedule apache restart aikataulun apache - -- how to restart apache service miten käynnistä apache palvelun - -- restart apache service käynnistä apache palvelun - -- apache daemon apache daemon - -- cant install httpd service in centos cant install httpd palvelun centos - -- apache shutdown apache shutdown - -- apache shutdown server apache shutdown-palvelin - -- how to start apache services in linux Miten aloittaa apache palvelujen linux - -- centos service automatic startup centos palvelun automaattinen käynnistys - -- crontab restart service log crontab käynnistä palvelu log - -- centos autostart services centos Autostart palvelut - -- crontab restart httpd crontab uudelleen httpd - -- crontab reiniciar apache crontab Palauta apache - -- http daemon user in centos http daemon käyttäjä centos - -- restart apache in a cron job käynnistä apache on ajastettu tehtävä - -- restart apache2 crontab restart apache2 crontab - -- shutdown startup apache command shutdown käynnistyksen apache komento - -- start httpd services unix aloittaa httpd palvelut unix - -- auto restart daemon linux auto restart daemon linux - -- centos auto start httpd centos auto aloittaa httpd - -- centos auto start services centos auto alkaa palvelut - -- cron jobs for restarting appache cron työpaikkoja Uudelleenkäynnistäminen appache - -- auto service apache2 ubuntu Auto Service apache2 ubuntu - -- automatic start apache Automaattinen aloittaa apache - -- cron apache auto restart cron apache auto restart - -- freebsd service apache restart FreeBSD palvelun apache restart - -- how to restart apache windows with scheduled job miten käynnistä apache ikkunoita ajoitettua työtä - -- httpd mit cron restarten httpd mit cron restarten - -- linux apache autostart script deamon setup linux apache Autostart script deamon setup - -- reason for httpd service down syy httpd palvelun alas - -- Reasons why the httpd service go down Syyt, miksi httpd palvelun mennä alas - -- restart apache via cron käynnistä apache kautta cron - -- restarting web services linux Uudelleenkäynnistäminen verkkopalvelut linux - -- restart httpd in freebsd restart httpd vuonna FreeBSD - -- restart apache centos käynnistä apache centos - -- rhel apache daemon autostart script rhel apache daemon Autostart script - -- shutdown httpd service through command prompt shutdown httpd palvelun kautta komentokehotteesta - -- ubuntu crontab restart ubuntu crontab restart - -- Apache Web Service start Apache-web-palvelu aloittaa - -- apache restart service apache restart palvelun - -- apache daemon in linux apache daemon Linux - -- auto start httpd on centos auto alkaa httpd on centos - -- crontab restart services schedule crontab uudelleen palvelut aikataulun - -- cron auto restart cron auto restart - -- how to restart cron service miten uudelleen cron-palvelun - -- RHEL apache autostart RHEL apache Autostart - -- shutdown httpd on APEX shutdown httpd on APEX - --