工作中常用到的命令

时间:2022-12-10 16:03:17

linux zip 和 unzip

  http://blog.csdn.net/shenyunsese/article/details/17556089

linux 查看日志

  http://blog.chinaunix.net/uid-15463753-id-2943532.html

linux 删除

  http://www.jb51.net/LINUXjishu/179430.html

linux查看末尾日志(tail -f)

  http://www.jb51.net/LINUXjishu/151044.html

  docker logs -f --tail=1000 CONTAINER ID 

利用JMX来监控大部分java应用

  http://blog.csdn.net/arjick/article/details/6268376

linux 查看web工程的调用栈

  1. ps -aux指令:例如 ps -aux | grep 'tomcat-user', 查看工程名为 tomcat-user的web工程所有信息。

root      64337  0.9 10.7 10044476 1690360 ?    Sl   19:12   1:57 /usr/bin/java -Djava.util.logging.config.file=/usr/local/tomcat-user/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/usr/local/tomcat-user/endorsed -classpath /usr/local/tomcat-user/bin/bootstrap.jar:/usr/local/tomcat-user/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/tomcat-user -Dcatalina.home=/usr/local/tomcat-user -Djava.io.tmpdir=/usr/local/tomcat-user/temp org.apache.catalina.startup.Bootstrap start
root 106650 0.0 0.0 112664 964 pts/0 S+ 22:34 0:00 grep --color=auto tomcat-user

  http://blog.csdn.net/hanner_cheung/article/details/6081440

  2. jsstack指:jstack pid

  http://guafei.iteye.com/blog/1815222