05 2023 档案
摘要:1.获取枚举的描述字典 public static Dictionary<string, string> GetEnumDescriptionDict(Type t) { Dictionary<string, string> enumDescDict = new (); if (!t.IsEnum)
阅读全文
摘要:1.下载JDK和Hadoop[略] 2.解压[略] 3.创建hadoop数据存储的目录 mkdir -p /home/hadoop/tmp /home/hadoop/hdfs/data /home/hadoop/hdfs/name 4.配置JAVA环境和HADOOP_HOME vim /etc/pr
阅读全文
摘要:1. Java Grpc Server 参考地址: grpc-java os-maven-plugin protobuf-maven-plugin 1.新建SpringBoot项目[略] 2.POM引入相关依赖 <dependencies> <dependency> <groupId>io.gith
阅读全文
摘要:Openapi Generator是Swagger Codegen的分支,但功能更加强大 1.安装JDK【略】 2.下载jar包 wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.5.0/open
阅读全文
摘要:1.准备工作 1.Protocol Buffers 下载地址:https://github.com/protocolbuffers/protobuf/releases 需要注册环境变量 PROTOC_HOME -> D:\Developer\protoc\bin 【你自己的二进制目录】 Path -
阅读全文
摘要:官方介绍地址:https://github.com/swagger-api/swagger-codegen 1.安装JDK【略】 2.下载jar包 wget https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cl
阅读全文
摘要:Gitea在1.19版本正式支持了Gitea Actions 而运行Gitea Actions的前提是注册一个跑步者(目前,act runners是唯一的选择)。 再次之前,先开启Gitea对Actions的支持。 修改配置文件,确保存在如下配置【我的配置文件在 /data/gitea/conf/a
阅读全文
摘要:转自https://www.cnblogs.com/tonyc/p/10432871.html 设置方法如下: vi /etc/pam.d/gdm-autologin 找到下面这一行 auth required pam_succeed_if.so user != root quiet_success
阅读全文
摘要:1.将用户和Shell环境一起切换成root身份 su - root 2.编辑sshd_config文件 vi /etc/ssh/sshd_config 3.修改配置 默认的Authentication区块 # Authentication: #LoginGraceTime 2m #PermitRo
阅读全文
摘要:##### 1.更新源 ```shell sudo apt update && sudo apt upgrade -y ``` ##### 2.安装SSH(OpenSSH) ```shell sudo apt install openssh-server -y ``` ##### 3.使用syste
阅读全文