harbor 安装配置

harbor 下载地址: https://github.com/goharbor/harbor/releases # systemctl start docker sudo chmod +x /usr/local/bin/docker-compose cd ~ tar xvzf harbor-offline-installer-v1.7.5.tgz mv   harbor.yml.tmpl    harbor.yml 修改hostname https相关行,注释掉 ./install.sh 安装完成,打开80端口页面。

安装最新版本的docker和docker-compose

1. docker # 卸载旧版本 yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine # 安装yum-utils yum install -y yum-utils # 设置稳定的存储库 yum-config-manager \ –add-repo \ http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo 安装 # 安装 yum install docker-ce docker-ce-cli containerd.io # 版本 docker -v 2. docker-compose curl -L https://github.com/docker/compose/releases/download/1.28.5/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose … Read more

docker 安装

使用官方安装脚本自动安装 安装命令如下: curl -fsSL https://get.docker.com | bash -s docker –mirror Aliyun 也可以使用国内 daocloud 一键安装命令: curl -sSL https://get.daocloud.io/docker | sh

docker命令常用

查看正在运行的容器 docker ps 查看所有容器 docker ps -a 删除容器 docker rm #containerid 进入容器 docker exec -it #containerid bash 查看容器元数据(挂载目录等) docker inspect #containerid 启动容器 docker start #containerid|containername 查看日志 docker logs -f #containerid 查看进程 docker top #containerid —————————————— 查看images docker images 删除image docker rmi #imageid 启动Image(-d 后台运行) docker run -d #imagename ———————————– # docker –help 管理命令: container 管理容器 … Read more

SpringBoot与SpringCloud的版本对应

Spring 官方对应版本地址:  (https://start.spring.io/actuator/info) { “git”: { “branch”: “24655f7f230fe55b2cd7d3f66118e3764845d948”, “commit”: { “id”: “24655f7”, “time”: “2024-01-09T08:49:05Z” } }, “build”: { “version”: “0.0.1-SNAPSHOT”, “artifact”: “start-site”, “versions”: { “spring-boot”: “3.2.1”, “initializr”: “0.21.0-SNAPSHOT” }, “name”: “start.spring.io website”, “time”: “2024-01-09T08:49:59.182Z”, “group”: “io.spring.start” }, “bom-ranges”: { “codecentric-spring-boot-admin”: { “3.1.5”: “Spring Boot >=3.1.0 and <3.2.0-M1” }, “hilla”: { “2.5.5”: “Spring Boot >=3.1.0 and <3.3.0-M1” … Read more

Git使用詳解1

一:git功能区 Workspace:工作区 Index / Stage:暂存区 Repository:仓库区(或本地仓库) Remote:远程仓库 二操作 1.创建版本库 git init –创建git仓库 git add readme.txt –提交文件到暂存区 git add . 一次性提交 git commit -m ‘first commit’ –提交到仓库 git status –查看是否有文件提交 git diff readme.txt 查看修改 2 版本加退 git log 查看日志 git log –pretty=oneline 一行显示 git reset –hard HEAD^ 那么如果要回退到上上个版本只需把HEAD^ 改成 HEAD^^ 以此类推。 git reset –hard 版本号 git … Read more

git clone 非标准的ssh端口(非22)端口

默认方式:git clone whlook@hostname:/volume1/GitRepo/project01/ 当我使用git clone git@xxx:8022:develop/xxx.git 发现不能实现代码的clone 原来,当ssh的端口访问改变的时候,原来的方式就不行了,就要使用新的方式 git clone ssh://git@hostname:port/…/xxx.git hostname:可以是主机的IP地址也可以是域名,域名会自动通过DNS进行解析 port:端口号 样例如下所示: git clone ssh://git@hostname:8022/volume1/git/project01

IntelliJ IDEA 快捷键大全

mark 一下:IDEA可以录制宏,记录自己的快捷键 自动代码 常用的有fori/sout/psvm+Tab即可生成循环、System.out、main方法等boilerplate样板代码 。 例如:要输入for(User user : users)只需输入user.for+Tab ; 再比如:要输入Date birthday = user.getBirthday()只需输入user.getBirthday().var+Tab即可。 代码标签输入完成后,按Tab,生成代码。 Ctrl+Alt+O优化导入的类和包 Alt+Insert生成代码(如get,set方法,构造函数等)   或者右键(Generate) fori/sout/psvm + Tab  生成循环、System.out、main方法等boilerplate样板码 Ctrl+Alt+T生成try catch  或者 Alt+enter Ctrl + O重写方法 Ctrl + I实现方法 Ctr+shift+U大小写转化 ALT+回车 导入包,自动修正 ALT+/    代码提示 CTRL+J 自动代码 Ctrl+Shift+J整合两行为一行 CTRL+空格 代码提示 CTRL+SHIFT+SPACE自动补全代码 CTRL+ALT+L格式化代码 CTRL+ALT+I自动缩进 CTRL+ALT+O优化导入的类和包 ALT+INSERT生成代码(如GET,SET方法,构造函数等) CTRL+E 最近更改的代码 CTRL+ALT+SPACE类名或接口名提示 CTRL+P方法参数提示 CTRL+Q可以看到当前方法的声明 Shift+F6重构-重命名 (包、类、方法、变量、甚至注释等) Ctrl+Alt+V提取变量 查询快捷键 Ctrl+Shift+Backspace可以跳转到上次编辑的地 CTRL+ALT+ left/right前后导航编辑过的地方 … Read more

linux安装kodexplorer

1.从可道云kodexplorer官网下载最新的版本,并解压到web根目录(/var/www/html) sudo wget http://static.kodcloud.com/update/download/kodexplorer4.36.zip(可下载至最新版本) sudo unzip kodexplorer4.36.zip -d /var/www/html/ cd /var/www/html/(进入kodexplorer web目录) 2.kodexplorer在安装的过程中需要对一些目录有写的权限,为此,web服务器用户(www-data对于基于Debian的系统)必须要拥有app、data、config目录的权限。运行以下命令完成: //#kodexplorer 目录下 sudo chown -R www-data:www-data data sudo chown -R www-data:www-data config sudo chown -R www-data:www-data app 3.打开浏览器,输入 http://IP/kodexplorer 就能访问了. 如果有权限问题, cd /var/www/html/ chmod -R 777 *