博文说明:
此博文仅用于RoseMirrorHA集群脚本示例参考,请根据实际情况参考,如对此内容有所疑问,请按照博文末尾联系方式与博主沟通确认,谢谢。
#Window:
start.bat脚本模板内容如下:
样例1:
D:
cd D:\2021
start /B warehouse-tdhy-1.1.86.jar
timeout 10
cd D:\WCS\opcserver
start /B opcserver.exe
timeout 10
cd D:\WCS\WCS_Server
start /B WCS.exe
样例2:
C:
cd C:\Users\asrs\WCS\publish\
start /B IM.Wcs.Server.exe run
timeout 5
cd C:\Users\asrs\WCS\WCSAUTH\
start /B KR.Auth.Server.exe run
timeout 1
stop.bat脚本内容如下:
TASKKILL /F /IM QQ.exe /T
exit 0
#Linux脚本参考:
端口监控:
#check port 8001
if test $RETURN -eq 0
then
netstat -anop |grep 8001 | grep 8001 >/dev/null 2>&1
if test $? -ne 0
then
ERRORSTR=Port8001Miss
echo “Error: [date
] Port8001 MISS.” >>$HAHOME/etc/msqlcor_agent.log
RETURN=1
fi
fi