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
Preface Since I needed to install Zookeeper durin...
After docker run, the status is always Exited Sol...
The first method: dynamically add a class to show...
Since the network requests initiated by native js...
In the previous article, we explained how nginx r...
Preface Sometimes when we view database data, we ...
In the horizontal direction, you can set the cell...
The equal height layout described in this article...
MySQL is a relational database management system....
Every website usually encounters many non-search ...
<br />I have always believed that Yahoo'...
Problem description: I bought a Mac and installed...
cause The way to import external files into a min...
The following error occurs when entering Chinese ...
Let's make a simple 3D Rubik's Cube today...