In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
In this article, the editor introduces in detail "how to customize the content of the home page of Apache Web", the content is detailed, the steps are clear, and the details are handled properly. I hope that this article "how to customize the content of the home page of Apache Web" can help you solve your doubts.
1. Install Apache [root @ localhost ~] # yum install-y httpd2. Modify / etc/httpd/conf/httpd.conf configuration file [root@localhost ~] # vim / etc/httpd/conf/httpd.conf in vim, quickly navigate to line 95 in command mode, type: 95 to the following form. Remember to remove # ServerName 192.168.XX.XX:80: wq save exit 3. Start the web service [root@localhost ~] # systemctl start httpd [root@localhost ~] # netstat-ntl # confirm that port 80 is enabled Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address Statetcp 0 0 0.0 0 root@localhost 22 0.0.0 LISTENtcp6 25 0.0.0 LISTENtcp6 0 0:: 80:: * LISTENtcp6 0 0: 22:: * LISTENtcp6 00:: 1:25:: * LISTEN4. Check whether the Apache Web service is normal [root@localhost ~] # cd / var/www/html/ [root@localhost html] # ls [root@localhost html] # iptables-F [root@localhost html] # ifconfigens32: flags=4163 mtu 1500inet 192.168.10.11 netmask 255.255.255.0 broadcast 192.168.10.255inet6 fe80::20c:29ff:feda:182e prefixlen 64 scopeid 0x20 ether 00:0c:29:da:18:2e txqueuelen 1000 (Ethernet) RX packets 930 bytes 77097 (75.2 KiB) RX errors 0 dropped 0 overruns 0 frame 0TX packets 575 bytes 77429 (75.6 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73 mtu 65536inet 127.0.0.1 netmask 255.0.0.0inet6:: 1 prefixlen 128 scopeid 0x10loop txqueuelen 1 (Local Loopback) RX packets 88 bytes 7484 (7.3 KiB) RX errors 0 dropped 0 overruns 0 frame 0TX packets 88 bytes 7484 (7.3 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Enter 192.168.10.11 in the browser, and the following interface appears, indicating that the Apache Web service is normal.
5. Customize the home page file [root@localhost html] # pwd/var/www/html [root@localhost html] # vim index.html [root@localhost html] # systemctl restart httpd
Enter 192.168.10.11 in the browser, and the following interface appears, indicating that the custom home page file takes effect.
After reading this, the article "how to customize the content of the home page of Apache Web" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself to understand it. If you want to know more about related articles, you are welcome to follow the industry information channel.
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: 0
*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.