Auto Shutdown and Restart Apache HTTPD Service Daemon at Preset Time 자동차를 종료하고 다시 시작합니다 미리 설정된 시간에 아파치 웹서버 서비스를 데몬

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. 그리고 가장 인기있는 아파치는 전세계의 웹사이트 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. 가동 시간을 확보하는 것이 중요합니다 아파치 서비스 또는 데몬을 실행하고 지속적인 서버에서 서비스를 웹서버가 다운 것처럼, 당신의 웹사이트는 방문자 수에 액세스할 수없습니다. 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. 이외의 모니터를 사용하여 서비스, 스크립트 또는 유틸리티를 확인하는 경우에는 웹서버 데몬은 서버 관리자가 선택에는 서비스가 주기적으로 아파치를 다시 시작합니다.

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: cron 작업을 간단하게 편집하여 루트이나 whell 사용자, 그리고 장바구니에 다음과 같은 라인 :

mhdmw /usr/local/apache/bin/apachectl restart mhdmw / usr / 지방 / 아파치 / 빈 / apachectl를 다시 시작

Replace m, h, d, m and w with value of your preference, where they represent the following meaning: 대체 m, 반장님, 수, 측정 및 승과 가치를 자신의 환경 설정에, 어디 그들은 다음과 같은 의미를 나타냅니다 :

m: min (0 - 59) m : 최소 (0 - 59)
h: hour (0 - 23) 휴고 : 1 시간 (0 - 23)
d: day of month (1 - 31) 패 : 말일 (1 - 31 일)
m: month (1 - 12) m : 월 (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 * * * / usr / 지방 / 아파치 / 빈 / apachectl를 다시 시작

To restart Apache HTTPD service on weekend, such as Sunday 12 noon, use the following cron job: 주말에 서비스를 아파치 웹서버를 다시 시작과 같은 일요일 12시, 다음과 같은 cron를 사용하여 직업 :

0 12 * * 0 /usr/local/apache/bin/apachectl restart 0 12 * * 0 / usr / 지방 / 아파치 / 빈 / 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에서이 나타납니다과 같은 텍스트 편집기를 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. 이 경우, 필요한 사항을 변경, 그럼 "를 누르십시오 ctrl - x", 다음으로 "그리고"를 파일을 저장하고 다음을 입력하여 파일 이름을 눌러 기본값을 수락합니다. 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. 참고하는 방법에 대한 경로는 서로 다른 변종과 다를 수있습니다 유닉스, 리눅스 또는 bsd 풍미합니다. Use one of the following command to find out where is Apache installed: 다음과 같은 명령을 중 하나를 사용하십시오 알아내 어디에 아파치를 설치 :

find / apachectl | grep apachectl 찾기 / apachectl | grep apachectl
whereis apachectl apachectl whereis

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. 일부 아파치를 설치 / usr / sbin / apachectl, 아니면 심볼릭 링크를 사용할 수있습니다 웹서버 또는 apachectl / 비고 / rc.d / init.d / apachectl 또는 / 비고 / rc.d / init.d / 웹서버합니다.

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 중요 사항 : 이것은 기계 번역 페이지는 "있는 그대로"제공하지 않고 보증합니다. Machine translation may be difficult to understand. 기계 번역을 이해하기 어려울 수있습니다. Please refer to 를 참조하시기 바랍니다 original English article 원래 영어 자료 whenever possible. 언제 수있습니다.

Share and contribute or get technical support and help at 를 공유하고 기술 지원 및 도움을 공헌하지 않는다면 My Digital Life Forums 내 디지털 라이프 공개 토론 . 합니다.



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=""> <acronym title=""> <abbr title=""> <blockquote cite=""> <b> <cite> <code> <델 날짜 = ""> <em> <i> <strike> '<q cite="">

Subscribe without commenting 논평없이 구독 신청
이메일


Custom Search

New Articles 새로운 기사

Incoming Search Terms for the Article 이 문서에 대한 검색어를 수신

restart apache 아파치를 다시 시작 - - restart httpd 웹서버를 다시 시작 - - apache shutdown 아파치 종료 - - centos service autostart centos 서비스를 자동 시작 - - apache restart 아파치를 다시 시작 - - service apache restart 서비스를 아파치를 다시 시작 - - how to restart apache 아파치를 다시 시작하는 방법 - - restart apache service 아파치 서비스를 다시 시작합니다 - - auto restart apache 자동차를 다시 시작 아파치 - - crontab restart apache 아파치를 다시 시작 crontab - - freebsd apache autostart freebsd 아파치 자동 시작 - - apache auto restart 아파치 자동차를 다시 시작 - - apache service restart 아파치 서비스를 다시 시작합니다 - - service restart apache 서비스를 다시 시작합니다 아파치 - - apache auto start 아파치 자동 시작 - - apache automatic restart 아파치 자동으로 다시 시작합니다 - - CentOS autostart httpd 자동 웹서버 centos - - centos httpd autostart 자동 centos 웹서버 - - start apache service 아파치 서비스를 시작합니다 - - auto start apache 자동 시작 아파치 - - centos autostart services 자동 시작 서비스를 centos - - shutdown apache 종료 아파치 - - reboot apache 아파치를 재부 팅 - - schedule apache restart 일정 아파치를 다시 시작 - - centos apache autostart 아파치 자동 centos - - cronjob restart apache 아파치를 다시 시작 cronjob - - centos autostart service 자동 시작 서비스를 centos - - apache httpd shutdown 아파치 웹서버 종료 - - how to shutdown apache 아파치하는 방법을 종료 - - shutdown httpd 웹서버 시스템 종료 - - centos auto restart 자동차를 다시 시작 centos - - Linux Apache Memory Leak 리눅스 아파치 메모리 누수 - - start apache httpd 아파치 웹서버를 시작 - - how to shutdown httpd 웹서버 시스템 종료하는 방법을 - - cron job to restart apache cron 작업을 다시 시작합니다 아파치 - - restart apache centos 아파치를 다시 시작 centos - - cron auto restart apache cron 자동차를 다시 시작 아파치 - - starting apache service 아파치 서비스 시작 - - centos auto start centos 자동 시작 - - Apache restart service 아파치를 다시 시작 서비스를 - - autostart httpd centos 자동 웹서버 centos - - cron restart apache 아파치를 다시 시작 cron - - linux shut down apache 리눅스 시스템 종료 아파치 - - set apache to autostart 아파치를 자동 설정 - - start apache service+unix+usr/sbin 아파치 서비스를 시작합니다 + 유닉스 + usr / sbin - - centos auto start apache 아파치 centos 자동으로 시작 - - httpd shutdown 웹서버 시스템 종료 - - plesk cron job restart apache cron 작업 plesk 아파치를 다시 시작 - - how to start httpd service in linux 리눅스에서 웹서버 서비스를 시작하는 방법 - - centos service apache centos 서비스를 아파치 - -