Simple script to kill the Aapche process.

Some time due to heavy Apache connection, we can’t kill the Apache service in one command at that time we can use the following script to kill all the Apache processes.

#!/bin/bash
for pid in `ps -C httpd|sed -e ‘s/^\ \+//g’ | grep httpd|awk ‘{print $1}’`
do
kill $pid
done

About Anant 386 Articles
Senior technical writer