Code Monkey home page Code Monkey logo

devicemanagement's Introduction

如何部署:

一、在Linux系统上提前安装好Docker,准备启动MySQL和Redis

sudo mkdir -p /app/data/db
docker run -d --name=mysql --restart=always --network=host -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -e MYSQL_DATABASE=devicemanagement -v /app/data/db:/var/lib/mysql  mysql:5.6
docker run -d --name redis --restart=always --network=host -v ./config/redis/redis.conf:/etc/redis/redis.conf redis:5.0 redis-server /etc/redis/redis.conf

二、初始化数据库

mysql -h 127.0.0.1 -u -p < ./src/main/resources/schema.sql
mysql -h 127.0.0.1 -u -p < ./src/main/resources/data.sql

三、打包

mvn clean package

四、运行(测试环境)

java -jar target/devicemanagement-0.0.1-SNAPSHOT.jar

其中包含了'admin'和'abc'两个用户,用户密码都为'123456'

devicemanagement's People

Contributors

heyuantao avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.