Centos8 uses Apache httpd2.4.37 to install web server steps in detail

The first step: yum install httpd -y #install httpd service

Step 2: systemctl start httpd #Start httpd service

The third step: systemctl enable httpd #Set httpd service to boot

The fourth step: firewall-cmd –zone=public –add-port=80/tcp –permanent #Open port 80 of the firewall and take effect permanently, and return to the meaning of success. (-Permanent means permanent effect, it will be invalid after restart without this parameter)

Step 5: systemctl restart firewalld.service #Restart the firewall to make the settings effective

The sixth step: firewall-cmd –zone=public –query-port=80/tcp #Check whether port 80 is open, return yes to open successfully, return no is not open (no after the setting is completed, the firewall 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, then copy the source file directory to the /var/www directory and rename the html directory, html directory There must be index.html default homepage file in it.

The eighth step: the browser enters the local IP address test # domain name, you need to apply for the domain name first, and then do [domain name resolution] (https://cloud.tencent.com/product/cns?from=10680), bind the public IP and use it.

to sum up

So far this article about centos8 using Apache httpd2.4.37 to install a web server is introduced. For more related centos8 using Apache httpd2.4.37 to install a web server, please search for previous articles by ZaLou.Cn or continue to browse the following related articles I hope you will support ZaLou.Cn a lot in the future!

Recommended Posts

Centos8 uses Apache httpd2.4.37 to install web server steps in detail
Centos7 uses yum to install Apache, mariadb, PHP
Centos7 uses Ansible to install Chinese fonts in batches
Centos8 implementation steps to build a local web server
[Quick Start] How to install Apache web server on Ubuntu 18.04
Detailed steps to install and configure k8s cluster in centos 7
How to install PHP7.4 in CentOS
Install Percona Server database (in CentOS 8)
How to install HDP2.6 in Centos7.2
How to install Apache on CentOS 8
CentOS 6.8 method steps to install vsftpd
How to install Android SDK in centos7
How to install Apache Maven on CentOS 8
How to install Apache Kafka on CentOS 7
Centos8 uses yum to install mongodb 4.2 method
Centos7 uses yum to install pip, ipython
How to install python in ubuntu server environment
How to install php7.3 in centos8 custom directory
Install php in centos
CentOS 7 install vsftpd steps
CentOS uses Nginx to build a download function server
How to install and configure NFS server on CentOS 8
Install redis5.0 in CentOS7
How to install Google Chrome web browser on CentOS 8
Centos install security dog can be completed in 5 steps
Detailed steps to install centos on vmware10.0 cracked version
How to install and configure Postfix mail server on CentOS8
Detailed steps to set up a Git server on CentOS
Centos7.6 method to install Tomcat-8.5.39
install virtualbox on centos server
Install Nginx server on CentOS 7
Update gcc to 6.4.0 in centos
Detailed steps to install virtual machines with VMware 15 and use CentOS 8
Detailed steps to install MySQL to change the default password in Ubuntu
How to install Helm in Ubuntu
How to install jdk1.8 on centOS7
How to install MySQL on CentOS 8
Install JDK8 in rpm on CentOS7
How to install Memcached on CentOS 8
How to install R on CentOS 8
How to install FFmpeg on CentOS 8
How to install Virtualbox on CentOS 8
How to install Apache on Ubuntu 20.04
How to install TensorFlow on CentOS 8
Minimal install JDK 1.8 tutorial in CentOS 7
How to install TeamViewer on CentOS 8
How to install Perl 5 on CentOS
Tencent Cloud Centos7 install java server
How to install Git on CentOS 8
How to install Gradle on CentOS 8
How to install Elasticsearch on CentOS 8
CentOS configuration git server in VirtualBox
Install MySql with Docker in CentOS7
How to install Jenkins on CentOS 8
How to install Java on CentOS 8
How to install Go on CentOS 8
Tencent Cloud Centos7 install java server
Linux CentOS 7 install JDK detailed steps
How to install mysql in Ubuntu 14.04
How to install Yarn on CentOS 8
Install java in yum mode in Centos