netstat -tulnp | grep java | sed -n '1'p | awk '{print $4}' |awk -F ':' '{print $4}'
取得当前tomcat正在使用的端口号
原创
©著作权归作者所有:来自51CTO博客作者ziwenzhou的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
你的智能汽车正在窥视你!
你的隐私,价值千万
数据安全 数据泄露 数据窃取 智能汽车 安全测试 -
Linux获取Tomcat端口号
下面这段shell脚本可以找出Tomcat的进程ID,然后,通过一个循环kill掉所有的Tomcat进程. #
java shell awk tomcat Server -
tomcat端口号
tomcat服务器的默认端口号是8080
tomcat服务器 端口号