全部博文(150)
分类: 系统运维
2018-01-30 18:36:31
##Clone & Prepare export HOME=/falcon/openfalcon/ mkdir -p $HOME/open-falcon/ cd $HOME/open-falcon && git clone cd dashboard; ##Install dependency on CentOS yum install -y python-virtualenv yum install -y python-devel yum install -y openldap-devel yum install -y mysql-devel yum groupinstall "Development tools" cd $HOME/open-falcon/dashboard/ virtualenv ./env ### github上的文件需要更新,豆瓣的会有证书问题 下面修改为阿里云域名 ###./env/bin/pip install -r pip_requirements.txt -i ./env/bin/pip install -r pip_requirements.txt -i ##Init database cd /tmp/ && git clone cd /tmp/falcon-plus/scripts/mysql/db_schema/ ##以下已经存在 mysql -h 127.0.0.1 -u root -p < uic-db-schema.sql mysql -h 127.0.0.1 -u root -p < portal-db-schema.sql mysql -h 127.0.0.1 -u root -p < graph-db-schema.sql mysql -h 127.0.0.1 -u root -p < dashboard-db-schema.sql mysql -h 127.0.0.1 -u root -p < alarms-db-schema.sql rm -rf /tmp/falcon-plus/ ##Start in debug mode ./env/bin/python wsgi.py ##open in your browser. ##Run with gunicorn in production mode $ bash control start ##open in your browser. ##Stop gunicorn $ bash control stop Check log $ bash control tail