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:
|
<<: Mysql solves the database N+1 query problem
>>: How to monitor array changes in JavaScript
Recently, when running an old RN project, the fol...
Why do I want to organize the content in this area...
This article shares the installation and configur...
1. Create a runner container mk@mk-pc:~/Desktop$ ...
Preface There are many devices nowadays, includin...
Table of contents Introduction Introduction Aggre...
Generally speaking, the background color of a web ...
After I found that the previous article solved th...
I am planning to organize the company's inter...
Table of contents The principle and function of l...
Demand: This demand is an urgent need! In a subwa...
Table of contents 1. Basic use of axio 2. How to ...
In the MySQL documentation, MySQL variables can b...
This article shares the specific code for JavaScr...
In web projects we often use the timeline control...