CentOS 7.9 下夜莺Nightingale安装 - 用程序模式

2024-04-09 07:08

本文主要是介绍CentOS 7.9 下夜莺Nightingale安装 - 用程序模式,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

CentOS 7.9 下夜莺Nightingale安装 - 用程序模式


参考:
(1)三分钟构建自动化运维平台-nightingale(夜莺) https://mp.weixin.qq.com/s/LwsR3o0Ze6fQiYXgGVZrqw
(2)官方网址 https://github.com/didi/nightingale
(3)大牛视频 https://mp.weixin.qq.com/s/OAEQ-ec-QM74U0SGoVCXkg

第一步:
安装在 VMware Workstations 下安装 CentOS 7.9
选择最小安装即可

第二步:安装repo源和必要的工具软件

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum install -y mariadb* redis nginx wget vim net-tools

第三步:启动mariadb

systemctl enable mariadb
systemctl start mariadb
systemctl status mariadb
   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)Active: active (running) since 一 2021-01-04 14:55:20 CST; 15min agoMain PID: 8633 (mysqld_safe)CGroup: /system.slice/mariadb.service├─8633 /bin/sh /usr/bin/mysqld_safe --basedir=/usr└─8798 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/lo...

第四步:配置mariadb

mysql_secure_installation 
Enter current password for root (enter for none): 
Set root password? [Y/n] y
New password: **123456**
Re-enter new password: 123456
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] n
Remove test database and access to it? [Y/n] n
Reload privilege tables now? [Y/n] y
Thanks for using MariaDB!

第五步:测试mariadb数据库

mysql -uroot -p123456
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 9
MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| test               |
+--------------------+
4 rows in set (0.00 sec)

第六步:配置redis

systemctl enable redis
systemctl start redis
systemctl status redis
   Loaded: loaded (/usr/lib/systemd/system/redis.service; enabled; vendor preset: disabled)Drop-In: /etc/systemd/system/redis.service.d└─limit.confActive: active (running) since 一 2021-01-04 15:08:27 CST; 4s agoMain PID: 8925 (redis-server)CGroup: /system.slice/redis.service└─8925 /usr/bin/redis-server 127.0.0.1:6379

第七步:下载安装n9e配置文件

mkdir -p /home/n9e
cd /home/n9e
wget http://116.85.64.82/n9e.tar.gz
tar zxvf n9e.tar.gz

第八步:初始化n9e数据库

vi /home/n9e/etc/mysql.yml

把mysql密码修改为上面设定的。

cd /home/n9e/sql
mysql -uroot -p123456 < n9e_ams.sql
mysql -uroot -p123456 < n9e_hbs.sql
mysql -uroot -p123456 < n9e_job.sql
mysql -uroot -p123456 < n9e_mon.sql
mysql -uroot -p123456 < n9e_rdb.sql

第九步:下载n9e程序

cd /home/n9e
wget http://116.85.64.82/pub.tar.gz
tar zxvf pub.tar.gz

第十步:启动Nginx

systemctl restart nginx

第十一步:验证n9e调用的shell是否正确

ifconfig `route|grep '^default'|awk '{print $NF}'`|grep inet|awk '{print $2}'|head -n 1
dmidecode -s system-serial-number | tail -n 1
cat /proc/cpuinfo | grep processor | wc -l
cat /proc/meminfo | grep MemTotal | awk '{printf "%dGi", $2/1024/1024}'
df -m | grep '/dev/' | grep -v '/var/lib' | grep -v tmpfs | awk '{sum += $2};END{printf "%dGi", sum/1024}'

第十二不:启动ne9程序

./control start all
rdb started
job started
ams started
monapi started
tsdb started
index started
transfer started
judge started
agent started
./control status
root      22319  0.0  0.1 979552 15904 pts/0    Sl   15:31   0:00 /home/n9e/n9e-ams
root      22362  0.0  0.2 842700 16248 pts/0    Sl   15:31   0:00 /home/n9e/n9e-tsdb
root      22380  0.0  0.2 980940 18388 pts/0    Sl   15:31   0:00 /home/n9e/n9e-index
root      22407  0.5  0.3 867148 27612 pts/0    Sl   15:31   0:00 /home/n9e/n9e-transfer
root      22425  0.3  0.2 915472 16636 pts/0    Sl   15:31   0:00 /home/n9e/n9e-judge
root      22476  1.5  0.1 842548 14872 pts/0    Sl   15:31   0:00 /home/n9e/n9e-agent

第十三步:关闭防火墙

setenforce 0
sed -i 's#SELINUX=enforcing#SELINUX=disabled#' /etc/selinux/config
systemctl disable firewalld.service
systemctl stop firewalld.service

第十四步:停用网络管理程序

systemctl stop NetworkManager
systemctl disable NetworkManager

第十五步:登录web

http://ip/

登录 web,账号 root,密码 root.2020

这篇关于CentOS 7.9 下夜莺Nightingale安装 - 用程序模式的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/887494

相关文章

Django调用外部Python程序的完整项目实战

《Django调用外部Python程序的完整项目实战》Django是一个强大的PythonWeb框架,它的设计理念简洁优雅,:本文主要介绍Django调用外部Python程序的完整项目实战,文中通... 目录一、为什么 Django 需要调用外部 python 程序二、三种常见的调用方式方式 1:直接 im

jdk1.8的Jenkins安装配置实践

《jdk1.8的Jenkins安装配置实践》Jenkins是一款流行的开源持续集成工具,支持自动构建、测试和部署,通过Jenkins,开发团队可以实现代码提交后自动进行构建、测试,并将构建结果分发到测... 目录Jenkins介绍Jenkins环境搭建Jenkins安装配置Jenkins插件安装Git安装配

python版本切换工具pyenv的安装及用法

《python版本切换工具pyenv的安装及用法》Pyenv是管理Python版本的最佳工具之一,特别适合开发者和需要切换多个Python版本的用户,:本文主要介绍python版本切换工具pyen... 目录Pyenv 是什么?安装 Pyenv(MACOS)使用 Homebrew:配置 shell(zsh

Python中Request的安装以及简单的使用方法图文教程

《Python中Request的安装以及简单的使用方法图文教程》python里的request库经常被用于进行网络爬虫,想要学习网络爬虫的同学必须得安装request这个第三方库,:本文主要介绍P... 目录1.Requests 安装cmd 窗口安装为pycharm安装在pycharm设置中为项目安装req

windows下安装Nginx全过程

《windows下安装Nginx全过程》文章介绍了HTTP和反向代理服务器的概念,包括正向代理和反向代理的区别,并详细描述了如何安装和配置Nginx作为反向代理服务器... 目录概念代理正向代理反向代理安装基本属性nginx.conf查询结构属性使用运行重启停止总结概念是一个高性能的HTTP和反向代理we

Go语言实现桥接模式

《Go语言实现桥接模式》桥接模式是一种结构型设计模式,它将抽象部分与实现部分分离,使它们可以独立地变化,本文就来介绍一下了Go语言实现桥接模式,感兴趣的可以了解一下... 目录简介核心概念为什么使用桥接模式?应用场景案例分析步骤一:定义实现接口步骤二:创建具体实现类步骤三:定义抽象类步骤四:创建扩展抽象类步

2025最新版Android Studio安装及组件配置教程(SDK、JDK、Gradle)

《2025最新版AndroidStudio安装及组件配置教程(SDK、JDK、Gradle)》:本文主要介绍2025最新版AndroidStudio安装及组件配置(SDK、JDK、Gradle... 目录原生 android 简介Android Studio必备组件一、Android Studio安装二、A

前端Visual Studio Code安装配置教程之下载、汉化、常用组件及基本操作

《前端VisualStudioCode安装配置教程之下载、汉化、常用组件及基本操作》VisualStudioCode是微软推出的一个强大的代码编辑器,功能强大,操作简单便捷,还有着良好的用户界面,... 目录一、Visual Studio Code下载二、汉化三、常用组件1、Auto Rename Tag2

C++中的解释器模式实例详解

《C++中的解释器模式实例详解》这篇文章总结了C++标准库中的算法分类,还介绍了sort和stable_sort的区别,以及remove和erase的结合使用,结合实例代码给大家介绍的非常详细,感兴趣... 目录1、非修改序列算法1.1 find 和 find_if1.2 count 和 count_if1

Redis中群集三种模式的实现

《Redis中群集三种模式的实现》Redis群集有三种模式,分别是主从同步/复制、哨兵模式、Cluster,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面... 目录1. Redis三种模式概述2、Redis 主从复制2.1 主从复制的作用2.2 主从复制流程2