Code Monkey home page Code Monkey logo

nekonekostatus's Introduction

NekoNekoStatus

一个Material Design风格的服务器探针

安装后务必修改密码!

Docker

docker run --restart=on-failure --name nekonekostatus -p 5555:5555 -d nkeonkeo/nekonekostatus:v1.0

访问目标ip 5555端口即可,5555:5555可改成任意其他端口,如2333:5555

一键脚本

请先安装wget

wget https://github.com/nkeonkeo/nekonekostatus/raw/main/install.sh && bash install.sh

手动安装

依赖: nodejs, gcc/g++ version 8.x , git

centos:

yum install epel-release centos-release-scl -y
yum install nodejs devtoolset-8-gcc* git -y
scl enable devtoolset-8 bash
npm install n -g
n latest

debian/ubuntu:

apt-get install nodejs npm git -y
npm install n -g
scl enable devtoolset-8 bash
n latest

克隆仓库并安装所需第三方包

git clone https://github.com/nkeonkeo/nekonekostatus.git
cd nekonekostatus
npm install

配置 & 运行

复制config.js.exampleconfig.js,并根据注释编辑配置

node nekonekostatus.js 即可运行

后台常驻, 请先安装forever(npm install forever -g),然后: forever start nekonekostatus.js

https请使用nginx等反代

新增/配置 服务器

变量名 含义 示例
sid 服务器id b82cbe8b-1769-4dc2-b909-5d746df392fb
name 服务器名称 localhost
TOP 置顶优先级 1
域名/IP 域名/IP 127.0.0.1
端口(可选) ssh端口 22
密码(可选) ssh密码 114514
私钥(可选) ssh私钥 ``
被动/主动 同步 同步数据模式 被动(关闭)即可
被动通讯端口 被动通讯端口 10086

填写ssh保存后即可一键安装/更新后端 (更新后要重新点一下安装)

手动安装被控

wget --version||yum install wget -y||apt-get install wget -y
/usr/bin/neko-status -v||(wget 被控下载地址 -O /usr/bin/neko-status && chmod +x /usr/bin/neko-status)
systemctl stop nekonekostatus
mkdir /etc/neko-status/
echo "key: 通讯秘钥
port: 通讯端口
debug: false" > /etc/neko-status/config.yaml
systemctl stop nekonekostatus
echo "[Unit]
Description=nekonekostatus

[Service]
Restart=always
RestartSec=5
ExecStart=/usr/bin/neko-status -c /etc/neko-status/config.yaml

[Install]
WantedBy=multi-user.target" > /etc/systemd/system/nekonekostatus.service
systemctl daemon-reload
systemctl start nekonekostatus
systemctl enable nekonekostatus

nekonekostatus's People

Contributors

nkeonkeo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.