logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

GOPATH set to GOROOT (/usr/local/go) has no effect

这个警告信息指出 GOPATH 环境变量被设置为与 GOROOT 相同的值。GOPATH 环境变量用于指定 Go 工作区的位置,而 GOROOT 指定 Go 安装的位置。将 GOPATH 设置为 GOROOT 表示 Go 工作区和 Go 安装位置位于同一目录,这是不推荐的。为了解决此问题,您应该将 GOPATH 设置为不同的目录。

文章图片
#golang#开发语言#后端
docker-compose安装gitlab

官网:https://docs.gitlab.com/ee/install/docker.htmlyaml文件version: '3.6'services:web:image: 'gitlab/gitlab-ce:latest'restart: alwayshostname: 'gitlab.example.com'environment:GITLAB_OMNIBUS_CONFIG: |exter

#docker#ssh#git
k8s部署报错:the server could not find the requested resource

报错信息:the server could not find the requested resource标题查看资源列表:kubectl api-resources | grep ClusterRole查看这里的版本跟yaml文件不一致导致的。所以只要修改版本号即可。部署ClusterRole yamlapiVersion: rbac.authorization.k8s.io/v1beta1ki

#kubernetes#docker#容器
npm如何设置仓库地址

遇到的问题:在vue项目中npm如何设置仓库地址呢?

文章图片
#npm#vue.js#前端
Spring Cloud Stream 4.0.4 rabbitmq 发送消息多function

spring.cloud.stream.bindings.demo-in-0.destination配置项的值。注意当多个消费者时,需要添加配置项:spring.cloud.function.definition。

文章图片
#rabbitmq#spring cloud
VMware虚拟机挂载宿主机共享目录

1.在VMware中设置共享文件夹:2.在Linux中安装vm-tools:yum install -y open-vm-tools open-vm-tools-desktop或者是3.挂载:查看共享的目录# vmware-hgfsclientdata1执行命令挂载目录mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other,nonemp

#linux#centos#服务器
Docker run 命令

Docker run 命令docker run :创建一个新的容器并运行一个命令语法docker run [OPTIONS] IMAGE [COMMAND] [ARG…]OPTIONS说明:-a stdin: 指定标准输入输出内容类型,可选 STDIN/STDOUT/STDERR 三项;-d: 后台运行容器,并返回容器ID;-i: 以交互模式运行容器,通常与 -t 同时使用;-P: 随机端口映射,

#docker
k8s部署报错:the server could not find the requested resource

报错信息:the server could not find the requested resource标题查看资源列表:kubectl api-resources | grep ClusterRole查看这里的版本跟yaml文件不一致导致的。所以只要修改版本号即可。部署ClusterRole yamlapiVersion: rbac.authorization.k8s.io/v1beta1ki

#kubernetes#docker#容器
docker如何将运行中的容器保存为docker镜像

使用docker commit和docker save保存镜像$ sudo docker commit <当前运行的container id> <仓库名称>:$ sudo docker save -o <仓库名称>-.img <仓库名称>:示例如下:$ sudo docker ps34750a2ca5e8requarks/wiki:2

#docker#ssh#git
麒麟v10操作系统 安装docker

麒麟服务器默认没有安装docker,需要手动安装。

#docker#linux#运维
暂无文章信息