Skip to content

ijidan/jsocial

Repository files navigation

jsocial

服务预览

服务 预览地址
consul http://localhost:8500/
grafana http://localhost:3000/
jaeger http://localhost:16686/search
Prometheus http://localhost:9090/graph
AlertManager http://localhost:9093

GO相关环境搭建

环境 地址
go 1.18 https://go.dev/
Protocol buffer compiler, protoc https://grpc.io/docs/protoc-installation/
Go plugins for the protocol compiler http://localhost:16686/search

protoc相关命令行工具

go install \
    github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \
    github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 \
    google.golang.org/protobuf/cmd/protoc-gen-go \
    google.golang.org/grpc/cmd/protoc-gen-go-grpc \
    github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc \
    github.com/envoyproxy/protoc-gen-validate

GO配置环境变量

export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:/home/jidan/go/bin

WSL中通过Docker启动Mysql报错

错误

 jidan@jidan: docker-compose logs deployments-db-1
 deployments-db-1   | mysqld: Cannot change permissions of the file 'private_key.pem' (OS errno 1 - Operation not permitted)
 deployments-db-1   | 2020-09-10T05:04:53.449233Z 0 [ERROR] [MY-010295] [Server] Could not set file permission for private_key.pem
 deployments-db-1   | 2020-09-10T05:04:53.449629Z 0 [ERROR] [MY-010119] [Server] Aborting

解决办法

  • 创建wsl配置文件
 jidan@jidan: sudo touch /etc/wsl.conf
  • 编辑wsl配置文件
 jidan@jidan: sudo vim /etc/wsl.conf
  • 添加内容
 [automount]
 options = "metadata"
  • 退出wsl
 jidan@jidan:  exit
  • 关闭wsl
 wsl --shutdown
  • 重新进入wsl
 wsl

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published