Giter Club home page Giter Club logo

chat-server's Introduction

Swagger

http://localhost:5007/chat-server/doc.html

mybatis自动生成增加配置,为了自动生成id

useGeneratedKeys="true" keyProperty="id"

Redis in Docker

docker run -itd --name redis -p 6379:6379 --restart=always redis --requirepass wXc8UEqiimY6VHBG

阿里流水线运行:

tar zxvf /home/admin/app/package.tgz -C /home/admin/app/
chmod a+x /home/admin/app/deploy.sh
sh /home/admin/app/deploy.sh restart

开机自动运行:

chmod a+x /etc/rc.d/rc.local vim /etc/rc.d/rc.local

nohup java -jar -Dspring.profiles.active=aliyun /home/admin/app/target/chat-server-0.0.1-SNAPSHOT.jar >
/home/admin/app/logs/start.log 2>&1 &

Docker 构建推送

mvn docker:build -DpushImage

Docker启动MySQL

docker run -itd --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=9Zu3nzrl5mgYM46V -e MYSQL_DATABASE=chat -e MYSQL_USER=chat -e MYSQL_PASSWORD=l8pqjJzm4GMcLyj1 --restart=always mysql/mysql-server:5.7.33

chat-server's People

Contributors

dependabot[bot] avatar makewheels avatar

Watchers

 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.