#!/bin/bash
for i in {ora_smon_orcl,ora_pmon_orcl};do
status=`ps -ef | grep smon | grep -v grep|wc -l`
if [ $status -ne 0 ];then
echo -e "$i is\033[32m running \033[0m"
else
echo -e "$i is\033[31m not running \033[0m"
fi
done
脚本一、检查 linux 进程是否存在
原创Wukaiqiang520 博主文章分类:技术 ©著作权
©著作权归作者所有:来自51CTO博客作者Wukaiqiang520的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
java 看进程是否结束 查看java进程是否存在
windows查找java进程命令_java-查找进程是否在Windows中仍然存在
java 看进程是否结束 windows查找java进程命令 服务器 php Windows -
如何查看hadoop 是否启动 检查hadoop进程是否存在
1、检查hadhoop进程是否启动:/usr/jdk1.7.0_51/bin/jps, masters上看到如下显示: ubuntu@ubuntu-K50ID:~/hadoop-1.2.1$ /usr/jdk1.7.0_51/bin/jps  
怎么检查hadoop有没有启动 hadoop ubuntu 测试 namenode -
mysql select count 默认值
问题描述 需求:查询出每月 order_amount(订单金额) 排行前3的记录。例如对于2019-02,查询结果中就应该是这3条: 解决方法MySQL 5.7 和 MySQL 8.0 有不同的处理方法。1. MySQL 5.7我们先写一个查询语句。根据 order_date 中的年、月,和order_amount进行降序排列。然后,添加一个新列:order_amount(
mysql 查询不到记录取默认值 mysql 每个分类取5条 mysql分组查询 mysql查询本月第一周 order by 子查询