linux service服务脚本,linux脚本启动服务脚本

#!/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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值