In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.