In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the "detailed installation steps of open-falcon". In daily operation, I believe many people have doubts about the detailed installation steps of open-falcon. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "detailed installation steps of open-falcon". Next, please follow the editor to study!
1. Installation tools
Yum install git telnet net-tools tree nmap sysstat lrzsz dos2unix tcpdump ntpdate wget-y
2. System configuration
# time configuration ntpdate ntp.aliyun.com # turn on the cache sed-I 'keepcache0 keepcache` 1 / etc/yum.conf grep keepcache / etc/yum.conf # turn off selinux sed-I's hand, turn off the firewall systemctl stop firewalld.service systemctl disable firewalld.service
3. Install and configure redis
Yum install redis-y systemctl start redis systemctl enable redis systemctl status redis
4. Install MySQL, for my convenience, I use an air-secret code
Yum install mariadb mariadb-server-y systemctl start mariadb systemctl enable mariadb mysql-uroot-p
5. Upload and execute the five SQL scripts required
[root@mgr tmp] # rzrz waiting to receive.Starting zmodem transfer. Press Ctrl+C to cancel.Transferring 1 uicMub schema. SQL... 100% 1 KB 1 KB/sec 00:00:01 0 Errors Transferring 2... 100% 7 KB 7 KB/sec 00:00:01 0 Errors Transferring 3 dashboardwdbMui schema.sql. 100% 3 KB 3 KB/sec 00:00:01 0 Errors Transferring 4 graphs color dbmuri schema.sql 100% 1 KB 1 KB/sec 00:00:01 0 Errors Transferring 5 copyright alarmsMurdbMutual schema.sql. 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. Client installation
You only need to copy the agent file + open-falcon startup file of server to the monitored end, and then modify the configuration file to point to the server.
At this point, ansible es-a "sed-I's sed 0.0.0.0 home/work/open-falcon/agent/config/cfg.json" ends the study of "detailed installation steps of open-falcon", hoping to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.