Linux下Unicorn服务器配置(2)

# $1 contains the start/stop/etc command
# $2 if it exists, should be the specific config we want to act on
if [ $2 ]; then
. $2
setup
cmd $1
else
for CONFIG in /etc/unicorn/*.conf; do
# import the variables
. $CONFIG
setup

# run the start/stop/etc command
cmd $1
done
fi
}


ARGS="$1 $2"
start_stop $ARGS

执行命令:
/etc/init.d/unicorn_init start/stop/restart

Unicorn 的详细介绍请点这里
Unicorn 的下载地址请点这里

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/dd0db6ccb68cd6a3e398c7683731a642.html