Tomcat

Tomcat 下面内容基于 Tomcat9 服务器配置 conf/server.xml 文件 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 <?xml version="1.0" encoding="UTF-8"?> <Server port="8095" shutdown="SHUTDOWN"> <Listener className="org.apache.catalina.startup.VersionLoggerListener" /> <!-- Security listener. Documentation at /docs/config/listeners.html <Listener className="org.apache.catalina.security.SecurityListener" /> --> <!-- APR connector and OpenSSL support using Tomcat Native --> <Listener className="org.apache.catalina.core.AprLifecycleListener" /> <!-- OpenSSL support using FFM API from Java 22 --> <!-- <Listener className="org.apache.catalina.core.OpenSSLLifecycleListener" /> --> <!-- Prevent memory leaks due to use of particular java/javax APIs--> <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /> <!-- Global JNDI resources Documentation at /docs/jndi-resources-howto.html --> <GlobalNamingResources> <!-- Editable user database that can also be used by UserDatabaseRealm to authenticate users --> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> </GlobalNamingResources> <!-- A "Service" is a collection of one or more "Connectors" that share a single "Container" Note: A "Service" is not itself a "Container", so you may not define subcomponents such as "Valves" at this level. Documentation at /docs/config/service.html --> <Service name="Catalina"> <!--The connectors can use a shared executor, you can define one or more named thread pools--> <!-- <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" maxThreads="150" minSpareThreads="4"/> --> <!-- 启动端口 --> <Connector port="8094" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" maxParameterCount="1000" /> <Engine name="Catalina" defaultHost="localhost"> <Realm className="org.apache.catalina.realm.LockOutRealm"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> </Realm> <!-- autoDeploy="false" 关闭热部署 --> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="false"> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t &quot;%r&quot; %s %b" /> </Host> </Engine> </Service> </Server> 服务器调优 setenv.sh setenv.sh 放在 Tomcat/bin/ 目录下,启动 catalina.sh 会自动加载,用于配置 JVM 参数、环境变量、端口、编码等。 ...

2026-06-30 · 2 分钟 · lei

常用脚本和配置

包含笔记自动更新部署脚本(如 autorun.sh 等)、Python 和 Java 程序启动脚本,以及开机自启配置和 Windows 启动脚本,用于自动化部署与运行管理。

2025-04-26 · 7 分钟 · lei

模型简易部署

模型简易部署 vllm部署模型 vllm可以兼容部署基于 Transformer 架构的模型 环境准备 本地配置:Ubuntu24.04、Python12、RTX3070 安装相关软件包 1 2 3 apt install python3.12-venv apt install git apt install nvidia-cuda-toolkit 新建python虚拟环境 ...

2025-03-23 · 5 分钟 · lei

工作杂项记录

oracle锁表、oracle导入导出、weblogic打补丁、Linux扩容swap分区、修改系统时间

2024-09-03 · 3 分钟 · lei

Linux

Linux 系统管理 echo echo命令用于在终端输出字符串或变量提取后的值 命令格式:echo [字符串| $变量] 示例: 1 2 3 4 5 6 7 8 9 10 11 export name="TOM" ## shell环境中定义一个临时变量name echo $name ## 输出 ## > 输出重定向到文件,如果已存在会覆盖文件内容,不存在则新建 echo "This is a test text." > test.txt ## >> 追加重定向,不会覆盖已存在内容 echo "This is a test text." >> test.txt ## 输出当前工作目录 echo `pwd` echo $(pwd) date date命令用于显示和设置系统的时间和日期 ...

2022-12-07 · 20 分钟 · lei

nginx

nginx 简介 基于C语言开发开源、高性能web服务器和反向代理服务器 反向代理:接受客户端请求,转发请求到真实服务器处理,将处理结果返回客户端 正向代理:访问外部资源时,通过代理服务器去访问 ...

2021-05-14 · 12 分钟 · lei

Docker

Docker Docker概述 容器与虚拟机 传统虚拟机,虚拟化出一套硬件,运行一个完整的操作系统,然后在这个系统上运行软件 容器内的应用直接运行在宿主机上,容器没有内核,也没有虚拟化硬件,所以轻便了 每个容器相互隔离,有属于自己的文件系统,互不影响 DevOps(开发、运维) 应用更快的交付和部署 ...

2020-11-07 · 17 分钟 · lei