tomcat怎么修改默认端口?
时间:2023-07-04 04:49:59
tomcat怎么修改默认端口?tomcat管理和控制平台、安全域管理和tomcat阀等功能,其本身就包含了一个http服务器。tomcat默认端口8080,那要怎么修改默认的端口,改成我们自己设置的端口呢,一起来学习下详细的步骤吧。
tomcat怎么修改默认端口?
1、打开tomcat安装路径,进去conf目录,打开server.xml文件。
![tomcat怎么修改默认端口?](https://img.aspxhome.com/file/2023/4/a311104_1.jpg)
2、打开server.xml文件之后,可以看到默认是8080端口。
![tomcat怎么修改默认端口?](https://img.aspxhome.com/file/2023/4/a311104_2.jpg)
3、您可以自行修改。
![tomcat怎么修改默认端口?](https://img.aspxhome.com/file/2023/4/a311104_3.jpg)
4、如果想同时使用多个tomcat的话,还需要改动8009端口,这里将端口改为18009
![tomcat怎么修改默认端口?](https://img.aspxhome.com/file/2023/4/a311104_4.jpg)
5、改动8005端口,这里将端口改为18005
![tomcat怎么修改默认端口?](https://img.aspxhome.com/file/2023/4/a311104_5.jpg)
![tomcat怎么修改默认端口?](https://img.aspxhome.com/file/2023/4/a311104_6.jpg)
6、重启tomcat之后,在浏览器输入“http://localhost:9999/”,打开了tomcat,代表设置成功。
标签:tomcat修改端口号,tomcat,tomcat修改默认端口
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
搜狗输入法自动升级怎么关闭?搜狗输入法自动升级关闭方法
2022-01-23 04:25:48
![](https://img.aspxhome.com/file/2023/7/a330545_0s.jpg)
火狐浏览器怎么阻止弹出窗口?火狐浏览器阻止弹出窗口方法
2022-12-31 17:10:28
![](https://img.aspxhome.com/file/2023/30/a268995_0s.png)
windows hello在哪里设置?windows hello的设置方法
2022-06-08 07:22:46
![](https://img.aspxhome.com/file/2023/6/a321129_0s.png)
在wps表格中怎样使用语音功能
2023-05-07 20:35:33
谷歌浏览器怎么关闭摄像头定位等信息? Chrome关闭网站定位的方法
2022-03-20 10:10:00
![](https://img.aspxhome.com/file/2023/30/a269198_0s.jpg)
Win10任务栏假死怎么解决?Win10任务栏假死真正解决办法
2022-03-20 01:26:06
![](https://img.aspxhome.com/file/2023/1/a280824_0s.png)
winsxs是什么文件夹?winsxs可以删除吗?
2023-10-24 09:54:43
![](https://img.aspxhome.com/file/2023/1/a271995_0s.jpg)
鲁大师怎么检测磁盘性能?鲁大师磁盘性能检测教程
2023-12-13 02:10:50
![](https://img.aspxhome.com/file/2023/7/a330120_0s.jpg)
Excel小技巧:双击的妙用
2022-04-27 05:34:58
Word中在网页进行页眉页脚的打印技巧
2023-11-28 05:32:23
word2019中设置图片的亮度和样式具体的操作方法
2022-11-28 22:56:29
![](https://img.aspxhome.com/file/2023/1/35181_0s.jpg)
Excel2016怎么对数字加密?Excel2016数字批量加密教程
2022-01-23 12:17:02
![](https://img.aspxhome.com/file/2023/3/40653_0s.jpg)
在Win10上如何快速查看Windows商店的购买记录?
2023-01-02 15:49:09
![](https://img.aspxhome.com/file/2023/28/a248281_0s.png)
ntoskrnl.exe是什么进程?Win8系统ntoskrnl.exe进程介绍
2023-11-14 21:28:11
![](https://img.aspxhome.com/file/2023/5/a319385_0s.jpg)
如何对excel2019成绩汇总表中的数学字段按列排序
2022-04-01 07:00:12
![](https://img.aspxhome.com/file/2023/7/a140217_0s.jpg)
iTunes升级iOS出现未知错误3004解决方法
2022-08-07 04:33:13
Win10电脑hosts权限无法添加怎么办?
2023-12-26 17:06:41
![](https://img.aspxhome.com/file/2023/26/a222320_0s.png)
如何利用PPT绘制四象限饼图 实例教程
2023-08-28 15:18:43
![](https://img.aspxhome.com/file/2023/10/a352525_0s.jpg)
Windows 10七大版本区别详解
2022-10-09 16:00:50
![](https://img.aspxhome.com/file/2023/3/a298694_0s.jpg)
Win7系统如何设置共享
2022-02-08 15:32:33
![](https://img.aspxhome.com/file/2023/29/a261951_0s.jpg)