这样启动的话项目就同时启动起来,没有按顺序启动,经常报错,大神们怎么处理呢
echo 'start======================='
/home/xukuan/zookeeper-3.5.4-beta/bin/zkServer.sh start
/home/xukuan/redis-5.0.3/src/redis-server /home/xukuan/redis-5.0.3/redis.conf
nohup java -jar /home/xukuan/wk-nb/wk-nb-service-sys-5.2.3-SNAPSHOT.jar >> /home/xukuan/logs/sys.out 2>& 1 &
nohup java -jar /home/xukuan/wk-nb/wk-nb-service-cms-5.2.3-SNAPSHOT.jar >> /home/xukuan/logs/cms.out 2>&1 &
nohup java -jar /home/xukuan/wk-nb/wk-nb-service-wx-5.2.3-SNAPSHOT.jar >> /home/xukuan/logs/wx.out 2>&1 &
nohup java -jar /home/xukuan/wk-nb/wk-nb-task-5.2.3-SNAPSHOT.jar >> /home/xukuan/logs/task.out 2>&1 &
nohup java -jar /home/xukuan/wk-nb/wk-nb-web-platform-5.2.3-SNAPSHOT.jar >> /home/xukuan/logs/plat.out 2>&1 &
nohup java -jar /home/xukuan/wk-nb/wk-nb-web-api-5.2.3-SNAPSHOT.jar >> /home/xukuan/logs/api.out 2>&1 &
exit 0