写下来以防丢失:
#!/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