Coder Social home page Coder Social logo

tanbinh123 / linuxservermonitoring Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qiweb/linuxservermonitoring

1.0 0.0 0.0 1015 KB

linux服务器监控项目,前后端分离vue+springboot+mongodb

JavaScript 15.44% HTML 0.17% Vue 26.86% Shell 17.79% Java 39.74%

linuxservermonitoring's Introduction

linux服务器监控平台

技术:nodejs vue java mongodb springboot linux shell linux服务器监控项目,前后端分离vue+springboot+mongodb

1、启动前台:

使用命令:

A 先安装nodejs

并配置好环境变量

B 先控制台cmd命令切换到项目目录:

CD db-service-monitoring

C 第一次运行要安装依赖库:

npm install

D 后执行:

npm run dev

E 前台配置后台请求地址

在文件:db-service-monitoring\src\axios\axiosUrl.js /**

  • 配置全局使用的请求地址url
  • 11.24.201.68
  • 192.168.0.5 */ export default { rootDirectory: function () { // 请求接口的根路径 return 'http://192.168.0.26:9999' },

修改访问地址和端口号: 打开文件db-service-monitoring\config\index.js

host: '192.168.0.26', // can be overwritten by process.env.HOST port: 8082, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: false,

F 启动后显示如下信息

DONE Compiled successfully in 16239ms 16:44:38

I Your application is running here: http://localhost:8083

2、后台启动类

A 配置文件中修改mongodb数据库连接 B 运行单元测试 初始化数据 service-monitoring\src\test\java\com\example\demo\DemoApplicationTests.java 手动打开mongodb新建一个集合 Collection('userEntity') 并新增一条用户: { "_id" : NumberLong(4), "userName" : "qiweb", "passWord" : "qiweb", "_class" : "com.example.demo.UserEntity" } C 运行启动类

com.example.DemoApplication

3、linux客户端脚本

存放在linux-install-shell

4、运行效果图

longin.png faban yinyongfuwuqi.png serverinfo.png jincheng.png

5、发布项目到linux服务器

前台编译

cmd到db-service-monitoring执行 npm run build 得到dist就是编译后的前台系统文件

后台编译

mvn clean package 获得一个war包

技术讨论QQ微信 908701702

linuxservermonitoring's People

Contributors

qiweb avatar

Stargazers

 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.