2. web.xml
Web应用程序描述文件,都是关于是Web应用程序的配置文件。所有Web应用的 web.xml 文件的父文件。
3. server.xml
server.xml是对tomcat的设置,可以设置端口号,添加虚拟机这些的,是对服务器的设置
4. tomcat-users.xml
Tomcat Manager是Tomcat自带的、用于对Tomcat自身以及部署在Tomcat上的应用进行管理的web应用。Tomcat是Java领域使用最广泛的服务器之一,因此Tomcat Manager也成为了使用非常普遍的功能应用。
Tomcat Manager的用户配置是在Tomcat安装目录/conf/tomcat-users.xml文件中进行管理的
运维常用配置文件讲解
作为运维用的最多的还是server.xml,我们先来探讨这个文件
vim server.xml
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
distributed under the License is distributed on an "AS IS" BASIS,
limitations under the License.
-->
### 上面一堆说的是你可以通过上买的那个网址获得授权的副本, 与咱们没关系,就相当于个声明
<Server port="8005" shutdown="SHUTDOWN">
-->
#### 关闭使用的端口
<!--APR library loader. Documentation at /docs/apr.html -->
<Listener className="org.apache.catalina.core.JasperListener" />
<!-- Global JNDI resources
Documentation at /docs/jndi-resources-howto.html
-->
UserDatabaseRealm to authenticate users
-->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
pathname="conf/tomcat-users.xml" />
Documentation at /docs/config/service.html
-->
<Service name="Catalina">
### 定义service组件,用来关联executor和engine
<!--
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
maxThreads="150" minSpareThreads="4"/>
and responses are returned. Documentation at :
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
documentation -->
<!--
clientAuth="false" sslProtocol="TLS" />
-->
on to the appropriate Host (virtual host).
<Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
-->
<Engine name="Catalina" defaultHost="www.zmkjedu.com">
<!--For clustering, please take a look at documentation at:
/docs/cluster-howto.html (simple how to)
/docs/config/cluster.html (reference documentation) -->
-->
via a brute-force attack -->
<Realm className="org.apache.catalina.realm.LockOutRealm">
resources under the key "UserDatabase". Any edits
available for use by the Realm. -->
resourceName="UserDatabase"/>
</Realm>
<Host name="www.zmkjedu.com" appBase="/web"
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
distributed under the License is distributed on an "AS IS" BASIS,
limitations under the License.
-->
<Server port="8005" shutdown="SHUTDOWN">
-->
<!--APR library loader. Documentation at /docs/apr.html -->
<Listener className="org.apache.catalina.core.JasperListener" />
<!-- Global JNDI resources
Documentation at /docs/jndi-resources-howto.html
-->
UserDatabaseRealm to authenticate users
-->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
pathname="conf/tomcat-users.xml" />
Documentation at /docs/config/service.html
-->
<Service name="Catalina">
<!--
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
126 unpackWARs="true" autoDeploy="true">
127
128 <!-- SingleSignOn valve, share authentication between we b applications
129 Documentation at: /docs/config/valve.html -->
130 <!--
131 <Valve className="org.apache.catalina.authenticator.Sing leSignOn" />
132 -->
133
134 <!-- Access log processes all example.
135 Documentation at: /docs/config/valve.html
136 Note: The pattern used is equivalent to using patte rn="common" -->
137 <Valve className="org.apache.catalina.valves.AccessLogVa lve" directory="logs"
138 prefix="localhost_access_log." suffix=".txt"
139 pattern="%h %l %u %t "%r" %s %b" />
140
141 </Host>
142 </Engine>
143 </Service>
144 </Server>
1. 整体结构
**自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。**
**深知大多数Linux运维工程师,想要提升技能,往往是自己摸索成长或者是报班学习,但对于培训机构动则几千的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!**
**因此收集整理了一份《2024年Linux运维全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。**
![img](https://img-blog.csdnimg.cn/img_convert/1af49d2195d1249eecc8f298e12ee9ab.png)
![img](https://img-blog.csdnimg.cn/img_convert/41001c4854605dd8057b42156f17ef41.png)
![img](https://img-blog.csdnimg.cn/img_convert/7a8b7c1567efa34857b743ff218e4b0a.png)
![img](https://img-blog.csdnimg.cn/img_convert/35760ce7345e6942147e4c4d6f65eb5b.png)
![img](https://img-blog.csdnimg.cn/img_convert/6259d5e5e23d38e30f80ca8b97700fa2.png)
**既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上Linux运维知识点,真正体系化!**
**由于文件比较大,这里只是将部分目录大纲截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且后续会持续更新**
**如果你觉得这些内容对你有帮助,可以添加VX:vip1024b (备注Linux运维获取)**
![img](https://img-blog.csdnimg.cn/img_convert/d53551098d1394a4b0425c96c06494a6.jpeg)
### 最后的话
最近很多小伙伴找我要Linux学习资料,于是我翻箱倒柜,整理了一些优质资源,涵盖视频、电子书、PPT等共享给大家!
### 资料预览
给大家整理的视频资料:
![](https://img-blog.csdnimg.cn/img_convert/35519b4eaa28cfb80dd19852b485917b.png)
给大家整理的电子书资料:
![](https://img-blog.csdnimg.cn/img_convert/b99fee1e48975818511e73c286710421.png)
**如果本文对你有帮助,欢迎点赞、收藏、转发给朋友,让我有持续创作的动力!**
**一个人可以走的很快,但一群人才能走的更远。不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎扫码加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!**
![img](https://img-blog.csdnimg.cn/img_convert/0ce86e9a428f8dd2d39791535204b19f.jpeg)
整理的视频资料:
[外链图片转存中...(img-ty0mncEM-1713036646176)]
给大家整理的电子书资料:
[外链图片转存中...(img-dbGcDPdj-1713036646176)]
**如果本文对你有帮助,欢迎点赞、收藏、转发给朋友,让我有持续创作的动力!**
**一个人可以走的很快,但一群人才能走的更远。不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎扫码加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!**
[外链图片转存中...(img-e7jrrUfl-1713036646176)]