• 关于tomcat中的三个端口的作用及其相关细节


    【一】端口内容

    tomcat的端口号相关信息:

    Tomcat admin port——管理端口,允许你远程配置tomcat

    HTTP——正常的http协议

    AJP——Apache JServ Protocol,用来传输二进制的

     

    【二】端口作用

    Tomcat admin port——用于

    HTTP——用于监听浏览器发送的请求. 设置成80 后可以直接使用http://localhost 访问

    AJP——用于监听其他服务器转发过来的请求.

    【三】端口的配置(如果使用多个Tomcat是需要配置的)

    每个Tomcat需要一套端口。

    如果多个Tomcat安装在同一台操作系统上,需要分配3组3个端口,共9个不同的端口。

    一、常见错误:

    2、非http端口占用

    Several ports (8005, 8009) required by Tomcat 6.x are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

    翻译:Tomcat 6需要几个端口(8005,8009)。x已经在使用了。服务器可能已经在另一个进程中运行,或者系统进程可能正在使用该端口。要启动此服务器,您需要停止其他进程或更改端口号。

    修改端口:在dos下,输入:netstat -ano

    解决:修改端口就可以了

    2、http端口占用  

    Port 80 required by Tomcat 6.x is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

    翻译:Tomcat 6需要80端口。x已经在使用了。服务器可能已经在另一个进程中运行,或者系统进程可能正在使用该端口。要启动此服务器,您需要停止其他进程或更改端口号。

    解决:修改端口号可以了

    3、启动成功的标志:

    Server startup in 24311 ms
    服务器启动在24311毫秒

    参考:端口号大全

  • 相关阅读:
    MySQL的存储引擎
    MySQL的索引及执行计划
    MySQL的SQL基础应用
    MySQL基础入门
    代码质量检测SonarQube
    Jenkins持续集成
    Git版本控制及gitlab私有仓库
    jumpserver跳板机
    Keepalived高可用服务
    well-known file is not secure
  • 原文地址:https://www.cnblogs.com/zhangchs/p/11202070.html
Copyright © 2020-2023  润新知