ituser - 小小IT人遨游大大IT界

open-falcon升级版Nightingale(夜莺)安装部署方法

2020-04-15 15:50:51 181次浏览


配置nightingale
centos7.6
0,基础包
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker -y
1,golang环境
wget https://studygolang.com/dl/golang/go1.14.1.linux-amd64.tar.gz
mkdir /home/soft
解压至/home/soft
tar -zxvf go1.14.1.linux-amd64.tar.gz
/root/.bash_profile
追加
export GOROOT=/home/soft/go
export PATH=$PATH:/home/soft/go/bin
执行
source .bash_profile
2,mysql环境
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum install -y mysql-community-server
systemctl start mysqld
systemctl enable mysqld
3,redis环境
yum install redis -y
systemctl start redis
systemctl enable redis
4,nginx环境
yum install nginx -y
systemctl start nginx
5,编译golang
git clone https://github.com/didi/nightingale.git
./control build
./control pack
将生成的压缩包复制到新的文件夹
n9e-2020-03-24-01-21-48.tar.gz
tar zxvf n9e-2020-03-24-01-21-48.tar.gz
修改etc/mysql.yml
修改nginx.conf
        location / {
            root /home/code/1/pub;#文件夹pub目录
        }
cp etc/nginx.conf /etc/nginx/nginx.conf
mysql -uroot -p < sql/n9e_hbs.sql
mysql -uroot -p < sql/n9e_mon.sql
mysql -uroot -p < sql/n9e_uic.sql
启动项目
./control start all 
./control status
默认账户:root   root
说明

所有内容来及个人经验和互联网摘取,如有雷同纯属巧合,如有冒犯,欢迎留言,分享即快乐,感谢互联网中每一位懂得分享的ituser!QQ群:127331971(备注:ituser.cn)