- 浏览: 285989 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (298)
- Tomcat (3)
- ZooKeeper (1)
- Maven (11)
- opensource (1)
- DataBase (5)
- UML (8)
- linux (87)
- Java (32)
- 算法 (3)
- Redis (1)
- HBase (2)
- 产品 (1)
- 模板引擎 (1)
- Eclipse (10)
- JUnit (5)
- Log4j (8)
- XML (2)
- JSON (1)
- SpringMVC (23)
- Spring (24)
- TCP/IP (4)
- Windows (10)
- Web Service (1)
- 源码版本管理 (1)
- Word (1)
- Test (1)
- Mybatis (7)
- CentOS (2)
- 多线程 (2)
- Web (7)
- Servlet (3)
- JavaWeb (4)
- MySQL (7)
- 汇编语言 (2)
- linux Shell (4)
- GIT (4)
- Python (1)
- 并发 (4)
- 编程通用 (1)
- JavaScript (1)
- 异常 (3)
- 自动化部署 (1)
- 大数据 (1)
- hive (2)
- 文本编辑器 (2)
- MINA (0)
- intellij IDEA (9)
- masm (0)
- blockchain (1)
- docker (2)
- IDEA (0)
- GO (3)
- nginx (1)
- springBoot (3)
- Websocket (2)
- macOS (1)
最新评论
-
woodding2008:
ss –pl 可以查看监听方式启动的端口以及pid
根据端口查PID,根据PID查进程名称 -
masuweng:
恩很试用,也很常用。
linux 常用命令
grep -v <**> <filename> 表示显示所有在文件filename中与**不匹配的行
一般用在看进程情况,
ps -ef | grep httpd | grep -v grep
防止列表出grep的进程号。
[root@master logs]# ps -ef|grep java|grep -v grep
root 10909 1 7 10:54 pts/3 00:00:57 /export/servers/jdk1.6.0_25/bin/java
发表评论
-
libssl.so.10: cannot open shared object file: No such file or directory
2018-08-15 14:49 3884yum 安装不管用了,先执 ... -
sed 字符串替换
2018-04-03 19:15 787https://www.cnblogs.com/linux- ... -
连接到Hyperledger的docker容器内部
2018-03-12 21:02 852=============================== ... -
apt-get常用命令及工作原理
2018-03-12 20:17 483http://blog.csdn.net/mosquito_z ... -
Linux Shell 通配符、转义字符、元字符、特殊字符
2017-01-13 18:50 1665一、Linux shell通配符(wildcard) 通配 ... -
Linux单机TCP并发连接
2016-12-28 14:11 913http://blog.csdn.net/kobejayand ... -
单机最大tcp连接数
2016-12-28 13:50 526from: http://www.cnblogs.com/my ... -
linux后台运行和关闭、查看后台任务
2016-12-15 17:09 667from: http://www.cnblogs.com/k ... -
sh脚本异常:/bin/sh^M:bad interpreter: No such file or directory
2016-12-15 17:07 407from http://myswirl.blog.163 ... -
Shell 脚本
2016-12-12 15:22 7961 如何在shell脚本中判断文件或者文件夹是否存在? if ... -
CentOS7 安装python 命令 : yum install python
2016-12-09 17:53 873CentOS7 安装python 命令 : yum insta ... -
linux 目录下的文件个数
2016-12-07 12:44 453linux里没有直接的命令来展示一个目录下的文件个数,可以通过 ... -
IT技术学习指导之Linux系统入门的4个阶段
2016-12-05 22:36 481http://www.cnbeta.com/articles ... -
Linux 命令參數帶&符合,需要轉義 \
2016-12-04 21:38 418比如新建文件夾 aaa&bbb 命令 mkd ... -
Linux Shell编程中的几个特殊符号命令 & 、&& 、 ||
2016-12-04 21:35 796一、& 放在启动参数后面表示设置此进程为后台进程 ... -
CentOS 7.0 安装中文输入法
2016-12-04 00:33 518安装的时候没有设置,现在找到之后记录下: (我这个是 ... -
Linux下常用压缩格式的压缩与解压方法
2016-12-02 22:25 461日期:2005-01-20 来源: LinuxByte ... -
Shell脚本8种字符串截取方法总结
2016-12-02 19:56 450这篇文章主要介绍了Shell脚本8种字符串截取方法总结,每个方 ... -
CentOS 7自动以root身份登录gnome桌面
2016-11-29 18:31 2143from: http://blog.csdn.net/zd ... -
deb to rpm ; rpm to deb
2016-11-29 10:21 615deb后缀的软件包是for Debian系的(包括Ubuntu ...
相关推荐
jQuery.grep-v1.10.2源码
grep-2.5.4-setup.exe for windows
-v:显示不包含匹配文本的所有行。 (2)举例说明: grep ^[^210] myfile 匹配myfile中以非2、1、0开头的行 grep "[5-8][6-9][0-3]" myfile 匹配myfile中第一位为5|6|7|8,第二位6|7|8|9,第三位为0|1|2|3的三...
使用fork(),exec(),dup2(), pipe(),open()系统调用完成与下列shell命令等价的功能:grep -v usr | wc -l > result.txt
用C言语实现,用于在linux系统下查找需要的进程号。
使用命令行编写cucumber场景
ps -aux|grep -v grep |grep server-jwt| awk '{print $2}'|xargs kill -9; # 用java 方式启动server-jwt-1.0.jar nohup java -jar /root/server-jwt-1.0.jar &; 将上面的命令行中的“server- jwt”替换为你自己的...
从0开始学习Shell高级编程视频课程第二部分2
windows下的grep。善用佳软推荐的,我也推荐一下。
本文实例为大家分享了Linux内存泄漏检测的shell脚本,供...PROC=`ps -ef | grep $APPNAME | grep -v grep | grep -v awk | grep -v $0 | awk '{print $1}'` if [ -z $PROC ]; then echo invalid process_name exit
创建和删除 touch使用 mkdir的使用 mkdir a mkdir -p 连续创建多个目录 在Liunx中不管是文件还是目录都不允许重名 rm ...3、grep ...grep -n ...grep -v grep -i grep ^f grep -a$ 其他 echo
-v 取反 -r 遍历目录查找 grep -n ‘^root’ filename //root开头 grep -n ‘root$’ filename //root结尾 使用场景(需要查看上下文时) grep -nA 3 ‘root$’ filename //显示root结尾的后3行 A:after grep -nB 3...
ps aux |grep znetanalysis_fang_2.0 |grep -v grep |wc -l ps aux |grep查询某个进程,但是要注意:通常在使用 ps命令后 用管道连接 查询特定进程会显示 grep进程本身,如下图所示: [root@ecs-linux-byx ~]# ps -...
netstat -lntup|grep nginx|grep -v grep curl 127.0.0.1 mkdir -p /server/scripts cd /server/scripts/ fpm -s dir -t rpm -n nginx -v 1.6.3 -d 'pcre-devel,openssl-devel' --post-install /server/...
环境 操作系统:win10 虚拟机:centos7 需求 因为公司有个脚本,是用于启动程序的,...pid=`ps -ef|grep -w ggjob-search|grep -v grep|grep -v ggjob-search.sh|awk '{printf $2}'` echo having kill pid:$pid kill -9
data/articles.log有用的命令查找所有不包含“der”、“die”或“das”的单词: cat articles.csv | grep -v ",das" | grep -v ",die" | grep -v ",der" cat articles.csv | grep -v ",das" | grep -v ",die" | grep...
SquidNum=`ps -ef|grep squid|grep -v grep|wc -l` #HttpNum=`netstat -an|grep 0.0.0.0:80|grep -v grep|wc -l` #80状态 if [ $SquidNum != 3 ] ; then /etc/rc3.duid start adddate=`date +%Y-%m-%d`” “`date +%...
redisport=(`ps aux|grep -w redis-server|grep -v grep |awk -F':' '{print $NF}'`) portnum=${#redisport[@]} count=`hostname | grep \-SQ | wc -l` if [ $count -eq 1 ];then address=` /usr/sbin/ip address | ...
tpid=`ps -ef|grep ${APP_NAME}|grep -v grep|grep -v kill|awk '{print $2}'` if [[ ${tpid} ]]; then echo error: ${APP_NAME} has started exit 1 fi rm -f tpid nohup /opt/jdk1.8.0_25/bin/java ${JAVA_OPT} ...
/bin/shclearwhile ((1>0))do NET=$(netstat -anp | grep 1000 | grep EST | wc -l) PRC=$(ps aux | grep thread1 | grep -v grep | grep -v SCREEN | awk ‘{ print ” CPU: ” $3 “%, MEM: ” $4 “%, RSS: ”...