Browse Source

增加 ubuntu 的安装方式

yaohang 7 years ago
parent
commit
236a072fbf
1 changed files with 23 additions and 2 deletions
  1. 23 2
      README.md

+ 23 - 2
README.md

@@ -45,7 +45,9 @@ cd dashboard;
 
 ```
 
-## Install dependency
+## Install dependenc
+
+CentOS
 ```
 yum install -y python-virtualenv
 yum install -y python-devel
@@ -53,12 +55,31 @@ yum install -y openldap-devel
 yum install -y mysql-devel
 yum groupinstall "Development tools"
 
+
 cd $HOME/open-falcon/dashboard/
 virtualenv ./env
 
-./env/bin/pip install -r pip_requirements.txt -i http://pypi.douban.com/simple
+./env/bin/pip install -r pip_requirements.txt -i https://pypi.douban.com/simple
+```
+Ubuntu
 
 ```
+apt-get install -y python-virtualenv
+apt-get install -y slapd ldap-utils
+apt-get install -y libmysqld-dev
+apt-get install -y build-essential
+apt-get install -y python-dev libldap2-dev libsasl2-dev libssl-dev
+
+cd $HOME/open-falcon/dashboard/
+virtualenv ./env
+
+./env/bin/pip install -r pip_requirements.txt -i https://pypi.douban.com/simple
+```
+
+
+
+
+
 
 ## Init database
 ```