简记
dnice
积硅步,至千里。
展开
-
mac m1 docker: failed to solve with frontend dockerfile.v0: failed to create LLB definition
mac m1 docker: failed to solve with frontend dockerfile.v0: failed to create LLB definition原创 2022-10-24 14:33:05 · 728 阅读 · 0 评论 -
【简记】no matching manifest for linux/arm64/v8 in the manifest list entries
mac m1arm架构芯片 pull mysql镜像,error。原创 2022-07-22 17:34:15 · 2928 阅读 · 2 评论 -
【简记】解决IDE golang 代码飘红报错
使用goland 进行go语言编程时,需要配置 go module, 否则IDE可能无法识别部分库,表现出代码飘红且无法跳转。进行如下配置:图片输入内容如下,可直接copy原创 2022-06-21 10:40:21 · 1853 阅读 · 0 评论 -
【简记】go: module github.com/gin-gonic/gin: Get “xxx“ dial tcp 142.251.43.17:443: i/o timeout
问题enic-demo % go get github.com/gin-gonic/gingo: module github.com/gin-gonic/gin: Get "https://proxy.golang.org/github.com/gin-gonic/gin/@v/list": dial tcp 142.251.43.17:443: i/o timeout解决执行如下两行go env -w GO111MODULE=ongo env -w GOPROXY=https://gopr原创 2022-05-19 21:14:32 · 1051 阅读 · 0 评论 -
【简记】grafana查询clickhouse数据面板
添加数据源如图1,关注Type、Name、URL、Save&test创建面板add Query如图2,关注数据源、库、表、timestamp列select可视化原创 2022-05-07 18:47:26 · 632 阅读 · 0 评论 -
【简记】mysql alter主键类型int->bigint
alter命令:alter table `test` modify column `id` bigint(20) NOT NULL;alter table `test1` modify column `id` bigint(20) NOT NULL;alter table `test2` modify column `id` bigint(20) NOT NULL;修改前:desc test;+-------------------------+--------------+------+原创 2022-04-29 11:05:47 · 2209 阅读 · 0 评论 -
【简记】rpm安装、卸载、查询
RPMRPM 是Red-Hat Package Manager(红帽软件包管理器)的缩写,这一文件格式名称虽然打上了RedHat的标志,但是其原始设计理念是开放式的,包括OpenLinux、S.u.S.E.以及Turbo Linux等Linux的分发版本都有采用,可以算是公认的行业标准了。rpm包名介绍:clickhouse-client-20.9.3.45-2.noarch.rpm名称版本号操作系统clickhouse-client20.9.3.45-2noarch原创 2022-04-28 17:44:31 · 649 阅读 · 0 评论 -
【简记】Failed to download metadata for repo ‘appstream‘: Cannot prepare internal mirrorlist: No URLs in
问题centos8 yum 报错:Error: Failed to download metadata for repo ‘appstream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist详细信息如下:CentOS Linux 8 - AppStream 4.2 B原创 2022-04-27 19:47:42 · 1919 阅读 · 0 评论 -
【简记】docker run grafana 指定存储DB为Mysql
step1修改 defaults.ini 配置文件配置项,涉及如下配置项:type = mysqlhost = 127.0.0.1:3306name = grafanauser = rootpassword = 123456配置示例:step2docker run -d -p 3000:3000 -v /home/defaults.ini:/usr/share/grafana/conf/defaults.ini --name enic-grafana grafana/grafana-原创 2022-04-25 17:31:23 · 1494 阅读 · 0 评论 -
【简记】docker run nginx 指定配置文件
step 1docker pull nginxstep 2make -p /etc/nginx/conf.dstep 3vim enic.conf copy如下配置,根据自己业务场景稍加改动即可。upstream enic { server 127.0.0.1:8090;}server { listen 8000; listen [::]:8000; server_name enicdemo.com; client_max_body_size 1024m; l原创 2022-04-20 20:59:24 · 2365 阅读 · 0 评论