---
title: "Linux下apache（优雅）停止、重启方式"
author: "wcily123"
date: "2012-08-01T11:03:49Z"
tags: ["Apache", "Linux", "apachectl", "graceful"]
categories: ["开源软件"]
slug: "linux-apache"
draft: false
lastmod: "2012-08-01T11:06:34Z"
id: 1614898
url: "https://stefan321.iteye.com/blog/1614898"
---

 Linux下apache（优雅）停止、重启方式

立即停止

信号：TERM
apachectl -k stop
发送TERM或stop信号到父进程可以使它立刻杀死所有子进程。这将花费一些时间来杀死所有子进程。然后父进程自己也退出。所有进行中的请求将被强行中止，而且不再接受其它请求。

 

优雅重启

信号：USR1
apachectl -k graceful
 
立即重启

信号：HUP
apachectl -k restart
 
优雅停止

信号：WINCH
apachectl -k graceful-stop

转：http://blog.csdn.net/lizhi200404520/article/details/6660181