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

The implementation steps of building a local Web server with Centos8

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1 summarizes

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

2 Install httpd

sudo yum install -y httpd

3 Start of service

service httpd start

4 Settings Boot Start

First check if there are settings to boot:

systemctl list-unit-files | grep httpd

If not, set:

chkconfig httpd on

Just to confirm:

systemctl list-unit-files | grep httpd

5 Visits

Then enter the IP address of the intranet in the browser (the IP address of the intranet can be viewed through ifconfig). If the following page appears, it means success.

6 Changing the default home page

The default root directory is/var/www/html, which can be modified by modifying/etc/httpd/conf/httpd.conf. This is just a modification of the homepage. The requested URL/var/www/html/was not found on this server.

cd /var/www/htmlsudo vim index.html

Just type something and refresh it in your browser.

The above is all the content of this article, I hope to help everyone's study, but also hope that everyone a lot of support.

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: 275

*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

Servers

Wechat

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

12
Report