===============
== ffff65535 ==
===============
十六个一[1111111111111111]

Linux使用密钥登录并禁用密码登录

Ubuntu Debian
生成密钥 # 生成rsa密钥对 ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): # 直接enter Enter passphrase (empty for no passphrase): # 直接enter Enter same passphrase again: # 直接enter Your identification has been saved in Read more...

Linux调整LVM分区

Ubuntu Debian lvm
lv分区调整 df -h umount /home e2fsck -f /dev/mapper/debian--vg-home resize2fs /dev/mapper/debian--vg-home 5G lvreduce -L 5G /dev/mapper/debian--vg-home mount /home df -h lvextend -L 5G /dev/mapper/debian--vg-home #增大至5G lvextend -L +5G /dev/mapper/debian--vg-home #增加5G lvreduce -L 5G /dev/mapper/debian--vg-home #减小至5G lvreduce -L -5G /dev/mapper/debian--vg-home #减小5G 创建lv分区 lvcreate -L Read more...

Ubuntu使用git无法读取远程仓库

Ubuntu Debian git
使用git pull时提示 kex_exchange_identification: Connection closed by remote host Connection closed by 20.205.243.166 port 22 fatal: 无法读取远程仓库。 请确认您有正确的访问权限并且仓库存在。 或 fatal: Could not read from remote repository. 可能是使用了网络代 Read more...

windows 环境运行jacob的一些报错处理

jacob word2pdf excel2pdf PowerPoint2pdf ppt2pdf
com.jacob.com.ComFailException: VariantChangeType failed 报错信息如下 com.jacob.com.ComFailException: VariantChangeType failed 解决方案: win2008 以下 需要在 C:\Windows\System32\config\systemprofile\Desktop 建立文件夹 win2008 及以上 需要在 C:\Windows\SysWOW64\config\systemprofile\Desktop 可以直接执行下边的powershell脚本创建 if((Test-Path "C:\Windows\System32\config\systemprofile\Desktop") -ne "True") { New-Item -Path "C:\Windows\System32\config\systemprofile\Desktop" -ItemType Directory Read more...

Windows powershell

powershell
判断指定文件夹是否存在,若存在则删除文件夹内所有文件与子目录 $CONFIG_PATH="C:\test" $TRUE_FALSE=(Test-Path $CONFIG_PATH) if($TRUE_FALSE -eq "True") { ls $CONFIG_PATH | Remove-Item -Recurse } 判断指定bat文件是否存在,存在则执行该文件 $CONFIG_PATH="C:\test\test.bat" $TRUE_FALSE=(Test-Path $CONFIG_PATH) if($TRUE_FALSE -eq Read more...

jdk11 httpclient的基本使用

httpclient
构建请求参数java.net.http.HttpRequest 请求 URI 请求类型(GET、PUT、POST、DELETE) 请求体 超时时间 请求请求 Read more...

springboot 自定义校验注解

ConstraintValidator springboot
自定义校验注解ConstraintValidator 不太合适,优化一下 maven <!-- Validation --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId> </dependency> 自定义校验注解 import javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.*; /** * 枚举校验注解 * */ @Target({ElementType.FIELD, ElementType.METHOD, ElementType.ANNOTATION_TYPE}) @Retention(RetentionPolicy.RUNTIME) Read more...

Spring cache + Redis LocalDateTime反序列化

Spring cache Redis LocalDateTime
/** * DateTime格式化字符串 */ private static final String DEFAULT_DATETIME_PATTERN = "yyyy-MM-dd HH:mm:ss"; /** * Date格式化字符串 */ private static final String DEFAULT_DATE_PATTERN = "yyyy-MM-dd"; /** * Time格式化字符串 */ private static final String DEFAULT_TIME_PATTERN = "HH:mm:ss"; private RedisCacheConfiguration getRedisCacheConfiguration() { // Read more...

Debian安装GraphicsMagick

Ubuntu Debian GraphicsMagick
先安装一堆乱七八糟的库,具体是干啥的,我懒得细看,一股脑全装上去了 可以参考这两个链接 http://www.graphicsmagick.org/README.html http://www.graphicsmagick.org/INSTALL-unix.html # 从数码相机读取原始图像。当使用通用 RAW 文件格式扩展名 Read more...

使用java终止office进程

default
需要jdk大于等于1.8,否则需要重写convertStr()方法 import lombok.extern.slf4j.Slf4j; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.stream.Collectors; @Slf4j public class KillUtils { private static final String kill_wscript = "taskkill /f /t /im wscript.exe"; private static final String kill_WINWORD = "taskkill /f /t /im WINWORD.exe"; Read more...
1 of 3 Next Page