千家信息网

open-falcon的详细安装步骤

发表于:2025-02-03 作者:千家信息网编辑
千家信息网最后更新 2025年02月03日,这篇文章主要介绍"open-falcon的详细安装步骤",在日常操作中,相信很多人在open-falcon的详细安装步骤问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答"o
千家信息网最后更新 2025年02月03日open-falcon的详细安装步骤

这篇文章主要介绍"open-falcon的详细安装步骤",在日常操作中,相信很多人在open-falcon的详细安装步骤问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答"open-falcon的详细安装步骤"的疑惑有所帮助!接下来,请跟着小编一起来学习吧!

1、安装工具

yum install git telnet net-tools tree nmap sysstat lrzsz dos2unix tcpdump ntpdate wget -y

2、系统配置

 #时间配置 ntpdate ntp.aliyun.com #开启缓存 sed -i 's#keepcache=0#keepcache=1#g' /etc/yum.conf  grep keepcache /etc/yum.conf #关闭selinux sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config setenforce 0 #关闭防火墙 systemctl stop firewalld.service systemctl disable firewalld.service

3、安装配置redis

 yum install redis -y  systemctl start redis systemctl enable redis systemctl status redis

4、安装MySQL,为了方便我这用的是空密码喲

 yum install mariadb mariadb-server -y systemctl start mariadb systemctl enable mariadb mysql -uroot -p

5、上传并执行需要的五个SQL脚本

[root@mgr tmp]# rzrz waiting to receive.Starting zmodem transfer.  Press Ctrl+C to cancel.Transferring 1_uic-db-schema.sql...  100%       1 KB       1 KB/sec    00:00:01       0 Errors  Transferring 2_portal-db-schema.sql...  100%       7 KB       7 KB/sec    00:00:01       0 Errors  Transferring 3_dashboard-db-schema.sql...  100%       3 KB       3 KB/sec    00:00:01       0 Errors  Transferring 4_graph-db-schema.sql...  100%       1 KB       1 KB/sec    00:00:01       0 Errors  Transferring 5_alarms-db-schema.sql...  100%       2 KB       2 KB/sec    00:00:01       0 Errors  [root@mgr tmp]# for sqlfile in `ls |grep sql`; do mysql < $sqlfile ;done;

6、安装golang

yum install golang

7、后端安装

#创建工作目录 export FALCON_HOME=/home/work export WORKSPACE=$FALCON_HOME/open-falcon mkdir -p $WORKSPACE #上传下载好的版本并解压  https://github.com/open-falcon/falcon-plus/releases/download/v0.3/open-falcon-v0.3.tar.gz[root@mgr tmp]# rzrz waiting to receive.Starting zmodem transfer.  Press Ctrl+C to cancel.Transferring open-falcon-v0.3.tar.gz...  100%   67075 KB    22358 KB/sec    00:00:03       0 Errors  [root@mgr tmp]# tar xf open-falcon-v0.3.tar.gz -C $WORKSPACE[root@mgr tmp]# cd $WORKSPACE#配置文件查看 cat `find ./ -type f -name "cfg.json"|egrep "alarm|api|nodata|hbs|graph|aggregator"` |grep 'root:@tcp(127.0.0.1:3306)'#配置文件修改命令,空密码更容易快速搭建,所以可以不用执行这一步sed -i 's#root:@tcp(127.0.0.1:3306)#root:123456@tcp(127.0.0.1:3306)#g' `find ./ -type f -name "cfg.json"|egrep "alarm|api|nodata|hbs|graph|aggregator"`

8、启动后端和本机agent

[root@mgr open-falcon]# ./open-falcon start[falcon-graph] 19882[falcon-hbs] 19894[falcon-judge] 19903[falcon-transfer] 19910[falcon-nodata] 19917[falcon-aggregator] 19925[falcon-agent] 19934[falcon-gateway] 19943[falcon-api] 19950[falcon-alarm] 19963[root@mgr open-falcon]# ./open-falcon check        falcon-graph         UP           19882           falcon-hbs         UP           19894         falcon-judge         UP           19903      falcon-transfer         UP           19910        falcon-nodata         UP           19917    falcon-aggregator         UP           19925         falcon-agent         UP           19934       falcon-gateway         UP           19943           falcon-api         UP           19950         falcon-alarm         UP           19963 [root@mgr open-falcon]# ./open-falcon start agent[falcon-agent] 19934[root@mgr open-falcon]# ./open-falcon check        falcon-graph         UP           19882           falcon-hbs         UP           19894         falcon-judge         UP           19903      falcon-transfer         UP           19910        falcon-nodata         UP           19917    falcon-aggregator         UP           19925         falcon-agent         UP           19934       falcon-gateway         UP           19943           falcon-api         UP           19950         falcon-alarm         UP           19963

9、前端安装

cd $WORKSPACE#克隆数据git clone  #安装依赖yum install -y python-virtualenvyum install -y python-develyum install -y openldap-develyum install -y mysql-develyum groupinstall "Development tools" -y#安装pipyum -y install python-pip#环境配置cd dashboard/             virtualenv ./env/env/bin/pip install -r pip_requirements.txt#备份并修改配置密码,PORTAL_DB_USER 、PORTAL_DB_PASS这个需要注意,要么创建,要么改成root对应信息cp rrd/config.py{,.bak}vim rrd/config.py#启动并查看[root@mgr dashboard]# source env/bin/activate(env) [root@mgr dashboard]# ./control startfalcon-dashboard started..., pid=1635(env) [root@mgr dashboard]# netstat  -nltp

10、网页登录

11、客户端安装

只需要把server的agent 文件+open-falcon启动文件copy到被监控端,修改配置文件指向server端即可

ansible es   -a "sed -i 's/0.0.0.0/192.168.56.21/g' /home/work/open-falcon/agent/config/cfg.json "

到此,关于"open-falcon的详细安装步骤"的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注网站,小编会继续努力为大家带来更多实用的文章!

配置 文件 步骤 学习 密码 更多 要么 帮助 实用 接下来 上传下载 不用 信息 前端 命令 备份 客户 客户端 工具 指向 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 云服务器上配置php 华为软件开发工程模式 服务器安装学什么课程 树立网络安全观的手抄报怎么画 分组交换技术在计算机网络技术 安装db2数据库客户端 搞软件开发能和大数据接轨吗 金山区优势软件开发试验设备 软件开发就业排名 在服务器里怎么清除硬盘数据 图片管理系统数据库及表列 浦东新区市场软件开发销售方法 服务器风扇一直转 王者荣耀每周开新服务器 雀魂steam是哪个服务器 服务器租赁商的资产管理 word 如何编辑数据库 搭建一个web服务器 软件开发的汇报文字稿 国家网络安全宣传周河南共青团 软件开发的有效方法 网络安全职责划分和落实工作 软件开发的成本票是啥 网络安全教育想法和小建议 学校关于网络安全整改报告 数据库技术揭秘 长海软件开发商 服务器安全狗 如何解决 德邦快递软件开发线上面试 数据库重新分析的方法
0