Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build a local Web server by Centos8

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces the relevant knowledge of Centos8 how to build a local Web server, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading this Centos8 article on how to build a local Web server. Let's take a look.

1 Overview

System centos8, using 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 boot boot

First check to see if boot is set up:

Systemctl list-unit-files | grep httpd

If not, set:

Chkconfig httpd on

Reconfirm:

Systemctl list-unit-files | grep httpd

5 access

Then enter the intranet ip address in the browser (the intranet ip can be viewed through ifconfig). If the following page appears, it is successful.

6 modify the default home page

The default site root is located under / var/www/html and 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/htmlsudo vim index.html

Just enter a little bit and refresh it in the browser.

This is the end of the article on "how to build a local Web server in Centos8". Thank you for reading! I believe you all have a certain understanding of "how to build a local Web server in Centos8". If you want to learn more, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report