当前位置:网站首页>Experiment with a web server that configures its own content
Experiment with a web server that configures its own content
2022-07-07 12:25:00 【Miracle_ ze】
Experiment with your own configuration web The server
Experiment with your own configuration web The server
1. Step requirements
Step requirements :
1、 Configure the software warehouse and install the software
2、 Modify the configuration file
3、 Stop firewall
4、 Customize the page and start the service
5、 adopt Windows Browser access to the system
2. Configure the software warehouse and install the software
In the terminal /etc/yum.repos.d Create a warehouse under the directory of base.repo
The instructions are as follows
1. Jump to the current position
cd /etc/yum.repos.d
2. Create repository
touch base.repo
3. Edit the contents of the warehouse file
vim base.repo
Type in
[baseos]
name=baseos
baseurl=/mnt/BaseOS
gpgcheck=0
[appstream]
name=appstream
baseurl=/mnt/AppStream
gpgcheck=0
4. Install the software
1. mount
mount /dev/sr0 /mnt
2. Install the software
dnf install httpd -y
When finished, the last line shows complete, The installation is successful
Be careful :
2. Modify the configuration file
1. Successfully installed httpd Post configuration file content
vim /etc/httpd/conf/httpd.conf
Enter the last line mode after entering , Input set nu: According to the line Numbers
Around the 98 That's ok find #ServerName www.example.com:80
Place the cursor on 98 That's ok , stay vim Input in the general mode of yy: Copy the line where the cursor is , And then you type in p: Paste to the next line under the cursor —— This is to prevent forgetting that the original website cannot be modified
Per row # Notation , Only by removing it can it take effect
For its website www.example.com It is amended as follows 0.0.0.0
0.0.0.0 Represents any address
98 #ServerName www.example.com:80
99 ServerName 0.0.0.0:80
2. Configure files , Then install vim
dnf install vim -y
Enter again after completion to view
vim /etc/httpd/conf/httpd.conf
3. Turn off firewall
1. Turn off firewall
systemctl stop firewalld
4. Customize the page and start the service
1. Turn on httpd service
systemctl start httpd
2. Page content input
echo welcome > /var/www/html/index.html
5. adopt Windows Browser access to the system
1. Browser input virtual machine ip Address
tip
Prerequisite :
1、 The warehouse has been created in your system , Only with a warehouse can you download and install packages , So that your system can download packages, you can refer to the following Article reference article link :https://www.cnblogs.com/galsnag/p/13896354.htm
2、 Your system has IP Can pass dhclient obtain ; ifconfig Inquire about
3、 Your system has been installed Vim ; If it doesn't pass yum install vim -y download , perhaps dnf install vim -y
4. vim Inside # The latter means to comment out ;web The default port number of 80
边栏推荐
- Flet tutorial 17 basic introduction to card components (tutorial includes source code)
- 什么是局域网域名?如何解析?
- Camera calibration (2): summary of monocular camera calibration
- 百度数字人度晓晓在线回应网友喊话 应战上海高考英语作文
- 数据库系统原理与应用教程(010)—— 概念模型与数据模型练习题
- Improve application security through nonce field of play integrity API
- wallys/Qualcomm IPQ8072A networking SBC supports dual 10GbE, WiFi 6
- 30. Feed shot named entity recognition with self describing networks reading notes
- [neural network] convolutional neural network CNN [including Matlab source code 1932]
- 全球首堆“玲龙一号”反应堆厂房钢制安全壳上部筒体吊装成功
猜你喜欢
[filter tracking] strapdown inertial navigation pure inertial navigation solution matlab implementation
Introduction and application of smoothstep in unity: optimization of dissolution effect
powershell cs-UTF-16LE编码上线
NPC Jincang was invited to participate in the "aerospace 706" I have an appointment with aerospace computer "national Partner Conference
SQL head injection -- injection principle and essence
Improve application security through nonce field of play integrity API
Tutorial on principles and applications of database system (009) -- conceptual model and data model
数据库系统原理与应用教程(007)—— 数据库相关概念
110. Network security penetration test - [privilege promotion 8] - [windows sqlserver xp_cmdshell stored procedure authorization]
idea 2021中文乱码
随机推荐
Unity map auto match material tool map auto add to shader tool shader match map tool map made by substance painter auto match shader tool
How much does it cost to develop a small program mall?
Epp+dis learning road (2) -- blink! twinkle!
sql-lab (54-65)
SQL Lab (41~45) (continuous update later)
Several methods of checking JS to judge empty objects
Sonar:Cognitive Complexity认知复杂度
File upload vulnerability - upload labs (1~2)
Tutorial on the principle and application of database system (011) -- relational database
About sqli lab less-15 using or instead of and parsing
Solve server returns invalid timezone Go to ‘Advanced’ tab and set ‘serverTimezone’ property manually
Superscalar processor design yaoyongbin Chapter 10 instruction submission excerpt
Explore cloud database of cloud services together
Introduction to three methods of anti red domain name generation
Time bomb inside the software: 0-day log4shell is just the tip of the iceberg
(待会删)yyds,付费搞来的学术资源,请低调使用!
小红书微服务框架及治理等云原生业务架构演进案例
Matlab implementation of Huffman coding and decoding with GUI interface
MATLAB實現Huffman編碼譯碼含GUI界面
How to understand the clothing industry chain and supply chain