启动服务: service mysqld start 获取初始化密码: grep 'temporary password' /var/log/mysqld.log 连接修改密码: mysql -h 127.0.0.1 -u root -p password alter user 'root'@'localhost' identified by newpassword
open-falcon安装配置
下载源码
1 2 3
mkdir -p $GOPATH/src/github.com/open-falcon cd $GOPATH/src/github.com/open-falcon git clone https://github.com/open-falcon/falcon-plus.git
初始化数据库
1 2 3 4 5 6
cd $GOPATH/src/github.com/open-falcon/falcon-plus/scripts/mysql/db_schema mysql -h 127.0.0.1 -u root -p < 1_uic-db-schema.sql mysql -h 127.0.0.1 -u root -p < 2_portal-db-schema.sql mysql -h 127.0.0.1 -u root -p < 3_dashboard-db-schema.sql mysql -h 127.0.0.1 -u root -p < 4_graph-db-schema.sql mysql -h 127.0.0.1 -u root -p < 5_alarms-db-schema.sql
编译制作安装包
1 2 3 4 5
go get -u github.com/kardianos/govendor cd $GOPATH/src/github.com/open-falcon/falcon-plus/ make all make agent make pack
安装
1 2 3
cd $GOPATH/src/github.com/open-falcon/falcon-plus mkdir -p /root/open-falcon tar -zxf open-falcon-v0.2.1.tar.gz -C /root/open-falcon