Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Simple configuration of linux_www server

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Introduction: the www server publishes web pages.

2. Prepare: linux virtual machine

3. Steps:

1) Edit the configuration file: vi / etc/httpd/conf/httpd.conf, and remember the DocumentRoot "/ var/www/html" of the configuration file.

2) Edit the web page: vi / var/www/html/index.html, press I and type hello! Press wq to save exit.

3) restart the www service: service httpd restart.

3) Test: the web page accesses the IP address of the linux virtual machine (for example, 192.168.1.1) and sees the browser showing hello! Oh, success.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report