Jpom插件端管理项目部署
礼尚往来,往而不来非礼也;来而不往亦非礼也——佚名 安装Jpom插件端: 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950root@iZuf6afyp0j8anyom0ro8zZ:~# apt-get install -y wget && wget -O install.sh https://jpom.top/docs/install.sh && bash install.sh AgentReading package lists... DoneBuilding dependency tree... DoneReading state information... Donewget is already the newest version (1.21.2-2ubuntu1).The following package was automatically installed and is no longer re...
Jpom新建仓库部署前端项目
宽容并不等于放纵——俞吾金 安装redis 1apt install redis 重新部署执行sh脚本 12345678#!/bin/bashBUILD_ID=DONTKILLMEfunction start(){nohup java -jar '/test/management.jar' > '/test/management-log.txt' 2>&1 &sleep 5sexit}start 发现报错,由于Ubunutu使用dash代替了bash: 1Syntax error: "(" unexpected 按照官方文档执行 1dpkg-reconfigure dash 然后在选择YES和NO的时候,选择NO即可 添加前端项目仓库: 构建列表添加构建步骤 12cd ./management-web && yarncd ./management-web && yarn build:test 以及发布命令 1cp -rp #&...
mysql8卸载重新安装并配置lower_case_table_names=1
酒食上得来的朋友,等到酒尽樽空,转眼成为路人——莎士比亚 因为mysql8不支持在已经初始化完成后再进行配置lower_case_table_names 我这里卸载重装(重新初始化应该也可以吧?) 123456# 卸载root@iZuf6afyp0j8anyom0ro8zZ:~# apt purge mysql-* -y# 查看是否还有残余依赖root@iZuf6afyp0j8anyom0ro8zZ:~# dpkg --list|grep mysql# 删除数据目录以及配置文件目录root@iZuf6afyp0j8anyom0ro8zZ:~# rm -rf /var/lib/mysql /etc/mysql/ 安装,执行 1apt-get install mysql-server -y 修改配置文件/etc/mysql/mysql.conf.d/mysqld.cnf 1cd /etc/mysql/mysql.conf.d/ 修改字符集以及配置表名以小写形式存储,并且在比较时不区分大小写 1234[mysqld]character_set_server = utf8mb4...
BeanTree
好说歪理绝非善变,能说会道过失必多——佚名 分享一个前两天写的lambda操作树的BeanTree https://gitee.com/dromara/hutool/pulls/884 代码地址: https://gitee.com/dromara/hutool/blob/v6-dev/hutool-core/src/main/java/cn/hutool/core/tree/BeanTree.java 使用方式如下: 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129pack...
Jpom部署时遇到的坑
跟女人讲话,要像你爱过她似的;跟男人讲话,要像你恨过他似的——王尔德 直接构建,构建失败 下载日志排查: 日志: 貌似拉取代码失败,可能是账密配置错误,检查一下重新构建 这次代码拉取成功,但是构建仍然失败,原因包括maven没安装(mvn命令不识别)、目录路径未识别 先安装maven 123456789# 安装sudo apt-get install maven# 查看版本root@iZuf6afyp0j8anyom0ro8zZ:~# mvn -vApache Maven 3.6.3Maven home: /usr/share/mavenJava version: 1.8.0_352, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jreDefault locale: en_US, platform encoding: UTF-8OS name: "linux", version: "5.15.0-43-generic", arch: &quo...
mybatis-plus代码方式配置
发光的不全是黄金——莎士比亚 示例:https://github.com/apache/incubator-streampark/pull/2099 原来的方式: 1234567891011# mybatis plus settingmybatis-plus: type-aliases-package: org.apache.streampark.console.*.entity mapper-locations: classpath:mapper/*/*.xml configuration: jdbc-type-for-null: null global-config: db-config: id-type: auto # close mybatis-plus banner banner: false 现在的方式: 123456789101112131415161718192021/** * mybatis plus setting * * @return MybatisPlusPropertiesCustomi...
checkstyle
这个世界上没有无用的齿轮,也只有齿轮本身能决定自己的用途。——《嫌疑犯X的献身》 可以安装idea插件checkstyle进行代码审查 可以呼出对应的工具界面,选择规范类型 也可以自定义审查规则
git拉取代码提示filename too long
原因晚于结果——博尔赫斯。 加参数-c core.longpaths=true即可 1git clone -c core.longpaths=true https://github.com/VampireAchao/incubator-streampark.git
Jpom配置自动构建java
对于男人的甜言蜜语,你相信三分之一就好了——莫泊桑 新建仓库: 新建完成后测试一下重启是否会丢数据(因为我看到默认用的h2) 1234ps -ef | grep javakill -9 [jpom对应的pid]// 默认安装目录在 /usr/local/jpom-server/usr/local/jpom-server/Server.sh start 重启完成发现并没有丢失 然后配置自动构建 填入信息 构建命令 1cd ./management && mvn -e -U -DskipTests=true -Ptest clean kotlin:compile package 发布命令 12345ps -ef | grep management | awk '{print $2}' | xargs kill -9 || truemv './target/management.jar' '/test/management.jar'rm -rf '/test/mana...
Ubuntu安装Jpom
沉默并非总是智慧的表现,但唠叨却永远是一项愚行——富兰克林 本机环境: 123456root@VampireAchao:~# lsb_release -dDescription: Ubuntu 22.04.1 LTSroot@VampireAchao:~# java -versionopenjdk version "1.8.0_352"OpenJDK Runtime Environment (build 1.8.0_352-8u352-ga-1~22.04-b08)OpenJDK 64-Bit Server VM (build 25.352-b08, mixed mode) 安装服务端: 123# 提前创建好文件夹 并且切换到对应到文件夹执行命令mkdir -p /home/jpom/server/apt install -y wget && wget -O install.sh https://jpom.top/docs/install.sh && bash install.sh Server jdk 输入y确定...
