摘要: 1、编辑脚本 vi xxxx.sh 注意:shell脚本要和jar包放在同一目录下 例1: #!/bin/sh # 启动 start(){ nohup java -jar xxxx.jar > xxxx.log 2>&1 & } # 停止 stop(){ ps -ef | grep xxxx.jar 阅读全文
posted @ 2021-11-02 14:20 Mr.BluE 阅读(619) 评论(0) 推荐(0)
摘要: 在Springboot中搭建Netty服务 实现socket通讯 线程版请看另一片文章 1.把Netty服务通过@Component注入到spring容器中 @PostConstruct和@PreDestroy,这两个注解被用来修饰一个非静态的void()方法。 被@PostConstruct修饰的 阅读全文
posted @ 2019-11-11 18:47 Mr.BluE 阅读(527) 评论(0) 推荐(0)
摘要: 第一步:下载mysql 去官网下载就行了:https://www.mysql.com/downloads/ 下载mysql-5.7.19-winx64是“绿色版”的,没有安装程序,直接解压。 第二步:安装mysql 用cmd打开bin目录。 mysqld -install (安装mysql服务) ( 阅读全文
posted @ 2019-07-10 23:52 Mr.BluE 阅读(163) 评论(0) 推荐(0)