tomcat管理界面
鏈接地址
xxxxx//manager/status 運行狀態(tài)監(jiān)控
/manager/html Manger APP
/host-manager/html host-manager (進不去,看資料說得時在webapps下面得contex.xml 中限制了IP得訪問)
please examine the file conf/tomcat-users.xml in your installation
For example, to add the manager-gui role to a user named tomcat with a password of s3cret
<role rolename="manager-gui"/>
<user username="tomcat" password="s3cret" roles="manager-gui"/>
重新啟動tomcat
安裝
先解壓安裝包
tar xzvf apache-tomcat-9.0.0.M13.tar.gz
mv xxxx new name // 修改新名字
tomcat1占用得四個端口
6667 6666 6665 6664
修改端口
%TOMCAT_HOME%/conf/server.xml 是tomcat服務(wù)配置文件,里面有很多配置項
<Server port="8005" shutdown="SHUTDOWN">
接受服務(wù)器關(guān)閉指令的端口號,我們叫關(guān)閉指令端口.
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
http請求處理端口,我們在網(wǎng)頁上輸入的普通url地址包含的端口就是他 .這個端口叫http端口.
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
https請求的處理端口.這個端口叫https端口.
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
接收AJP協(xié)議的處理端口.這個端口叫ajp端口.
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
https請求的處理端口.
修改全局變量
在/etc/profile.d/新加一個腳本tomcat9_payserver.sh
增加export CATALINA_HOME1=/opt/tomcat9_payserver
然后進入復(fù)制的那一份tomcat/bin,打開catalina.sh
在最上面注釋下面加入
export CATALINA_HOME=$CATALINA_HOME1
達到替換效果,然后啟動即可