摘要: idea突然project底色一片绿,真的心里慌得一批。。 解决方法: 打开File-Settings,按图示找到地方,关闭FileColor,即可。 阅读全文
posted @ 2024-07-12 11:27 李济宏(Amadeus) 阅读(2) 评论(0) 推荐(0) 编辑
摘要: idea打开yaml,或是properties文件,出现中文乱码。 解决步骤: 打开notepad++ ,新建iso-8859-1编码的空文件 将乱码文件通过notepad++直接打开,把正常显示的代码copy到步骤1新建的空文件里; 步骤1的文件保存,再次noteapd++打开,复制内容到idea 阅读全文
posted @ 2024-02-29 14:21 李济宏(Amadeus) 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 安装nodejs10 参见《openEuler欧拉安装指定版本的nodejs》 安装Gitbook n 16 # 选择高版本的node npm config set registry https://registry.npmmirror.com -g npm install gitbook-cli 阅读全文
posted @ 2024-02-29 14:21 李济宏(Amadeus) 阅读(18) 评论(0) 推荐(0) 编辑
摘要: npm config set registry https://registry.npmmirror.com -g 阅读全文
posted @ 2024-01-31 14:10 李济宏(Amadeus) 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 场景 突然get pod的时候,发现一堆的错误,得把它干掉,否则很不爽。 解决方案 正常过期的状态,比如Evicted ,用正常指令 kubectl -n jingu get pods | grep Evicted |awk '{print$1}'|xargs kubectl -n jingu de 阅读全文
posted @ 2024-01-23 16:24 李济宏(Amadeus) 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 1. windows下载安装git 2.安装nodejs 下载安装nvm https://github.com/coreybutler/nvm-windows/releases/download/1.1.9/nvm-setup.exe 安装配置nodejs C:\Users\Administrato 阅读全文
posted @ 2024-01-22 14:29 李济宏(Amadeus) 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 1.Kettle设置作业 保存,test.kjb 2. 创建批处理 zxjb.bat C: cd C:\kettle\pdi-ce-9.4.0.0-343\data-integration kitchen.bat /file C:\kettle\ket\dw\test.kjb /level Deta 阅读全文
posted @ 2024-01-12 14:48 李济宏(Amadeus) 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 1. 安装nodejs dnf -y install nodejs npm config set registry https://registry.npmmirror.com -g npm config get registry https://registry.npmmirror.com 2. 阅读全文
posted @ 2024-01-12 11:23 李济宏(Amadeus) 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 使用git config命令在本地全局设置用户名和邮箱 git config --global user.name "username":全局添加用户名 git config --global user.email “someone@mail.com”:全局添加邮箱 git config --glo 阅读全文
posted @ 2024-01-12 10:37 李济宏(Amadeus) 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 安装NTP yum -y install ntp 设置NTP服务器 ntpdate ntp3.aliyun.com 测试 date 阅读全文
posted @ 2024-01-11 18:29 李济宏(Amadeus) 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 1. 安装nodejs10 下载安装nvm https://github.com/coreybutler/nvm-windows/releases/download/1.1.9/nvm-setup.exe 安装配置nodejs C:\Users\Administrator>nvm install 1 阅读全文
posted @ 2024-01-09 17:30 李济宏(Amadeus) 阅读(30) 评论(0) 推荐(0) 编辑
摘要: ​查看当前的dc netdom query dc 步骤 登录主域控(PDC),例如主域控的主机名为dc01.yourdomaincontroller.com (FQDN 格式) 打开CMD命令行终端,输入netdom query fsmo 查看当前谁是 PDC, 输入ntdsutil 回车 再输入r 阅读全文
posted @ 2024-01-09 16:08 李济宏(Amadeus) 阅读(44) 评论(0) 推荐(0) 编辑
摘要: ​进虚拟机,把要缩减硬盘的那个系统,磁盘管理,收缩卷收缩了。然后关机。 本例:调整800G到350G。 Esxi打开ssh,进去。 cd /vmfs/volumes// datastorename,完全靠猜,ls -lrt看下大小,捡大点的cd进去看看是哪个。 本例:/vmfs/volumes/64 阅读全文
posted @ 2024-01-09 16:01 李济宏(Amadeus) 阅读(423) 评论(0) 推荐(0) 编辑
摘要: docker-compose在使用的时候,经常是多个docker组了个内网。而如果不指定内网地址的话,很容易和线下的网段冲突,会造成虽说外部IP和端口都映射好了,但是就是公网无法访问的情况。 解决方案: docker-compose.yml里面,指定network网段。 networks: seaf 阅读全文
posted @ 2024-01-09 15:53 李济宏(Amadeus) 阅读(68) 评论(0) 推荐(0) 编辑
摘要: vi /etc/rc.d/rc.local /usr/local/bin/docker-compose -f /home/seafile/docker-compose.yml up -d 给rc.local赋予执行权限。(这个是其他文章少的一步,造成重启后无效) chmod +x /etc/rc.d 阅读全文
posted @ 2024-01-09 15:52 李济宏(Amadeus) 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 一句一句的执行: yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo yum install -y yum-utils device-mapper-persiste 阅读全文
posted @ 2024-01-09 15:49 李济宏(Amadeus) 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Docker安装MySQL5.7 docker pull mysql:5.7 docker run Note: 报错: docker: Error response from daemon: failed to create shim task: OCI runtime create failed: 阅读全文
posted @ 2024-01-09 15:33 李济宏(Amadeus) 阅读(65) 评论(0) 推荐(0) 编辑
摘要: docker中 启动所有的容器命令 docker start $(docker ps -a | awk '{ print $1}' | tail -n +2) docker中 关闭所有的容器命令 docker stop $(docker ps -a | awk '{ print $1}' | tai 阅读全文
posted @ 2024-01-09 15:30 李济宏(Amadeus) 阅读(89) 评论(0) 推荐(0) 编辑
摘要: Gitlab让小朋友不小心把离职员工的账号给删了,可是离职员工有好几个项目都是他是owner,造成Gitlab上项目全部丢失。 遇到这种情况,莫慌。 一般,本地都有完整的Git备份,离职员工走了,肯定他的主管有整套代码。 解决方式很简单,跟着我来,就不会错。 但是建议,创建项目,owner最好是管理 阅读全文
posted @ 2024-01-09 14:11 李济宏(Amadeus) 阅读(233) 评论(0) 推荐(0) 编辑
摘要: ​报错如下: Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Managemen 阅读全文
posted @ 2024-01-09 11:25 李济宏(Amadeus) 阅读(482) 评论(0) 推荐(0) 编辑
摘要: 1. 安装redis docker pull redis docker images 2. 配置redis ## 创建目录 mkdir -p /home/redis/conf ## 创建文件 touch /home/redis/conf/redis.conf 3. 创建容器 vi redis.sh 阅读全文
posted @ 2024-01-09 11:16 李济宏(Amadeus) 阅读(8) 评论(0) 推荐(0) 编辑
摘要: ​​>Minio 是一个基于Apache License v2.0开源协议的对象存储服务,虽然轻量,却拥有着不错的性能。它兼容亚马逊S3云存储服务接口,非常适合于存储大容量非结构化的数据。 例如图片、视频、日志文件、备份数据和容器/虚拟机镜像等,而一个对象文件可以是任意大小,从几 kb 到最大 5T 阅读全文
posted @ 2024-01-09 11:13 李济宏(Amadeus) 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 1,安装yum-utils和dnf-utils yum install -y yum-utils dnf-utils 2,添加源 docker官方源 yum-config-manager --add-repo https://download.docker.com/linux/centos/dock 阅读全文
posted @ 2024-01-09 11:11 李济宏(Amadeus) 阅读(133) 评论(0) 推荐(0) 编辑
摘要: ​1. dnf配置 # 更新镜像源缓存 dnf makecache # 修改chrony时间同步配置 sed -i 's/pool pool.ntp.org iburst/pool ntp.aliyun.com/g' /etc/chrony.conf # 重启chrony服务 systemctl r 阅读全文
posted @ 2024-01-09 11:09 李济宏(Amadeus) 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 原因:SQLServer没有设置为混合模式。 解决方法: 服务器本地通过Windows验证,打开SQLServer 右键服务器,选择安全性,选择为混合验证模式,然后重启SQLServer服务即可。 阅读全文
posted @ 2024-01-09 10:56 李济宏(Amadeus) 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 安装docker 查找tomcat docker search tomcat 下载镜像 docker pull tomcat 查看下载的镜像 docker images 运行Tomcat docker run -d -p 8080:8080 -v /home/tomcat/webapps:/usr/ 阅读全文
posted @ 2024-01-09 10:54 李济宏(Amadeus) 阅读(2) 评论(0) 推荐(0) 编辑
摘要: ​搞了3天啊,查了各种资料啊。 然后使劲的看log啊,总算搞定了啊。 一般情况,本地开发环境测试没问题,部署到服务器就各种不适应,就是服务器配置的问题了。 本次这种验证码不显示,典型的nginx的配置问题。 正确的nginx配置如下: events { worker_connections 1024 阅读全文
posted @ 2024-01-09 10:52 李济宏(Amadeus) 阅读(1001) 评论(0) 推荐(0) 编辑
摘要: ​情况:MariaDB设置了TCP/IP的端口,但是还是无法进行远程访问。 解决方法: 一、使用ssh登录群晖,并进入MariaDB安装目录 cd /volume1/@appstore/MariaDB10/usr/local/mariadb10/bin 二、使用root登录 MariaDB,然后进行 阅读全文
posted @ 2024-01-09 10:49 李济宏(Amadeus) 阅读(243) 评论(0) 推荐(0) 编辑
摘要: ​以Harbor为例,ssl证书更新后,docker-compose启动不起作用。 问题出在一句很重要的命令:./prepare 步骤:(Harbor样例) 1. cd /data/ssl 换ssl证书 Harbor.yml ssl证书部分: # Configuration file of Harb 阅读全文
posted @ 2024-01-09 10:47 李济宏(Amadeus) 阅读(310) 评论(0) 推荐(0) 编辑
摘要: ​[root@localhost ~]# cat /etc/os-release NAME="openEuler" VERSION="22.03 (LTS-SP2)" ID="openEuler" VERSION_ID="22.03" PRETTY_NAME="openEuler 22.03 (LT 阅读全文
posted @ 2024-01-09 10:45 李济宏(Amadeus) 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 1. 安装GitLab wget https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh sudo os=el dist=8 bash ./script.rpm.sh sudo EXTERNAL_ 阅读全文
posted @ 2024-01-09 10:42 李济宏(Amadeus) 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 安装gitlab,指定14.5.2版本,为便于与下篇文章:gitlab恢复做准备。如果不需要恢复,或不需要配置ssl证书,请自行精简以下操作。 1. 开启gitlab sh gitlab.sh docker run -d \ --privileged=true \ --hostname xxx.xx 阅读全文
posted @ 2024-01-09 10:31 李济宏(Amadeus) 阅读(187) 评论(0) 推荐(0) 编辑
摘要: ​注意:异机转移的时候,gitlab的版本必须一致。 一、备份GitLab数据 停止GitLab服务 gitlab-ctl stop unicorn gitlab-ctl stop sidekiq 创建GitLab备份 mkdir gitlabBack gitlab-rake gitlab:back 阅读全文
posted @ 2024-01-09 10:06 李济宏(Amadeus) 阅读(59) 评论(0) 推荐(0) 编辑
摘要: Restoring PostgreSQL database gitlabhq_production ... ERROR: must be owner of extension pg_trgm ERROR: must be owner of extension btree_gist ERROR: mu 阅读全文
posted @ 2024-01-09 10:03 李济宏(Amadeus) 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 下载docker dnf -y install docker 下载mysql镜像 docker pull mysql 运行Mysql mkdir -p /home/mysql/data docker run -d -p 9020:3306 --name mysql --privileged=true 阅读全文
posted @ 2024-01-09 09:50 李济宏(Amadeus) 阅读(48) 评论(0) 推荐(0) 编辑
摘要: ​keytool是Java开发中用于管理密钥和证书的工具,可以用于生成密钥、创建证书请求、导入和导出证书等操作。你可以在Oracle官网上下载和安装JDK,然后在JDK的 bin目录下找到 keytool 工具。 因此,我们首先要给centos装jdk yum -y install java-1.8 阅读全文
posted @ 2024-01-09 09:45 李济宏(Amadeus) 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 直接docker pull apereo/cas ,docker run的时候各种报错: standard_init_linux.go:178: exec user process caused "exec format error" 或是 cas exec /opt/java/openjdk/bi 阅读全文
posted @ 2024-01-09 08:37 李济宏(Amadeus) 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 查pod kubectl get pod -n amadeus -o wide 查pod日志 kubectl logs -f --timestamps -n amadeus weyo-server-66ffd9bf5f-nlq4b --tail=200 没权限,给权限 kubectl create 阅读全文
posted @ 2024-01-09 08:34 李济宏(Amadeus) 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 改密码 默认redis安装后,密码是默认的,通过查看安装目录的config文件,可以查到:requirepass 这个设置,默认是啥就是啥。 需要修改密码的话,把这个注释拿掉,将requirepass 改为你需要的密码即可。 可以运行redis-cli 输入: auth 你的密码 测试一下。 red 阅读全文
posted @ 2024-01-08 18:41 李济宏(Amadeus) 阅读(227) 评论(0) 推荐(0) 编辑
摘要: ​有套代码,需要在服务器直接run dev,docker build玩起来。 步骤: 将自己的代码上传到服务器,本例:/home/flow/ruoyi-ui cd到项目根目录 ruoyi-ui,新建Dockerfile,内容如下,根据自己本地运行的node版本改第一行版本号。 FROM node:1 阅读全文
posted @ 2024-01-08 18:39 李济宏(Amadeus) 阅读(79) 评论(0) 推荐(0) 编辑