哪吒面板安装与配置(server与agent)

这篇具有很好参考价值的文章主要介绍了哪吒面板安装与配置(server与agent)。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

效果图

哪吒面板,服务器,运维 

哪吒面板项目地址:

naiba/nezha: Self-hosted, lightweight server and website monitoring and O&M tool (github.com)

Server端安装环境

Centos系统VPS一台(8008、5555端口打开)

Github账号

域名(可选)(我没用域名,所以这里演示的都使用IP地址)

Server端安装

创建Github应用

打开Sign in to GitHub · GitHub  使用Github账号登录,创建新应用,按下图填写

 

哪吒面板,服务器,运维

 哪吒面板,服务器,运维

一个ID 一个密钥需要记住

哪吒面板,服务器,运维

 下载安装

SSH到VPS中,输入命令

curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh  -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh

大陆VPS使用命令

curl -L https://cdn.jsdelivr.net/gh/naiba/nezha@master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo CN=true ./nezha.sh

面板命令

选择1,开始安装(会安装Docker,我的VPS安装时间较长,不知道是不是配置垃圾的原因,可以多等会,不要以为是卡住了

哪吒面板,服务器,运维

 按下图填写一些信息就行,完成后面板服务端就启动了哪吒面板,服务器,运维

./nezha.sh   #脚本管理

 访问面板

访问地址:ip:8008,需要使用你的Github账号登录

哪吒面板,服务器,运维

 服务端到这里就安装完成了,因为没有添加客户端,所以页面一片空白。接下来可以进入面板后面开始添加客户端

客户端安装

Linux端安装

添加服务器

首先需要先在面板后面添加一台服务器,拿到密钥

哪吒面板,服务器,运维

 

安装客户端

SSH到VPS,输入命令

curl -L https://cdn.jsdelivr.net/gh/naiba/nezha@master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo CN=true ./nezha.sh

选择8,安装Agent

 哪吒面板,服务器,运维

 按下图填写一些信息,完成安装哪吒面板,服务器,运维

 打开面板可以看到Linux主机已添加到面板中,且信息也都显示出来了

Windows Server端安装

添加服务器

同样的,先在面板后面添加服务器,拿到密钥,这个就不贴图了

下载工具

哪吒探针地址:Releases · naiba/nezha · GitHub

nssm地址:https://nssm.cc/ci/nssm-2.24-101-g897c7ad.zip

安装工具

解压下载的两个工具,以管理员方式打开cmd窗口,将地址指向刚刚解压的nssm工具目录,输入命令

nssm install nezha

哪吒面板,服务器,运维

在NSSM工具中填写配置 ,填完后选择Install service

哪吒面板,服务器,运维

Path 之前下载的哪吒工具地址
Statup directory是哪吒工具地址目录地址
Arguments  -s 面板ip:5555 -p 上一步添加服务器获取的密钥 -d

 出现 下面的语句说明已安装成功,打开面板后就可以看到这台Windows Server的信息了

哪吒面板,服务器,运维

自定义CSS 

可以在后面自定义CSS,让主页更好看些,懂CSS可以自己修改,下面是我设置的,好像不怎么样。。。

<style>
/* 屏幕适配 */

@media only screen and (min-width: 1200px) {
  .ui.container {
    width: 77%;
  }
}

@media only screen and (max-width: 767px) {
  .ui.card>.content>.header:not(.ui), .ui.cards>.card>.content>.header:not(.ui) {
    margin-top: 0.4em;
  }
}



/* 图标颜色和大小*/

i.icon {
        color: #000;
/*下载图标间距*/
        width: 1em !important;
}



/* 菜单颜色 */

.ui.large.menu {
  border: 0;
  border-radius: 0px;
  background-color: rgba(255, 255, 255, 55%);
}

.ui.menu .active.item {
    background-color: transparent;    
}

.ui.dropdown .menu {
  border: 0;
  border-radius: 0px;
  background-color: rgba(255, 255, 255, 55%);
}



/* 登录按钮颜色 */

.nezha-primary-btn {
    background-color: #21ba45 !important;
    color: #fff;
}



/* 背景图片 */

body {
 content: " ";
  background: fixed;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url(https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F202008%2F06%2F20200806090514_TZ4QZ.jpeg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1682563462&t=27a9ab44ae87dfaaf7c1085d201c674e);
  font-family: Arial,Helvetica,sans-serif;
}



/* 大卡片 */

#app .ui.fluid.accordion {
    background-color: #fbfbfb26;
    border-radius: 0.6rem;
}



/* 小卡片 */

.ui.four.cards>.card {
    border-radius: 0.6rem;
    background-color: #fafafaa3;
}



/* 小卡片右上角图标颜色 */

.nezha-secondary-font {
  color: rgba(252, 166, 7, 0.952) !important;
}



/* 小卡片右上角图标位置 */

.ui.right.center.popup {
  margin: -3px 0 0 0.914286em !important;
  -webkit-transform-origin: left 50%;
  transform-origin: left 50%;
}
.ui.bottom.left.popup {
  margin-left: 1px !important;
  margin-top: 3px !important;
}
.ui.top.left.popup {
  margin-left: 0;
  margin-bottom: 10px !important;
}
.ui.top.right.popup {
  margin-right: 0;
  margin-bottom: 8px !important;
}
.ui.left.center.popup {
  margin: -3px .91428571em 0 0 !important;
  -webkit-transform-origin: right 50%;
  transform-origin: right 50%;
}



/* 小卡片布局 */

.status.cards .flag {
  margin-right: 0 !important;
}
.status.cards .header > .info.icon {
  float: right;
  margin-right: 0;
  cursor: pointer;
}
.status.cards .wide.column {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  height: 2.4rem !important;
}
.status.cards .three.wide.column {
  padding-right: 0 !important;
}
.status.cards .wide.column:nth-child(1) {
  margin-top: 1.2rem !important;
}
.status.cards .wide.column:nth-child(2) {
  margin-top: 1.2rem !important;
}
.status.cards .description {
  padding-bottom: 0.8rem !important;
}
.status.cards .ui.content.popup {
  min-width: 292px;
  min-width: 21rem;
}
.status.cards .outline.icon {
  margin-right: 4px;
}



/* 弹出来的卡片 */

.status.cards .ui.content.popup {
    line-height: 2rem;
    border-radius: 8px;
    border: 1px solid transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    inset: 28.1562px auto auto 214.82px;
    background-color: #fafafaeb;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    -webkit-box-shadow: 0 1px 4px 0 rgb(0 0 0 / 20%);
    box-shadow: 0 1px 4px 0 rgb(0 0 0 / 20%);
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    font-family: Arial,Helvetica,sans-serif;
}
.ui.content {
  margin: 0;
  padding: 1em !important;
}
.ui.top.popup:before {
    border-color: #fafafaeb transparent transparent;
}
.ui.popup:before {
    border-color: #fafafaeb transparent transparent;
}
.ui.bottom.left.popup:before {
    border-radius: 0px;
    border: 1px solid transparent;
    border-color: #fafafaeb transparent transparent;
    background: #fafafaeb;
    -webkit-box-shadow: 0px 0px 0 0 #fafafaeb;
    box-shadow: 0px 0px 0 0 #fafafaeb;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.ui.bottom.right.popup:before {
    border-radius: 0px;
    border: 1px solid transparent;
    border-color: #fafafaeb transparent transparent;
    background: #fafafaeb;
    -webkit-box-shadow: 0px 0px 0 0 #fafafaeb;
    box-shadow: 0px 0px 0 0 #fafafaeb;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.ui.top.left.popup:before {
    border-radius: 0px;
    border: 1px solid transparent;
    border-color: #fafafaeb transparent transparent;
    background: #fafafaeb;
    -webkit-box-shadow: 0px 0px 0 0 #fafafaeb;
    box-shadow: 0px 0px 0 0 #fafafaeb;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.ui.top.right.popup:before {
    border-radius: 0px;
    border: 1px solid transparent;
    border-color: #fafafaeb transparent transparent;
    background: #fafafaeb;
    -webkit-box-shadow: 0px 0px 0 0 #fafafaeb;
    box-shadow: 0px 0px 0 0 #fafafaeb;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.ui.left.center.popup:before {
    border-radius: 0px;
    border: 1px solid transparent;
    border-color: #fafafaeb transparent transparent;
    background: #fafafaeb;
    -webkit-box-shadow: 0px 0px 0 0 #fafafaeb;
    box-shadow: 0px 0px 0 0 #fafafaeb;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}



/* 进度条圆角和颜色 */

.ui.progress{border-radius:40rem}
.ui.progress .bar {
  min-width: 1.85em !important;
  border-radius: 15px;
/*进度条数字高度*/
  line-height: 1.65em;
  }

.ui.fine.progress> .bar {
  background-color: #21ba45!important;
}
.ui.progress> .bar {
  background-color: #000!important;
}
.ui.progress.fine .bar {
  background-color: #21ba45!important;
}
.ui.progress.warning .bar {
  background-color: #ff9800!important;
}
.ui.progress.error .bar {
  background-color: #e41e10!important;
}
.ui.progress.offline .bar {
  background-color: #000!important;
}



/* 上传下载图标颜色 */

i.arrow.alternate.circle.down.outline.icon {
    color: green;
}

i.arrow.alternate.circle.up.outline.icon {
    color: #ff0000;
}


/* 服务 */

.ui.table {
    background: RGB(225,225,225,0.6) !important;
}

.ui.table thead th {
    background: transparent !important;
}

.service-status .good {
    background-color: #21ba45 !important;
}

.service-status .danger {
  background-color: red !important;
}

.service-status .warning {
  background-color: orange !important;
}

/* 版权 */

.ui.inverted.segment, .ui.primary.inverted.segment {
    color: #000;
    font-weight: bold;
    background-color: #fafafaa3
}
</style>

<script>
window.onload = function(){
var avatar=document.querySelector(".item img")
var footer=document.querySelector("div.is-size-7")
footer.innerHTML="©2021 运维密码 & Powered by TLFang"

}
</script>

参考文章

哪吒探针 – Windows 和Linux端agent安装(详细注意版) | 运维密码 (mefj.com.cn)文章来源地址https://www.toymoban.com/news/detail-785919.html

到了这里,关于哪吒面板安装与配置(server与agent)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 腾讯云轻量应用服务器安装和配置宝塔 Linux 面板腾讯云专享版

     宝塔 Linux 面板腾讯云专享版由腾讯云与堡塔公司联合开发,专享版在已支持普通版所有功能的基础上,还默认集成腾讯云对象存储、文件存储、内容分发网络和 DNS 解析插件。插件具备如下功能: 支持将对象存储的存储桶挂载到轻量应用服务器实例,您可直接对存储桶进行

    2023年04月20日
    浏览(40)
  • SQL Server 服务器安装配置和使用

    目录 一、SQL Server概述 1、SQL Server 环境需求 2、SQL Server的特点和组成 (1)SQL Server 特点 (2)SQL Server 基本组成 3、SQL Server 安装需注意 (1)数据文件的存储位置 (2)实例名 (3) 确定启动服务的帐户 (4) 选择安全机制 (5) 选择排序规则 (6) 选择合适网络库 4、SQL Se

    2024年02月11日
    浏览(51)
  • Windows Server 配置(七)VPN服务器的安装

    VPN服务器是双网卡或多网卡的配置,一块网卡连接内网,另一块连接外网,同时外网或远程的客户端可以通过建立VPN连接访问到内网资源。    两块网卡分别设置好地址,外网网卡的地址是否能做的,或者是在路由器上做NAT需要进一步了解。      VPN的配置              

    2024年02月12日
    浏览(33)
  • 【Windows Server 2019】DHCP服务器配置与管理——安装和配置DHCP服务 Ⅱ

    (1)调整虚拟机配置 将虚拟机网卡更改为仅主机模式(或自定义(U):特定虚拟网络)。网络连接调整为仅主机模式的作用是让DHCP服务器存在于一个LAN中,后续的DHCP客户端也需要将网卡模式改为仅主机模式(或自定义(U):特定虚拟网络)。 (2)检查IP地址 2.2 安装DHCP服务 (1)

    2024年02月11日
    浏览(42)
  • 如何在Debian(kali)中配置代理(agent)服务器?

    开始搭建代理服务器 首先我参考如下文章进行搭建代理服务器,步骤每一个命令都执行过报了各种错,找了博客  目前尚未开始,我已经知道我的路很长,很难走呀,加油,go!go!go! 第一个教程: Ubuntu/Debian/CentOS搭建Socks5代理一键脚本_socks5一键搭建脚本-CSDN博客 安装 下载

    2024年02月10日
    浏览(27)
  • 【服务器】安装宝塔面板

    目录 🌺【前言】 🌼【前提】连接服务器 🌷方式一 使用工具登录服务器如Xshell 🌷方式二 阿里云直接连接 🌼 1. 安装宝塔 🌷获取安装脚本 方式一 使用下面提供的脚本安装 方式二 使用官网提供的脚本安装 🌷脚本安装详情 🌼2. 服务器添加宝塔占用的端口号 🌷2.1 阿里云

    2024年01月25日
    浏览(49)
  • 【服务器】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置(Windows版详细教程)

    目录 一、操作系统简介 1、什么是操作系统 2、常见的操作系统 2.1、windows操作系统 2.2、UNIX操作系统 2.3、linux操作系统 2.4、mac操作系统 2.5、嵌入式操作系统 3、个人版本和服务器版本的区别 3.1、个人版本 3.2、服务器版本 3.3、总结 4、Linux的各个版本 4.1、Debian 4.2、Ubuntu 4.3、

    2024年02月06日
    浏览(62)
  • 阿里云服务器Centos安装宝塔面板

    阿里云服务器是阿里云提供的一项云计算服务,它能够帮助用户快速搭建网站、应用和服务,提供高效稳定的数据存储和计算能力,满足用户的各种业务需求。 阿里云服务器是一种简单高效、处理能力可弹性伸缩的计算服务。它提供了多种规格的服务器,包括弹性计算型、计

    2024年02月02日
    浏览(47)
  • 如何使用宝塔面板搭建网站(Linux服务器配置篇)

    搭建网站我们需要: 必须是Linux服务器 (最低要求配置1核1G当然再低些也能运行但是不建议) 自己的域名(可以去阿里云或者腾讯云了解) PHP项目   此处展示的是华为云服务器 (各个服务器的购买和使用差别不大,这里提供参考) 登录之后点击控制台  点击右上角的搜索

    2024年02月07日
    浏览(55)
  • 哪吒监控:开源、轻量、易用的服务器监控、运维工具(内附主题美化代码)

    哪吒监控是一款开源、轻量、易用的服务器监控、运维工具,为用户提供了一系列强大的功能和便捷的操作方式。 一键安装:支持一键脚本安装面板和监控服务,适用于Linux、Windows、MacOS、OpenWRT等主流系统,让您轻松上手。 实时监控:能够同时监控多个服务器的系统状态,

    2024年03月10日
    浏览(119)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包