摘要:
背景:机房在刚搭建之初总是各种各样的原因断电,需要频繁的手动重启服务,就很烦~ 来吧,show your code no bb 1,写个shell脚本,用于监测服务是否被杀死,若被杀死则重启 #!/bin/bashtomcatPath=/data/tomcatbinPath="$tomcatPath 阅读全文
摘要:
1,仓库类public class WareHouse { private ArrayList<String> list = new ArrayList<>(); private Integer i = 0; /** * 向集合中添加元素 */ public synchronized String 阅读全文