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 내 디지털 라이프 공개 토론 . 합니다.
Related Articles 관련 기사
- Start, Stop and Restart Crond Daemon in Linux 시작, crond 데몬에서 리눅스를 중지하고 다시 시작
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 4 freebsd 6.0과 아파치 웹 서버에 설치하는 2.2, mysql 5.0과 php 5 - 제 4
- Starting Apache HTTPD Failed Due to Cannot Open or No Such mod_bwlimited, mod_log_bytes or mod_bandwidth Files 아파치 웹서버를 시작하지 못했습니다를 열 수없습니다 또는 그런 mod_bwlimited, 또는 mod_bandwidth 파일을 mod_log_bytes
- Apache Warn NameVirtualHost *:80 Has No VirtualHosts Error When Start 아파치 경고 namevirtualhost * : 80이없는 virtualhosts를 시작 오류가 발생했습니다
- Install mod_evasive for Apache to Prevent DDOS Attacks 아파치 ddos 공격을 막기 위해 설치하는 mod_evasive
- Restart or Shutdown Windows (XP, 2000 and Vista) from Command Line or One-Click Shortcut 시스템을 다시 시작 또는 시스템 종료 창 (XP 용, 2000 및 비스타)을 커맨드 라인 또는 1 - [단축키
- Improve Apache Web Server Security: Use ServerTokens and ServerSignature to Disable Header 개선 아파치 웹 서버를 보안 : serversignature을 해제하는 헤더를 사용하고 servertokens
- Automatically Shutdown Computer With Auto Shutdown Genius 컴퓨터가 자동 종료의 천재가 자동으로 종료
- cPanel WHM Failed to Receive Status Information From Apache Error 현재 상태의 정보를 수신하지 못했습니다 cpanel 아파치 오류 whm
- Apache Status (whm-server-status) in cPanel WebHost Manager Returns Blank Page 아파치 상태 (whm - 서버 - 현재 상태)에서 웹 호스트 관리자를 cpanel 빈 페이지를 반환합니다


















