Linux: CentOS: Installing Apache - eliminmax/cncs-journal GitHub Wiki
>
> Unix/Linux:
> Windows:
> Windows:
> Unix/Linux and Windows:
Meaning of different command prompts
> Unix/Linux:$: can be run as normal user> Unix/Linux:
#: must be run as root (or with sudo)> Windows:
>: Command Prompt or PowerShell> Windows:
PS>: PowerShell only> Unix/Linux and Windows:
$/>,#/>: Works in Windows and Unix/Linux.
> To set up Apache, follow these simple steps:
-
Install the Apache software by running the following command, and confirm installation:
# yum install httpd -
Start the httpd service, and set it to run at boot:
# systemctl start httpd && systemctl enable httpd -
Allow the http and https services through the firewall:
# firewall-cmd --add-service=http --add-service=https --permanent && firewall-cmd --reload