Implementation steps for building a local web server on Centos8

Implementation steps for building a local web server on Centos8

1 Overview

System centos8, use httpd to build a local web server.

2 Install httpd

sudo yum install -y httpd

3 Start the service

service httpd start

4 Set up startup

First check if there is any setting to start at boot:

systemctl list-unit-files | grep httpd 


If not, set:

chkconfig httpd on

Confirm again:

systemctl list-unit-files | grep httpd 

5 Visit

Enter the intranet IP address in the browser (the intranet 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 in /var/www/html, which can be modified by modifying /etc/httpd/conf/httpd.conf. Here we only modify the homepage. Create an index.html in /var/www/html:

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

Just enter some content and refresh the browser.

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Detailed tutorial on building Gitlab server on CentOS8.1
  • How to build mysql master-slave server on centos7 (graphic tutorial)
  • Detailed explanation of building Nginx website server based on centos7 (including configuration of virtual web host)
  • CentOS 7.2 builds nginx web server to deploy uniapp project
  • Detailed explanation of how to build phalcon environment under nginx server on centos7 system
  • Tutorial on building a master-slave DNS server in Centos7
  • Install and build a server environment of PHP+Apache+MySQL on CentOS
  • A concise tutorial on setting up a PHP server environment on CentOS
  • Centos builds chrony time synchronization server process diagram

<<:  Mysql solves the database N+1 query problem

>>:  How to monitor array changes in JavaScript

Recommend

MySQL 8.0.18 Installation Configuration Optimization Tutorial

Mysql installation, configuration, and optimizati...

IE6 web page creation reference IE6 default style

This is not actually an official document of IE. I...

CSS3 creates web animation to achieve bouncing ball effect

Basic preparation For this implementation, we nee...

How to install phabricator using Docker

I am using the Ubuntu 16.04 system here. Installa...

【HTML element】Detailed explanation of tag text

1. Use basic text elements to mark up content Fir...

How to set remote access permissions in MySQL 8.0

The previous article explained how to reset the M...

Vue implements book management case

This article example shares the specific code of ...

Sample code for implementing PC resolution adaptation in Vue

Table of contents plan Install Dependencies Intro...

Sample code for implementing a background gradient button using div+css3

As the demand for front-end pages continues to in...

Html/Css (the first must-read guide for beginners)

1. Understanding the meaning of web standards-Why...

Detailed explanation of how to create MySql scheduled tasks in navicat

Detailed explanation of creating MySql scheduled ...

Implementing license plate input function in WeChat applet

Table of contents Preface background Big guess Fi...

How to use history redirection in React Router

In react-router, the jump in the component can be...