1.判断web服务是否运行(查看进程的方式判断该程序是否运行)
2.打印9*9乘法表:注意格式
1、
[root@rhce1 ~]# ps -ef | grep WebSphere | sed -n "/nodeagent\s\{0,\}$/p" | wc -l
返回结果为0表示服务异常。
2、
[root@rhce1 ~]# cd 20230415
[root@rhce1 20230415]# vim multi_table.sh
结果:
1.判断web服务是否运行(查看进程的方式判断该程序是否运行)
2.打印9*9乘法表:注意格式
1、
[root@rhce1 ~]# ps -ef | grep WebSphere | sed -n "/nodeagent\s\{0,\}$/p" | wc -l
返回结果为0表示服务异常。
2、
[root@rhce1 ~]# cd 20230415
[root@rhce1 20230415]# vim multi_table.sh
结果: