Scenario / Questions
Is there any command to find out if apache is running or not.
and on which port except by seeingports.conf files
When i try netstat command then apaches does not appear in that.
but when i use apache2 restart command then it says restart ok
i don’t know where it is running
Find below all possible solutions or suggestions for the above questions..
lsof -i list open ports and the corresponding applications.
For a general check if an app is running you could just use
ps aux | grep apache2
netstat -anp | grep apache
You could see the listening port and PID from this if it’s running.
You’ll see the Pid / Binary name on far right column, match this to your running apache instance.
If lsof is installed you could try something like this:
lsof | grep httpd
(for centos and friends)
lsof | grep apache
(for debian and company)
sockstat | grep apache httpd
Kubernetes Free Online Tutorial, Kubernetes Beginner Tutorial
DevOps Free Online Tutorial, DevOps Beginner Tutorial
Ansible Free Online Tutorial, Ansible Beginner Tutorial
Docker Free Online Tutorial, Docker Beginner Tutorial
Openstack Free Online Tutorial, Openstack Beginner Tutorial
Disclaimer: This has been sourced from a third party syndicated feed through internet. We are not responsibility or liability for its dependability, trustworthiness, reliability and data of the text. We reserves the sole right to alter, delete or remove (without notice) the content in its absolute discretion for any reason whatsoever.