DEV Community

Cover image for How to start an Apache 2 server or service in Linux?
MELVIN GEORGE
MELVIN GEORGE

Posted on • Originally published at melvingeorge.me

How to start an Apache 2 server or service in Linux?

Originally posted here!

To start an Apache 2 server or service, we can use the systemctl command-line utility followed by the start apache2.service command in Linux.

# Starts apache 2 service
sudo systemctl start apache2.service
Enter fullscreen mode Exit fullscreen mode

What is systemctl?

  • The systemctl is a command-line utility that is used to control and manage the systemd services.
  • It is widely used with web server services like Apache, Nginx, etc.

Feel free to share if you found this useful 😃.


Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs