随笔分类 -  linux

摘要:kill pid 在kill进程的同时,会将包删掉该进程所在webapps目录下的文件夹,如iexpense文件夹 kill -9 pid 会强制删掉进程,但是不是删掉该进程所在webapps目录下的文件夹,如iexpense文件夹不会被删除 阅读全文
posted @ 2016-07-27 11:21 wenlj2000 阅读(209) 评论(0) 推荐(0)
摘要:范例一:将整个 /etc 目录下的文件全部打包成为 /tmp/etc.tar[root@linux ~]# tar -cvf /tmp/etc.tar /etc <==仅打包,不压缩![root@linux ~]# tar -zcvf /tmp/etc.tar.gz /etc <==打包后,以 gz 阅读全文
posted @ 2016-07-27 11:18 wenlj2000 阅读(601) 评论(0) 推荐(0)
摘要:1. 查看linux中某个端口(port)是否被占用(netstat,lsof) [root@caiwutest ~]# netstat -tunlp | grep 8080tcp 0 0 :::8080 :::* LISTEN 4281/java 2)查看某一端口的占用情况: lsof -i:端口 阅读全文
posted @ 2016-06-28 17:21 wenlj2000 阅读(209) 评论(0) 推荐(0)