#!/bin/sh
#停止imgr服务
imgr_conf -a stop -A test210
echo "/tstop complete."
#系统等待10秒
sleep 10
#启动imgr服务
imgr_conf -a start -A test210
echo "/tstart complete."
把这个文件放在/home/bv1to1/bin/下,也就是path下,赋予一定的权限。
#。。。相当于注释
imgr_conf -a stop -A test210。。。停止服务器的命令
echo "/tstop complete."。。。输出一段文字
sleep 10。。。等待10秒
基本就是这样,很酷阿,
以后只用敲im_start.sh就可以了。
#停止imgr服务
imgr_conf -a stop -A test210
echo "/tstop complete."
#系统等待10秒
sleep 10
#启动imgr服务
imgr_conf -a start -A test210
echo "/tstart complete."
把这个文件放在/home/bv1to1/bin/下,也就是path下,赋予一定的权限。
#。。。相当于注释
imgr_conf -a stop -A test210。。。停止服务器的命令
echo "/tstop complete."。。。输出一段文字
sleep 10。。。等待10秒
基本就是这样,很酷阿,
博客介绍了一个在Unix服务器上用于停止和启动imgr服务的脚本。脚本先停止imgr服务,等待10秒后再启动该服务,将脚本放在指定path下并赋予权限后,只需运行脚本文件即可完成服务的启停操作。
1850

被折叠的 条评论
为什么被折叠?



