Metrics
0
Watch 447 Star 961 Fork 439

茹憶。 / LepusPython

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
简洁、直观、强大的开源企业级数据库监控系统,MySQL/Oracle/MongoDB/Redis一站式监控,让数据库监控更简单。支持邮件告警、短信告警、AWR性能报告、慢查询分析等专业功能。 spread retract

http://www.oschina.net/p/lepus

Clone or download
install.sh 1.01 KB
Copy Edit Web IDE Raw Blame History
茹憶。 authored 2017-08-07 15:36 . 代码目录调整,修改readme
#!/bin/bash
basedir=""
#check basedir
########################################################
if test -z "$basedir"
then
basedir=/usr/local/lepus
else
basedir="$basedir"
fi
echo "[note] lepus will be install on basedir: $basedir"
#create dir
#########################################################
if [ ! -x "$basedir" ]; then
echo "[note] $basedir directory does not exist,will be created."
mkdir -p "$basedir"
echo "[note] $basedir directory created success."
else
echo "[error] $basedir directory already exists,install exit."
exit
fi
#copy files
########################################################
echo "[note] wait copy files......."
cp -r * $basedir
#change chmod
########################################################
echo "[note] change script permission."
chmod +x $basedir/lepus*
#create links
########################################################
echo "[note] create links."
ln -s $basedir/lepus /usr/local/sbin/
ln -s $basedir/lepus_monitor /usr/local/sbin/
echo "[note] install complete."

Comment ( 0 )

You need to Sign in for post a comment

Help Search