- 博客(129)
- 收藏
- 关注
原创 Reactor编程模型中,阻塞上传文件FilePart的3中方式
为了避免阻塞操作导致的问题,建议尽量使用非阻塞的方式处理数据流。如果必须使用阻塞操作,可以通过 publishOn 或 subscribeOn 将操作切换到允许阻塞的线程池。这样可以确保你的应用程序在非阻塞环境中正常工作。
2025-01-15 14:34:12
463
原创 连接到EC2,开启root登录
1.启动完新实例,下载密钥对密钥对登录。4.修改ssh配置文件,允许密码登陆。6.为ec2-user设置密码。2.为root设置密码。3.切换到root权限。
2023-10-21 14:15:55
985
原创 java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop
Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
2022-06-22 19:58:01
426
原创 Spring验证用户输入参数List
1. 简介验证用户输入是任何应用程序中的常见要求。我们将介绍验证对象列表作为 Spring 控制器参数的方法。我们将在控制器层添加验证,以确保用户指定的数据满足指定的条件。2. 给 Bean 添加约束对于我们的示例,我们将使用一个简单的 Spring 控制器来管理电影数据库。我们将专注于接受电影列表并在对列表执行验证后将它们添加到数据库中的方法。因此,让我们首先使用javax 验证在Movie bean上添加约束:public class Movie { private String
2022-05-10 13:26:46
941
原创 Azure Linux如何启用root用户登录
Azure 里的 linux 模板应该是通过了 sshd_config 文件禁用了 Root 登陆,我们只需重新开启即可。sudo suvi /etc/ssh/sshd_config# 在 sshd_config 文件里的 “Authentication” 部分加上以下内容PermitRootLogin yes# 完成以后退出 vi 并保存service sshd restart # 重启 ssh 服务以应用更改passwd root # 直接修改 Root 用户的密码这样重新登陆 s
2022-02-18 14:45:48
3753
1
原创 【Kubernetes二】Centos7.9 Kubespray 2.18 安装 Kubernetes 1.22
Kubespray is a composition of Ansible playbooks, inventory, provisioning tools, and domain knowledge for generic OS/Kubernetes clusters configuration management tasks. Kubespray provides:a highly available clustercomposable attributessupport for most .
2022-02-15 17:43:15
2632
原创 Centos7.9部署CDH6.3.2集群(离线版本)
https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/installation.html一.CDH介绍二.安装环境1.系统说明2.版本说明CM 6.3.1,CDH 6.3.2 (6.3.3版本及以上的要收费了)3.组件版本4.安装包准备(1)Cloudera Manger下载cloudera-manager-server-6.3.1-1466458.el7.x86_64cloudera-manager-agent-
2022-01-10 10:47:31
1782
1
原创 centos7.9配置本地yum源
1.创建文件夹mkdir /mnt/cdrommkdir /mnt/iso2.上传ISO文件到 /mnt/iso3.挂载镜像mount -t iso9660 -o loop /mnt/iso /mnt/cdrom/4.修改yum源配置cd /etc/yum.repos.d/#重命名所有.repo文件rename .repo .repo.bak *#创建CentOS-Media.repo.bak的拷贝cp CentOS-Media.repo.bak CentOS-Media.repo
2022-01-10 09:43:03
5142
原创 HBASE 2.0.6 源码编译
忘记安装gcc./setup-x86_64.exe -q -P wget -P gcc-g++ -P make -P diffutils -P libmpfr-devel -P libgmp-devel -P libmpc-devel
2021-12-03 10:47:55
1814
原创 dedecms优化问题
1.子栏目currentstyle无效问题2.dedecms提交表单返回当前页并刷新plus/diy.php if($dsql->ExecuteNoneQuery($query)) { $id = $dsql->GetLastID(); if($diy->public == 2) { //diy.php?action=view&diyid={
2021-08-08 16:47:45
118
原创 Impala 常用
impala与LDAP集成后的登录impala-shell -i 127.0.0.1:21000 -u root -l --auth_creds_ok_in_clear[root@AAA ~]$ impala-shell -i 127.0.0.1:21000 -u root -l --auth_creds_ok_in_clearStarting Impala Shell using LDAP-based authenticationLDAP password for root : Connect
2021-05-26 17:49:47
413
原创 Failed to connect to github.com port 443: Timed out /ssh: connect to host github.com port 22: Connec
git config --global http.proxy 127.0.0.1:1080 为全局的 git 项目都设置代理git config --local http.proxy 127.0.0.1:1080 为某个 git 项目单独设置代理
2021-04-09 18:56:32
907
原创 hbase SingleColumnValueFilter 列不存在 无法过滤
当某一行没有要过滤的字段时,SingleColumnValueFilter是默认这一行符合过滤条件的。接下来就要让SingleColumnValueFilter在判断的时候把这个策略改改。查看源码发现是有方法可以更改这个策略的/** * This filter is used to filter cells based on value. It takes a {@link CompareFilter.CompareOp} * operator (equal, greater, not equal
2021-03-05 17:28:48
723
原创 MybatisPlusException: error: entityList must not be empty
com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: error: entityList must not be empty at com.baomidou.mybatisplus.core.toolkit.ExceptionUtils.mpe(ExceptionUtils.java:51) at com.baomidou.mybatisplus.core.toolkit.Assert.isTrue(As
2021-03-03 17:31:20
4103
2
原创 druid sql 示例
1.生成mysql 建表语句import com.alibaba.druid.sql.ast.SQLDataTypeImpl;import com.alibaba.druid.sql.ast.SQLIndexDefinition;import com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr;import com.alibaba.druid.sql.ast.statement.SQLAssignItem;import com.alibaba.drui
2021-02-25 16:13:11
556
1
原创 antd pro 使用 wowjs 动画
官方文档animate.cssWOW安装 npm i wowjs --save # 笔者当前版本 1.1.3 # 依 animate.css版本 4.1.1引入animate.cssglobal.less引入:@import '~animate.css/animate.min.css';组件加入动画index.jsx// 依赖import { WOW } from 'wowjs'; // 初始化 componentDidMount() { new WOW({
2021-02-05 17:36:53
329
原创 IDEA 2020.3.1 springboot 配置文件 yml 不提示
IntelliJ IDEA 2020.3.1 (Ultimate Edition)Build #IU-203.6682.168, built on December 29, 2020提示出现!!
2021-02-04 16:05:01
1095
13
原创 CSS
最佳 CSS 写法body { /* 字体 */ font-family: -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif; /* 字号 */ font-size: 16px; /* 字体颜色 */ color: #333; /* 行距 */ line-height: 1.75;}-apple-system 和 BlinkMacSystemFont 就是让
2021-02-02 13:44:50
349
原创 IDEA 搜索正则表达式替换
src=“images/(.*).png”src=“images/$1.png” th:src=“images/$1.png”$1 取第一个括号内
2021-01-27 15:24:29
1112
原创 error cb() never called!
D:\WebstormProjects\cms-web>npm -v6.14.10D:\WebstormProjects\cms-web>node -vv14.15.4查看 npm配置,如果存在registry为https://registry.npm.taobao.org,编辑文件C:\Users\用户名.npmrc,删掉对应配置npm config listornpm config ls -l清理缓存npm cache clean -fnpm cache verif
2021-01-26 14:41:42
7787
原创 windows 10 快速删除文件夹
rmdir/s/q D:\WebstormProjects\cms-web\node_modules/s 删除指定目录中的子目录和文件/q 不询问是否删除目录和子目录
2021-01-26 11:21:00
913
2
原创 ANT DESIGN PRO V4 编译设置路由前缀
package.json "build": "cross-env PUBLIC_PATH=/cms/ umi build", "start": "cross-env PORT=8002 PUBLIC_PATH=/cms/ umi dev",config.jsconst { PUBLIC_PATH } = process.env;export default defineConfig({ hash: true, history: { type: 'hash' }, bas
2021-01-14 11:13:30
898
原创 Python in RHEL 8
To install Python2 or 3yum install python3 oryum install python2Why not just “Python”[root@ip-172-31-41-9 init.d]# python-bash: python: command not found[root@ip-172-31-41-9 init.d]# That’s why you can use the alternatives mechanism to enable
2021-01-05 14:58:26
175
原创 Install EPEL repository failed, please check it. RHEL 8
How To enable the EPEL Repository on RHEL 8 / CentOS 8 Linux[Info] Checking the EPEL repository...[Error] Install EPEL repository failed, please check it.[root@ip-172-31-41-9 opt]# rpm -ql epel-releasepackage epel-release is not installed[root@ip-172
2021-01-05 14:12:58
3768
原创 CentOS 8 RHEL8 开启 TCP BBR
TCP 拥塞控制算法传统 TCP 拥塞控制算法,基于丢包反馈的协议。基于「丢包反馈」的协议是一种 被动式 的拥塞控制机制,其依据网络中的丢包事件来做网络拥塞判断。即便网络中的负载很高时,只要没有产生拥塞丢包,协议就不会主动降低自己的发送速度。这种协议可以最大程度的利用网络剩余带宽,提高吞吐量。然而,由于基于丢包反馈协议在网络近饱和状态下所表现出来的侵略性,一方面大大提高了网络的带宽利用率;但另一方面,对于基于丢包反馈的拥塞控制协议来说,大大提高网络利用率同时意味着下一次拥塞丢包事件为期不远了,所以这.
2021-01-05 10:46:47
577
原创 Yarn 常用
https://classic.yarnpkg.com/en/docs/cli/install/#代理yarn config set registry https://registry.npm.taobao.org#安装依赖yarn install --no-lockfile --update-checksums#启动yarn start#打包yarn run build
2021-01-04 17:49:53
837
原创 yarn Integrity check failed ... computed integrity doesn‘t match our records
建议清理缓存$ yarn cache clean安装依赖命令参考 https://classic.yarnpkg.com/en/docs/cli/install/$ yarn install --no-lockfile --update-checksums
2021-01-04 17:47:42
5535
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人