日韩久久久精品,亚洲精品久久久久久久久久久,亚洲欧美一区二区三区国产精品 ,一区二区福利

在陌生Linux環境查看Tomcat服務的方法

系統 2160 0

1.查看Tomcat進程

執行命令 $ps -ef|grep tomcat 你就能找出tomcat占據的進程號,當然這要求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

?

2.查看Tomcat占據的端口

執行命令 $netstat -nat 能列出tomcat占據的端口,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

?

3.查看tomcat所在目錄

執行命令 #find / -name tomcat ,系統將列出所有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

?

在陌生Linux環境查看Tomcat服務的方法


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 郑州市| 深泽县| 百色市| 寿阳县| 淮北市| 宾阳县| 肇源县| 阿拉尔市| 正安县| 张家港市| 苍南县| 雷波县| 克拉玛依市| 赤城县| 东山县| 大埔县| 肇庆市| 武陟县| 旅游| 福州市| 德安县| 合江县| 北安市| 宁德市| 诸暨市| 莎车县| 读书| 团风县| 弥渡县| 调兵山市| 湘潭市| 南部县| 利津县| 班戈县| 仁寿县| 平凉市| 都匀市| 惠安县| 神池县| 陆河县| 巩留县|