当前位置:网站首页>Customize the web service configuration file
Customize the web service configuration file
2022-07-07 12:25:00 【Miracle_ ze】
customized web Service profile
1. System mounting and installation web service
Before mounting, you should write down the warehouse
Mount command :
mount /dev/sr0 /mnt
install web service 【 Use httpd】
dnf install httpd -y
-y: Default OK , In the installation, there is no need to enter y
2. establish web Directory files and added content of web pages
1. Create directory file
mkdir /www/130 -p
130: File name , whatever
-p: Create with parent directory
2. Add content
echo haha > /www/130/index.html
3. Edit profile content
Go to configuration file :
vim /etc/httpd/conf.d/host.conf
Add content 【 Add modules 】:
<directory /www>
allowoverride
require all granted
</directory>
<virtualhost 192.168.226.130:80>
documentroot /www/130
servername 192.168.226.131
</virtualhost>
4. restart httpd service 、 close linux Permissions and access firewall
1. restart httpd service
systemctl restart httpd
restart And start Different :restart Is to retrieve information ,start Is to start the service to obtain file information
2. close Linux jurisdiction
setenforce 0
effect : Delete /www/130 Of documents Linux jurisdiction
3. Turn off firewall
systemctl stop firewalld
effect : in order to Windows Able to access the configured website web Content
边栏推荐
- UP Meta—Web3.0世界创新型元宇宙金融协议
- When OSPF specifies that the connection type is P2P, it enables devices on both ends that are not in the same subnet to Ping each other
- Learning and using vscode
- idea 2021中文乱码
- 2022年在启牛开华泰的账户安全吗?
- sql-lab (54-65)
- [data clustering] realize data clustering analysis based on multiverse optimization DBSCAN with matlab code
- Xiaohongshu microservice framework and governance and other cloud native business architecture evolution cases
- ES底层原理之倒排索引
- Zero shot, one shot and few shot
猜你喜欢
Attack and defense world - PWN learning notes
Solve server returns invalid timezone Go to ‘Advanced’ tab and set ‘serverTimezone’ property manually
EPP+DIS学习之路(1)——Hello world!
111. Network security penetration test - [privilege escalation 9] - [windows 2008 R2 kernel overflow privilege escalation]
Tutorial on principles and applications of database system (009) -- conceptual model and data model
About web content security policy directive some test cases specified through meta elements
[data clustering] realize data clustering analysis based on multiverse optimization DBSCAN with matlab code
Fleet tutorial 14 basic introduction to listtile (tutorial includes source code)
idea 2021中文乱码
AirServer自动接收多画面投屏或者跨设备投屏
随机推荐
数据库系统原理与应用教程(010)—— 概念模型与数据模型练习题
Unity中SmoothStep介绍和应用: 溶解特效优化
HCIA复习整理
112.网络安全渗透测试—[权限提升篇10]—[Windows 2003 LPK.DDL劫持提权&msf本地提权]
Hi3516全系统类型烧录教程
wallys/Qualcomm IPQ8072A networking SBC supports dual 10GbE, WiFi 6
H3C HCl MPLS layer 2 dedicated line experiment
Common locking table processing methods in Oracle
Is it safe to open an account in Ping An Securities mobile bank?
Inverted index of ES underlying principle
@What happens if bean and @component are used on the same class?
SQL head injection -- injection principle and essence
EPP+DIS学习之路(2)——Blink!闪烁!
<No. 9> 1805. Number of different integers in the string (simple)
AirServer自动接收多画面投屏或者跨设备投屏
Completion report of communication software development and Application
Processing strategy of message queue message loss and repeated message sending
[neural network] convolutional neural network CNN [including Matlab source code 1932]
数据库系统原理与应用教程(009)—— 概念模型与数据模型
Mise en œuvre du codage Huffman et du décodage avec interface graphique par MATLAB