当前位置:网站首页>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
边栏推荐
- Superscalar processor design yaoyongbin Chapter 9 instruction execution excerpt
- Niuke website
- 108.网络安全渗透测试—[权限提升篇6]—[Windows内核溢出提权]
- Improve application security through nonce field of play integrity API
- 【滤波跟踪】捷联惯导纯惯导解算matlab实现
- SQL lab 21~25 summary (subsequent continuous update) (including secondary injection explanation)
- Common locking table processing methods in Oracle
- Completion report of communication software development and Application
- Tutorial on the principle and application of database system (011) -- relational database
- 如何理解服装产业链及供应链
猜你喜欢
NPC Jincang was invited to participate in the "aerospace 706" I have an appointment with aerospace computer "national Partner Conference
SQL lab 26~31 summary (subsequent continuous update) (including parameter pollution explanation)
Static comprehensive experiment
EPP+DIS学习之路(2)——Blink!闪烁!
112. Network security penetration test - [privilege promotion article 10] - [Windows 2003 lpk.ddl hijacking rights lifting & MSF local rights lifting]
Solutions to cross domain problems
【滤波跟踪】捷联惯导纯惯导解算matlab实现
VSCode的学习使用
Review and arrangement of HCIA
Learning and using vscode
随机推荐
关于 Web Content-Security-Policy Directive 通过 meta 元素指定的一些测试用例
Typescript interface inheritance
108. Network security penetration test - [privilege escalation 6] - [windows kernel overflow privilege escalation]
百度数字人度晓晓在线回应网友喊话 应战上海高考英语作文
RHSA first day operation
Mise en œuvre du codage Huffman et du décodage avec interface graphique par MATLAB
ES底层原理之倒排索引
108.网络安全渗透测试—[权限提升篇6]—[Windows内核溢出提权]
In the small skin panel, use CMD to enter the MySQL command, including the MySQL error unknown variable 'secure_ file_ Priv 'solution (super detailed)
SQL lab 11~20 summary (subsequent continuous update) contains the solution that Firefox can't catch local packages after 18 levels
Introduction and application of smoothstep in unity: optimization of dissolution effect
Introduction to three methods of anti red domain name generation
Simple network configuration for equipment management
111. Network security penetration test - [privilege escalation 9] - [windows 2008 R2 kernel overflow privilege escalation]
Attack and defense world ----- summary of web knowledge points
让数字管理好库存
解密GD32 MCU产品家族,开发板该怎么选?
VSCode的学习使用
Upgrade from a tool to a solution, and the new site with praise points to new value
Time bomb inside the software: 0-day log4shell is just the tip of the iceberg