Linux下使用shell脚本实现自动升级

Linux服务器中,若是服务端部署了多个,当服务端程序须要更新时,每次都挨个服务器手工替换程序比较麻烦,现作了一个自动升级的脚本,以下:python #!/bin/bash # 启动主程序 function StartProcess(){ processcount=`ps -fe|grep MqttMsg2DB |grep -v grep|wc -l` if [ $processcoun
相关文章
相关标签/搜索