Step 1: yum install httpd -y #Install httpd service Step 2: systemctl start httpd #Start the httpd service Step 3: systemctl enable httpd #Set the httpd service to start at boot Step 4: firewall-cmd --zone=public --add-port=80/tcp --permanent #Open port 80 of the firewall and make it permanent. The return value success indicates that the setting is successful. (-permanent means permanent effect, and will become invalid after restart without this parameter) Step 5: systemctl restart firewalld.service #Restart the firewall to make the previous settings take effect Step 6: firewall-cmd --zone=public --query-port=80/tcp #Check whether port 80 is open. If yes is returned, it is open successfully. If no is returned, it is not open (if the setting is completed and the firewall is not restarted, it will return no) Step 7: Copy the source files of the website to the /var/www/html directory. Or delete the /var/www/html directory, and then copy the source file directory to the /var/www directory and rename it to html. The html directory must contain the index.html default homepage file. Step 8: Enter the local IP address in the browser to test. #For domain names, you need to apply for a domain name first, then do domain name resolution, and bind the public IP before use. Summarize This is the end of this article about how to install a web server on centos8 using Apache httpd2.4.37. For more information about how to install a web server on centos8 using Apache httpd2.4.37, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Take you to understand the event scheduler EVENT in MySQL
>>: Detailed explanation of Jquery datagrid query
Speaking of Nestjs exception filter, we have to m...
Preface : Today I was asked, "Have you carefu...
This article shares with you the specific code of...
The effect shows that two browsers simulate each ...
1. Inline reference: used directly on the label, ...
Table of contents What are Refs 1. String type Re...
The data URI scheme allows us to include data in a...
Table of contents 1. Delete the old version 2. Ch...
Table of contents Slots What are slots? Slot Cont...
I have several tomcats here. If I use them at the...
Try installing via pip in a virtual environment: ...
In the process of web project development, we oft...
After half an hour of trying to pull the MySQL im...
Table of contents Preface Enumerable properties I...
So-called talent (left brain and right brain) Tha...