Centos7中配置nacos阿里注册中心的自启动

#!/bin/sh
# chkconfig: 2345 80 90
#
# Simple Redis init.d script conceived to work on Linux systems
# as it does use of the /proc filesystem.

IP=192.168.6.51

EXEC=/usr/local/nacos/nacos/bin


case "$1" in
    start)
        echo "Starting Nacos cluster server..."
        sh $EXEC/startup.sh -m standalone
        echo "启动成功..."
        ;;
    stop)
        echo "Starting Nacos cluster server..."
        sh $EXEC/shutdown.sh
        echo "启动成功..."
        ;;
    *)
        echo "Please use start or stop as first argument"
        ;;
esac

 

你可能感兴趣的:(linux)