当前位置:网站首页>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
边栏推荐
- Rationaldmis2022 array workpiece measurement
- 关于 Web Content-Security-Policy Directive 通过 meta 元素指定的一些测试用例
- Unity 贴图自动匹配材质工具 贴图自动添加到材质球工具 材质球匹配贴图工具 Substance Painter制作的贴图自动匹配材质球工具
- Static comprehensive experiment
- Tutorial on principles and applications of database system (007) -- related concepts of database
- 消息队列消息丢失和消息重复发送的处理策略
- Superscalar processor design yaoyongbin Chapter 8 instruction emission excerpt
- RHSA first day operation
- SQL lab 11~20 summary (subsequent continuous update) contains the solution that Firefox can't catch local packages after 18 levels
- 从工具升级为解决方案,有赞的新站位指向新价值
猜你喜欢

File upload vulnerability - upload labs (1~2)

浅谈估值模型 (二): PE指标II——PE Band

全球首堆“玲龙一号”反应堆厂房钢制安全壳上部筒体吊装成功

<No. 8> 1816. Truncate sentences (simple)
![[neural network] convolutional neural network CNN [including Matlab source code 1932]](/img/65/cf9d0a3f46a581dc8f28de2e28779d.png)
[neural network] convolutional neural network CNN [including Matlab source code 1932]

(待会删)yyds,付费搞来的学术资源,请低调使用!

The left-hand side of an assignment expression may not be an optional property access.ts(2779)

2022 8th "certification Cup" China University risk management and control ability challenge

金融数据获取(三)当爬虫遇上要鼠标滚轮滚动才会刷新数据的网页(保姆级教程)

Introduction and application of smoothstep in unity: optimization of dissolution effect
随机推荐
[data clustering] realize data clustering analysis based on multiverse optimization DBSCAN with matlab code
110.网络安全渗透测试—[权限提升篇8]—[Windows SqlServer xp_cmdshell存储过程提权]
Flet tutorial 17 basic introduction to card components (tutorial includes source code)
Sonar:Cognitive Complexity认知复杂度
zero-shot, one-shot和few-shot
wallys/Qualcomm IPQ8072A networking SBC supports dual 10GbE, WiFi 6
"Series after reading" my God! It's so simple to understand throttling and anti shake~
即刻报名|飞桨黑客马拉松第三期盛夏登场,等你挑战
解密GD32 MCU产品家族,开发板该怎么选?
<No. 8> 1816. Truncate sentences (simple)
盘点JS判断空对象的几大方法
EPP+DIS学习之路(2)——Blink!闪烁!
Xiaohongshu microservice framework and governance and other cloud native business architecture evolution cases
千人规模互联网公司研发效能成功之路
SQL Lab (36~40) includes stack injection, MySQL_ real_ escape_ The difference between string and addslashes (continuous update after)
金融数据获取(三)当爬虫遇上要鼠标滚轮滚动才会刷新数据的网页(保姆级教程)
Summed up 200 Classic machine learning interview questions (with reference answers)
What is a LAN domain name? How to parse?
30. Feed shot named entity recognition with self describing networks reading notes
VSCode的学习使用