Code to kill Apache process in Linux.
$ sudo netstat -nap | grep :80
You will see apache2 as well as a three to a four-digit number before it eg, 920.
$ sudo kill [number]
Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.