linux启动任务rc.local备忘(持续更新)

写下来以防丢失:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

/home/hadoop/work/mq/activemq/apache-activemq-5.14.3/bin/activemq start


/home/hadoop/work/jenkins/startJenkins


/home/hadoop/work/zookeeper/bin/zkServer.sh start

/home/hadoop/work/zkui/start.sh

/home/hadoop/work/easy/start.sh

docker run -d -p 5000:5000 -v /home/hadoop/work/docker/registry:/var/lib/registry registry

docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer

nohup /home/hadoop/work/redis/RedisReact-console.exe 2>&1 1>/home/hadoop/work/redis/nohup.out &

exit 0

猜你喜欢

转载自rickgong.iteye.com/blog/2363552