0

first i install apache2 using following commandsudo apt install apache2. I tried sudo systemctl start apache2 to run server. now i want to see on which port my server is running

1

You probably have not searched a lot about your question, but here are some solutions:

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 or also netstat -anp.

There are more solutions over on Server Fault.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.