tomcat linux server deployment website

1. Download the corresponding tar package

https://tomcat.apache.org/download-10.cgi

2. Upload the tar package to the server

3. Unzip the tar package

tar -zxvf apache-tomcat-10.0.0-M7.tar

4. Modify the relevant configuration

# 进入配置目录
cd conf

# 修改配置文件
vi server.xml

# 原纪录
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>
# 更改8080->80
<Connector connectionTimeout="20000" port="80" protocol="HTTP/1.1" redirectPort="8443"/>

# tomcat 文件路径
<Context docBase="/home/zolty/file" path="file"/>

# 插入
按 i

# 保存
按 esc 键入 :wq 回车

5. Start the tomcat service

# 进入启动目录
cd bin

# 启动tomcat
sh startup.sh

 

Guess you like

Origin blog.csdn.net/qq_41854291/article/details/108285104