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
What is systemctl
?
- The
systemctl
is a command-line utility that is used to control and manage thesystemd
services. - It is widely used with web server services like Apache, Nginx, etc.
Top comments (0)