国产成人v爽在线免播放观看,日韩欧美色,久久99国产精品久久99软件,亚洲综合色网站,国产欧美日韩中文久久,色99在线,亚洲伦理一区二区

學(xué)習(xí)啦>學(xué)習(xí)電腦>操作系統(tǒng)>Linux教程>

linux查看tomcat端口命令

時間: 佳洲1085 分享

  linux下tomcat服務(wù)是經(jīng)常進行操作的一個服務(wù),那我們要怎么查看tomcat端口信息呢?下面由學(xué)習(xí)啦小編為大家整理了linux查看tomcat端口命令的相關(guān)知識,希望對大家有幫助!

  linux查看tomcat端口命令詳解

  1.linux查看Tomcat端口命令

  執(zhí)行命令$netstat -nat能列出tomcat占據(jù)的端口,8080及其它類似的端口是需要注意的。這命令也需要Tomcat啟動了。

  netstat -nat

  Active Internet connections (servers and established)

  Proto Recv-Q Send-Q Local Address Foreign Address State

  tcp 0 0 0.0.0.0:60000 0.0.0.0:* LISTEN

  tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN

  tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN

  tcp 0 0 0.0.0.0:5801 0.0.0.0:* LISTEN

  tcp 0 0 0.0.0.0:523 0.0.0.0:* LISTEN

  tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN

  tcp 0 0 0.0.0.0:877 0.0.0.0:* LISTEN

  tcp 0 0 0.0.0.0:51343 0.0.0.0:* LISTEN

  tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN

  tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN

  tcp 0 0 0.0.0.0:785 0.0.0.0:* LISTEN

  tcp 0 0 0.0.0.0:946 0.0.0.0:* LISTEN

  tcp 0 0 0.0.0.0:5811 0.0.0.0:* LISTEN

  tcp 0 0 0.0.0.0:5911 0.0.0.0:* LISTEN

  tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN

  tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN

  tcp 0 0 9.47.228.61:443 0.0.0.0:* LISTEN

  tcp 0 0 0.0.0.0:6011 0.0.0.0:* LISTEN

  tcp 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN

  tcp 0 0 9.47.228.61:60000 9.47.228.61:33664 ESTABLISHED

  tcp 0 0 9.47.228.61:60000 9.47.228.61:53605 ESTABLISHED

  tcp 0 0 9.47.228.61:60000 9.47.228.61:51221 ESTABLISHED

  補充:linux查看tomcat進程命令

  2.查看Tomcat進程

  執(zhí)行命令$ps -ef|grep tomcat 你就能找出tomcat占據(jù)的進程號,當(dāng)然這要求tomcat啟動了。

  # ps -ef | grep tomcat

  root 4637 1 0 Aug08 ? 00:02:01 /opt/ibm/java-x86_64-60/bin/java -Djava.util.logging.config.file=/opt/apache-tomcat-6.0.32/conf/logging.properties -Dorg.apache.geronimo.jaxws.builder.useSimpleFinder=true -Xms1000m -Xmx1500m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/opt/apache-tomcat-6.0.32/endorsed -classpath /opt/apache-tomcat-6.0.32/bin/bootstrap.jar -Dcatalina.base=/opt/apache-tomcat-6.0.32 -Dcatalina.home=/opt/apache-tomcat-6.0.32 -Djava.io.tmpdir=/opt/apache-tomcat-6.0.32/temp org.apache.catalina.startup.Bootstrap start

  root 30152 27548 0 01:32 pts/0 00:00:00 grep tomcat

  3.查看tomcat所在目錄

  執(zhí)行命令#find / -name tomcat,系統(tǒng)將列出所有tomcat為名的目錄,進入目錄后就能查清楚了。同理可以用find / -name startup.sh去找tomcat啟動文件。

  # find / -name tomcat

  /home/rttsInstall/temp/repository/org/apache/geronimo/ext/tomcat

  /home/rttsInstall/temp/repository/org/apache/tomcat

  /root/.ivy2/cache/tomcat

  find: /proc/30540: No such file or directory

  /ntcir/home/rttsInstall/packages/rtts/repository/org/apache/geronimo/ext/tomcat

  /ntcir/home/rttsInstall/packages/rtts/repository/org/apache/tomcat

  /ntcir/home/hwan/tomcat

3628783