当前位置:网站首页>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
边栏推荐
- Introduction and application of smoothstep in unity: optimization of dissolution effect
- 5V串口接3.3V单片机串口怎么搞?
- "Series after reading" my God! It's so simple to understand throttling and anti shake~
- 《通信软件开发与应用》课程结业报告
- Inverted index of ES underlying principle
- RHSA first day operation
- Processing strategy of message queue message loss and repeated message sending
- NGUI-UILabel
- Unity 贴图自动匹配材质工具 贴图自动添加到材质球工具 材质球匹配贴图工具 Substance Painter制作的贴图自动匹配材质球工具
- What is a LAN domain name? How to parse?
猜你喜欢
EPP+DIS学习之路(2)——Blink!闪烁!
College entrance examination composition, high-frequency mention of science and Technology
108.网络安全渗透测试—[权限提升篇6]—[Windows内核溢出提权]
<No. 9> 1805. Number of different integers in the string (simple)
解决 Server returns invalid timezone. Go to ‘Advanced’ tab and set ‘serverTimezone’ property manually
The hoisting of the upper cylinder of the steel containment of the world's first reactor "linglong-1" reactor building was successful
@Bean与@Component用在同一个类上,会怎么样?
Summed up 200 Classic machine learning interview questions (with reference answers)
[shortest circuit] acwing1128 Messenger: Floyd shortest circuit
Visual Studio 2019 (LocalDB)\MSSQLLocalDB SQL Server 2014 数据库版本为852无法打开,此服务器支持782版及更低版本
随机推荐
Several methods of checking JS to judge empty objects
SQL Lab (32~35) contains the principle understanding and precautions of wide byte injection (continuously updated later)
Apache installation problem: configure: error: APR not found Please read the documentation
MATLAB實現Huffman編碼譯碼含GUI界面
How to understand the clothing industry chain and supply chain
Let digital manage inventory
Is it safe to open an account in Ping An Securities mobile bank?
盘点JS判断空对象的几大方法
Rationaldmis2022 advanced programming macro program
Attack and defense world ----- summary of web knowledge points
111. Network security penetration test - [privilege escalation 9] - [windows 2008 R2 kernel overflow privilege escalation]
Completion report of communication software development and Application
sql-lab (54-65)
《通信软件开发与应用》课程结业报告
Rationaldmis2022 array workpiece measurement
【玩转 RT-Thread】 RT-Thread Studio —— 按键控制电机正反转、蜂鸣器
SQL head injection -- injection principle and essence
Cenos openssh upgrade to version 8.4
108.网络安全渗透测试—[权限提升篇6]—[Windows内核溢出提权]
防红域名生成的3种方法介绍