Auto Shutdown and Restart Apache HTTPD Service Daemon at Preset Time Auto Shutdown in zopet začeti Apache httpd Service Daemon na Preset Time

The core component of any websites, blogs, web services and web applications is the web server. Jedro sestavni del vsake spletne strani, bloge, spletnih storitev in spletnih aplikacij, je spletni strežnik. And Apache is the most popular HTTP server that powers the websites worldwide. In je Apache najbolj priljubljena HTTP strežnik, ki poganja spletne strani po vsem svetu. 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. Pomembno je zagotoviti, da uptime in neprekinjeno delovanje službe Apache ali daemon na strežniku, kot da httpd storitev navzdol, bo vaša spletna stran je nedosegljiva za obiskovalce. 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. Razen uporabljajo za spremljanje storitev, skript ali uporabni za preverjanje, če je do httpd daemon, skrbnika strežnika tudi izbiro, da znova zaženete storitev Apache občasno.

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. Ustavitev dela ali obratovanja ter zopet začeti Apache v rednih časovnih presledkih posebne interval pomaga zagotoviti, da storitev Apache ujeti vedno teče v vrhu zarezo stanju, brez učinka možnih pomnilnika in virov, ki jih vztrajno Pregib povezav. 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. Prav tako zagotovijo, da se izpadov spletne strani, omejena na naslednjem vnovičnem zagonu razporedu, samo v primeru, da je tako nesrečna, da Apache visi za nedoločen čas in vaše spremljanje storitev ne more pobrati 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. Za zaustavitev in začeti Apache samodejno, lahko naredimo uporabi crontab (ali Scheduled Task ali penzum tabela v operacijskem sistemu Windows Server) načrtovati naloge v času ljubše. Simply edit the cron jobs with a root or whell user, and add in the following line: Preprosto urejanje delovnih mest z cron root ali uporabnika whell, in dodajte v naslednjo vrstico:

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

Replace m, h, d, m and w with value of your preference, where they represent the following meaning: Zamenjaj m, h, d, m in w z vrednostjo svoji želji, če predstavljajo naslednji pomen:

m: min (0 – 59) m: min (0 - 59)
h: hour (0 – 23) h: ura (0 - 23)
d: day of month (1 – 31) d: dan v mesecu (1 - 31)
m: month (1 – 12) m: mesec (1 - 12)
w: day of week (0 – 6) (Sunday=0) w: dan v tednu (0 - 6) (nedelja = 0)

For variables that you want to happen every time, set it as * (asterisk). Za spremenljivke, ki želite, da se zgodi vsakič, jo nastavite kot * (zvezdica).

For example, to kill the Apache daemon and start it immediately at 1 AM every night, set the crontab line to: Na primer, da bi ubil daemon Apache in začeti takoj po 1 vsak večer, nastavite crontab postavka:

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

To restart Apache HTTPD service on weekend, such as Sunday 12 noon, use the following cron job: Če želite znova zagnati Apache httpd storitev na konec tedna, kot je nedelja ob 12. uri, uporabite naslednje delo cron:

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

You can input “man crontab” to learn more about cron jobs in Linux/Unix/FreeBSD/CentOS. Lahko input "man crontab", če želite izvedeti več o cron delovnih mest v Linux / Unix / FreeBSD / CentOS. To edit the crontab job list, simply enter “crontab -e” on the shell. Če želite urediti seznam delovnih mest crontab, preprosto vnesite "crontab-e" na lupini. Existing crontab will appear on a text editor, such as GNU nano. Obstoječe crontab bo pojavil na urejevalnik besedila, kot je nano GNU. 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. Če je tako, da potrebne spremembe, nato pritisnite tipko "Ctrl-X", sledi z "Y", da shranite datoteko in sledite s Vpišite pritisnite, da sprejmete privzeto ime datoteke. The new crontab will be installed and in effect immediately. Novi crontab bo nameščena in dejansko takoj.

Note that the path to apachectl may be different on different variant of Unix, Linux or BSD flavors. Upoštevajte, da je pot do apachectl lahko različni na različnih različico Unix, Linux in BSD okuse. Use one of the following command to find out where is Apache installed: Uporabimo eno od naslednjih zapoved izvedeti, kjer je nameščen Apache:

find / apachectl | grep apachectl odkriti / 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. Nekateri Apache lahko namesti v / usr / sbin / apachectl, ali lahko uporabite httpd apachectl ali simbolne povezave v / etc / rc.d / init.d / apachectl ali / etc / rc.d / init.d / httpd.

IMPORTANT : The page is machine translated and provided "as is" without warranty. POMEMBNO: stran je stroj prevod in če "kot je" brez garancije. Machine translation may be difficult to understand. Strojno prevajanje je lahko težko razumeti. Please refer to Prosimo, da original English article original angleški člen whenever possible. kadar je to mogoče.


Leave a Reply 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> Lahko uporabite te oznake: <a href="" <abbr title=""> <acronym <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Naročite se na komentarje funkcija je bila onemogočena. To receive notification of latest comments posted, subscribe to Če želite prejemati obvestila o najnovejših pripombe napoten, se naročite na My Digital Life Comments RSS feed Moje digitalno življenje razložiti RSS feed or ali register to receive Registrirajte se za prejemanje new comments in daily email digest. novi komentarji v dnevni email prebavljajo.
Custom Search

New Articles Novi členi

Incoming Search Terms for the Article Prihajajoč preiskava pogoj zakaj člen

shutdown apache shutdown apache - -- apache shutdown apache shutdown - -- restart apache service zopet začeti apache storitve - -- centos apache restart CentOS apache znova - -- cron restart apache cron ponovno zagnati apache - -- shutdown apache linux shutdown apache linux - -- apache daemon apache daemon - -- apache auto restart apache avto zopet začeti - -- centos autostart service CentOS autostart storitve - -- apache auto start apache auto začetek - -- cron job restart apache cron delovnih mest znova apache - -- centos auto start httpd CentOS auto začetek httpd - -- apache restart interval apache znova interval - -- linux apache shutdown apache linux shutdown - -- crontab restart service crontab znova storitve - -- crontab service restart crontab storitev zopet začeti - -- restart apache centos ponovni zagon apache CentOS - -- restart httpd znova httpd - -- apache shutdown linux apache linux shutdown - -- crontab restart apache crontab ponovno zagnati apache - -- find apachectl našli apachectl - -- freebsd restart apache vdovščina po smrti svobodnika zopet začeti apache - -- centos shutdown apache CentOS shutdown apache - -- start apache httpd začetek apache httpd - -- restart apache services ponovni zagon apache storitve - -- cron job to restart apache cron opravilo, ki se ponovno zagnati apache - -- cron httpd restart cron httpd ponovno zagnati - -- service apache restart storitev apache zopet začeti - -- how to restart apache service kako ponovno zagnati apache storitev - -- linux restart apache service linux znova apache storitev - -- shutdown httpd shutdown httpd - -- cron restart service cron znova storitve - -- restart apache crontab ponovni zagon apache crontab - -- centos reboot apache CentOS odmevajoč apache - -- how to shutdown apache kako do zaustavitve apache - -- how to shutdown apache in linux kako zapreti apache v linux - -- apache daemon example apache daemon primer - -- linux shutdown apache linux shutdown apache - -- cron apache restart cron apache znova - -- crontab apache restart crontab ponovno zagnati apache - -- how to shut down apache linux kako zapreti apache linux - -- centos autostart services CentOS autostart storitve - -- restart apache cron ponovni zagon apache cron - -- restart apache via cron ponovni zagon apache via cron - -- restart httpd in freebsd httpd ponovno v vdovščina po smrti svobodnika - -- apache restart service apache znova storitve - -- freebsd apache autostart vdovščina po smrti svobodnika apache autostart - -- centos autostart httpd CentOS autostart httpd - -- centos restart apache CentOS znova apache - -- httpd shutdown httpd shutdown - --