#!/bin/bash
source /etc/profile
echo "--start cas"
cd /opt/itump/itumpsub/tomcat-cas/bin
./startup.sh &
sleep 2
echo "--start a-center"
cd /opt/itump/itumpsub/tomcat/bin
./startup.sh &
echo "--start grafana_admin"
cd /opt/itump/itumpsub/grafana_admin/bin/
nohup ./grafana-server &
echo "--start grafana"
cd /opt/itump/itumpsub/grafana/bin/
nohup ./grafana-server &
cd /opt/itump/itumpsub/umpnotice/bin
echo "--start umpnotice"
./umpnotice start
sleep 10
echo "--start report"
cd /opt/itump/itumpsub/ump_report/bin
./report start
sleep 10
echo "--start zookeeper"
/opt/itump/zookeeper-3.4.10/bin/zkServer.sh start
sleep 2
echo "--start kafka"
/opt/itump/kafka_2.12/bin/kafka-server-start.sh -daemon /opt/itump/kafka_2.12/config/server.properties
sleep 10
echo "--start elasticsearch"
source /home/itump/.profile
su - itump -c "nohup /opt/itump/elasticsearch-5.5.2/bin/elasticsearch &"
sleep 3
echo "--start msb eureka"
cd /opt/itump/msb-service
./start_eureka_sever.sh &
sleep 3
echo "--start msb ics"
./startICS.sh
sleep 3
echo "--start msb icn"
./startICN.sh
sleep 3
echo "--start msb ms"
cd /opt/itump/msb-service/msb-ms/bin
./start.sh &
sleep 2
echo "--start kafka2es"
cd /opt/itump/msb-service/apache-flume-1.7.0-bin
./startKafka2ES.sh
sleep 3
echo "--start kafka2unik"
cd /opt/itump/msb-service/apache-flume-1.7.0-bin
./startKafka2Unik.sh
sleep 3
echo "--start filebeat"
cd /tmp/elk/filebeat
./start.sh
sleep 3
echo "--start filebeat"
cd /opt/elk/filebeat
./start.sh
sleep 3
echo "--start EM"
source /home/itump/.profile
su - itump -c "nco_pad -name NCO_PA -authenticate PAM"
sleep 10
echo "--start kibana"
cd /opt/kibana/bin
./start.sh
sleep 5
echo "--start Zhyw"
cd /opt/itump/acenter-job/
./startZhyw2day.sh
标签:脚本,opt,启动,echo,start,linux,bin,itump,cd
来源: https://www.cnblogs.com/A121/p/12218001.html