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
Mysql installation, configuration, and optimizati...
This is not actually an official document of IE. I...
Basic preparation For this implementation, we nee...
I am using the Ubuntu 16.04 system here. Installa...
1. Use basic text elements to mark up content Fir...
The previous article explained how to reset the M...
This article example shares the specific code of ...
Table of contents plan Install Dependencies Intro...
As the demand for front-end pages continues to in...
1. Understanding the meaning of web standards-Why...
Detailed explanation of creating MySql scheduled ...
I recently read Yahoo's 34 Golden Rules and le...
Table of contents Preface background Big guess Fi...
In react-router, the jump in the component can be...
Problem: The PHP program on one server cannot con...