Centos8 implementation steps to build a local web server

1 Overview

The system centos8 uses httpd to build a local web server.

2 Install httpd

sudo yum install -y httpd

3 Start service

service httpd start

4 Set boot up

First check if there is any setting to start up:

systemctl list-unit-files | grep httpd

If not, set:

chkconfig httpd on

Confirm again:

systemctl list-unit-files | grep httpd

5 Access

Then enter the internal network ip address in the browser (the internal network ip can be viewed through ifconfig). If the following page appears, it means success.

6 Modify the default homepage

The default website root directory is located under /var/www/html, which can be modified by modifying /etc/httpd/conf/httpd.conf. Here is just to modify the home page. Create an index.html in /var/www/html:

cd /var/www/html
sudo vim index.html

Just enter a little content, and then refresh in the browser.

The above is the whole content of this article, I hope it will be helpful to everyone's study.

Recommended Posts

Centos8 implementation steps to build a local web server
Centos7 tutorial to build a master-slave DNS server
CentOS uses Nginx to build a download function server
Centos6 method steps to build gitlab
Centos7 build java web server tomcat
Detailed steps to set up a Git server on CentOS
(1) Centos7 installation to build a cluster environment
Centos8 uses Apache httpd2.4.37 to install web server steps in detail
How to quickly build Nginx server under CentOS
How to build a LAMP environment on centos7.2
3 minutes to teach you to build gitea on Centos server
Use Rancher to build a K8s cluster under CentOS7
Build OpenLDAP server under CentOS7
First try to build a Ceph storage cluster on Centos7
Teach you how to build a Git server on Ubuntu
How to upgrade CentOS7 to CentOS8 (detailed steps)
CentOS8.1 build Gitlab server detailed tutorial
Ubuntu16.04 build php5.6 Web server environment
Build a PXC cluster under CentOS8
Build an FTP server under centos7
Build a file server on ubuntu
Modify CentOS server time to Beijing time
CentOS 6.8 method steps to install vsftpd
Steps to build LNMP environment on ubuntu 20.04
[PHP] Build a PHP operating environment under CentOS
Build a Minecraft Bedrock Edition server (Ubuntu)
How to monitor CentOS 7 server with Prometheus
How to change the CentOS server time to Beijing time
Build a ScaleIO distributed storage cluster under CentOS7
CentOS 8 complete steps to set up automatic updates
How to modify the CentOS server time to Beijing time
Centos7.2 compile and install way to build phpMyAdmin