当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 100

Leron Gubler / redis_admin
暂停

forked from careyjike / redis_admin
暂停
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
start.sh 704 Bytes
一键复制 编辑 原始数据 按行查看 历史
careyjike 提交于 2018-03-02 16:35 . 新增启动脚本帮助
#!/bin/bash
start() {
gunicorn -c funicorn.py redis_admin.wsgi
if [ $? -eq 0 ]; then
echo 'start [ successful ]'
else
echo 'start [ failed ]'
fi
}
stop() {
pid=`cat ./log/gunicorn.pid`
kill ${pid}
if [ $? -eq 0 ]; then
echo 'stop [ successful ]'
else
echo 'stop [ failed ]'
fi
}
help() {
echo "Usage: $0 [ start | stop | restart ]"
exit 1
}
restart() {
stop && start
}
case $1 in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
help|--help|-h)
help
;;
*)
echo "Usage: --help | -h | help"
exit 1
;;
esac
exit 0
Python
1
https://gitee.com/nazha/redis_web_client.git
git@gitee.com:nazha/redis_web_client.git
nazha
redis_web_client
redis_admin
master

搜索帮助