How Do I Start Httpd in Linux?
Contents How Do I Enable Httpd? Install Apache Run the Following Command: Yum Install Httpd. Use the Systemd Systemctl Tool to Start the Apache Service...
Contents
How do I enable httpd?
Install Apache
- Run the following command: yum install httpd.
- Use the systemd systemctl tool to start the Apache service: systemctl start httpd.
- Enable the service to start automatically on boot: systemctl enable httpd.service.
- Open up port 80 for web traffic: firewall-cmd –add-service=http –permanent.
Must Read
How do I start httpd on Linux 7?
14.1. 3. Running the httpd Service
- 3.1. Starting the Service. To run the httpd service, type the following at a shell prompt as root : ~]# systemctl start httpd.service. …
- 3.2. Stopping the Service. …
- 3.3. Restarting the Service. …
- 14.1.3.4. Verifying the Service Status.