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
Browser compatibility is nothing more than style ...
in conclusion % of width: defines the percentage ...
1. Download: http://www.oracle.com/technetwork/ja...
Table of contents Conditional compilation Page La...
Management of input and output in the system 1. U...
1. Convert the json object into a json string, an...
JBoss uses Tomcat as the Web container, so the co...
1. Display effect: 2, html structure <div clas...
Shell Script #!/bin/sh # Current directory CURREN...
This article uses examples to illustrate the usag...
Scenario 1: To achieve a semi-transparent border:...
introduction When I was learning more about datab...
1. In the previous chapter, we learned that we ca...
Today someone talked to me about a website develo...
background All of the company's servers are p...