Xiaomi surveillance Open-falcon Ubuntu installation Little Note

Source: Internet
Author: User


Ubuntu Install Open Falcon

[Email protected]:~# apt-get install-y redis-server
[Email protected]:~# apt-get install-y mysql-server
[Email protected]:~# apt-get install-y git



[Email protected]:~# adduser Work
[Email protected]:~# su Work
[Email protected]:/root$ CD
[Email protected]:~$ mkdir Open-falcon
[Email protected]:~$ ls-l
Drwxrwxr-x 2 work 4096 March 2 09:43 Open-falcon

[Email protected]:~$ Export home=/home/work
[Email protected]:~$ export workspace= $HOME/open-falcon
[Email protected]:~$ mkdir-p $WORKSPACE
[Email protected]:~$ cd $WORKSPACE
[Email protected]:~/open-falcon$
[Email protected]:~/open-falcon$ pwd
/home/work/open-falcon

[Email protected]:~/open-falcon$ git clone https://github.com/open-falcon/scripts.git
[Email protected]:~/open-falcon$ echo $?]
0

[Email protected]:~/open-falcon$ cd scripts/
[Email protected]:~/open-falcon/scripts$ mysql-h localhost-u root-p < Db_schema/graph-db-schema.sql && Echo $?
0

[Email protected]:~/open-falcon/scripts$ mysql-h localhost-u root-p < Db_schema/dashboard-db-schema.sql && echo $?
Enter Password:
0
[Email protected]:~/open-falcon/scripts$ mysql-h localhost-u root-p < db_schema/portal-db-schema.sql && Ech o $?
Enter Password:
0
[Email protected]:~/open-falcon/scripts$
[Email protected]:~/open-falcon/scripts$ mysql-h localhost-u root-p < Db_schema/links-db-schema.sql && Echo $?
Enter Password:
0
[Email protected]:~/open-falcon/scripts$ mysql-h localhost-u root-p < Db_schema/uic-db-schema.sql && echo $?
Enter Password:
0




[Email protected]:~/open-falcon/scripts$ uname-rm
3.19.0-47-generic x86_64

CD ~
wget http://dinp.qiniudn.com/go1.4.1.linux-amd64.tar.gz
Tar zxf go1.4.1.linux-amd64.tar.gz
Mkdir-p WORKSPACE/SRC
echo "" >>. BASHRC
Echo ' Export goroot= $HOME/go ' >>. BASHRC
Echo ' Export gopath= $HOME/workspace ' >>. BASHRC
Echo ' Export path= $GOROOT/bin: $GOPATH/bin: $PATH ' >>. BASHRC
echo "" >>. BASHRC
source. BASHRC

Next clone code, for later use

CD $GOPATH/SRC
mkdir github.com
CD github.com
git clone--recursive https://github.com/XiaoMi/open-falcon.git




[Email protected]:~/workspace/src/github.com/open-falcon/agent$ cd $GOPATH/src/github.com/open-falcon/agent
[Email protected]:~/workspace/src/github.com/open-falcon/agent$ go get ...
[Email protected]:~/workspace/src/github.com/open-falcon/agent$ echo $?]
0

[Email protected]:~/workspace/src/github.com/open-falcon/agent$ bash Control build
5.1.0
[Email protected]:~/workspace/src/github.com/open-falcon/agent$ echo $?]
0

[Email protected]:~/workspace/src/github.com/open-falcon/agent$ Bash Control pack; echo $?
5.1.0
Fatal:not a git repository (or any of the parent directories):. git
... tar falcon-agent-5.1.0.tar.gz <= public control Cfg.example.json falcon-agent
0
[Email protected]:~/workspace/src/github.com/open-falcon/agent$




[Email protected]:/home/work/workspace/src/github.com/open-falcon/query# apt-get-y Install python-virtualenv



[Email protected]:/home/work/workspace/src/github.com/open-falcon/dashboard# apt-get Install Libmysqld-dev Libmysqlclient-dev

[Email protected]:/home/work/workspace/src/github.com/open-falcon/dashboard# apt-get install-y Python-Flask PYTHON-JINJA2 Python-werkzeug Python-dateutil
[Email protected]:/home/work/workspace/src/github.com/open-falcon/dashboard# apt-get Install Gunicorn
[Email protected]:/home/work/workspace/src/github.com/open-falcon/dashboard# apt-get Install Python-mysqldb





274 Go get ...
275 Go get-u Github.com/beego/bee
276 echo $?
277 Go get-u Github.com/astaxie/beego
278 echo $?
279 Bee Fix
280 echo $?
281 Go get ...



Shutting down the firewall
192.168.6.218:1234 to access IP addresses














This article from "Soul Bucket Luo" blog, declined reprint!

Xiaomi surveillance Open-falcon Ubuntu installation Little Note

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.