﻿{"id":1654,"date":"2017-09-13T18:00:50","date_gmt":"2017-09-13T10:00:50","guid":{"rendered":"http:\/\/nick.txtcc.com\/?p=1654"},"modified":"2017-09-13T18:00:50","modified_gmt":"2017-09-13T10:00:50","slug":"ubuntu%e9%83%a8%e7%bd%b2falcon","status":"publish","type":"post","link":"https:\/\/nick.txtcc.com\/index.php\/linux\/1654","title":{"rendered":"ubuntu\u90e8\u7f72Falcon+"},"content":{"rendered":"<p><a href=\"https:\/\/book.open-falcon.org\/zh_0_2\/quick_install\/index.html\">https:\/\/book.open-falcon.org\/zh_0_2\/quick_install\/index.html<\/a><\/p>\n<p>\u4e3b\u8981\u53c2\u8003\u4ee5\u4e0a\u5b98\u65b9\u94fe\u63a5<\/p>\n<p class=\"p1\">apt-get install redis-server mysql-server-5.5 git<\/p>\n<p class=\"p1\">cd \/tmp\/ &#038;&#038; git clone https:\/\/github.com\/open-falcon\/falcon-plus.git<\/p>\n<p class=\"p1\">cd \/tmp\/falcon-plus\/scripts\/mysql\/db_schema\/<\/p>\n<p class=\"p2\">mysql -h 127.0.0.1 -u root -p < 1_uic-db-schema.sql<\/p>\n<p class=\"p2\">mysql -h 127.0.0.1 -u root -p < 2_portal-db-schema.sql<\/p>\n<p class=\"p2\">mysql -h 127.0.0.1 -u root -p < 3_dashboard-db-schema.sql<\/p>\n<p class=\"p2\">mysql -h 127.0.0.1 -u root -p < 4_graph-db-schema.sql<\/p>\n<p class=\"p2\">mysql -h 127.0.0.1 -u root -p < 5_alarms-db-schema.sql<\/p>\n<p class=\"p1\">cd \/tmp<\/p>\n<p class=\"p4\"><span class=\"s1\">wget <a href=\"https:\/\/github.com\/open-falcon\/falcon-plus\/releases\/download\/v0.2.1\/open-falcon-v0.2.1.tar.gz\"><span class=\"s2\">https:\/\/github.com\/open-falcon\/falcon-plus\/releases\/download\/v0.2.1\/open-falcon-v0.2.1.tar.gz<\/span><\/a><\/span><\/p>\n<p class=\"p2\">export FALCON_HOME=\/home\/service<\/p>\n<p class=\"p2\">export WORKSPACE=$FALCON_HOME\/open-falcon<\/p>\n<p class=\"p2\">mkdir -p $WORKSPACE<\/p>\n<p class=\"p1\">tar -xzvf open-falcon-v0.2.1.tar.gz -C $WORKSPACE<\/p>\n<p class=\"p1\">cd $WORKSPACE<\/p>\n<p class=\"p1\">grep -Ilr 3306<span class=\"Apple-converted-space\">\u00a0 <\/span>.\/ | xargs -n1 &#8212; sed -i &#8216;s\/root:\/real_user:real_password\/g&#8217;<\/p>\n<p class=\"p1\">.\/open-falcon start<\/p>\n<p class=\"p1\">.\/open-falcon check<\/p>\n<p class=\"p1\">git clone https:\/\/github.com\/open-falcon\/dashboard.git<\/p>\n<p class=\"p1\">apt-get install python-virtualenv python-dev python-flask python-jinja2 python-werkzeug python-dateutil python-mysqldb gunicorn libmysqld-dev libmysqlclient-dev<\/p>\n<p class=\"p1\">cd $WORKSPACE\/dashboard<\/p>\n<p class=\"p1\">virtualenv .\/env<\/p>\n<p class=\"p1\">.\/env\/bin\/pip install -r pip_requirements.txt<\/p>\n<p class=\"p1\">vi rrd\/config.py<\/p>\n<p class=\"p1\">vi pip_requirements.txt<\/p>","protected":false},"excerpt":{"rendered":"<p><a href=\"https:\/\/book.open-falcon.org\/zh_0_2\/quick_install\/index.html\">https:\/\/book.open-falcon.org\/zh_0_2\/quick_install\/index.html<\/a> \u4e3b\u8981\u53c2\u8003\u4ee5\u4e0a\u5b98\u65b9\u94fe\u63a5 apt-get install redis-server&#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[485],"class_list":["post-1654","post","type-post","status-publish","format-standard","hentry","category-linux","tag-openfalcon"],"_links":{"self":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1654","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=1654"}],"version-history":[{"count":1,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1654\/revisions"}],"predecessor-version":[{"id":1655,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1654\/revisions\/1655"}],"wp:attachment":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=1654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=1654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=1654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}