- 博客(5)
- 收藏
- 关注
原创 Mac ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘ (2)
1.切换到/opt/homebrew/opt/mysql@5.7/support-files2.执行sudo ./mysql.server start若报错:ERROR! The server quit without updating PID file (/opt/homebrew/var/mysql/xxx.lan.pid).执行:chown -R mysql /opt/homebrew/var/mysql/再次执行:sudo ./mysql.server startStartin
2022-02-21 18:28:03 588
原创 Centos8 Error: Failed to download metadata for repo ‘appstream‘
报错信息Error: Failed to download metadata for repo ‘appstream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist解决:wget 'http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/centos-gpg-keys-8-3.el8.noarch.rpm'sudo rpm -i 'centos-gpg-
2022-02-13 12:30:37 1262
原创 docker使用
一.安装dockercurl -sSL https://get.daocloud.io/docker | sh启动sudo systemctl start docker查看本地镜像docker images查看容器docker images查看所有容器docker images -a删除容器1.停止容器 docker stop + CONTAINER ID2.删除 docker rm + CONTAINER ID...
2021-12-31 15:36:33 1530
原创 Go编译报错“cgo: C compiler “x86_64-linux-musl-gcc“ not found:”
报错信息:cgo: C compiler “x86_64-linux-musl-gcc” not found: exec: “x86_64-linux-musl-gcc”: executable file not found in $PATH带CGO的交叉编译,CGO_ENABLED必须开启。这也就需要辅助编译器来帮我们实现交叉编译了。如果你是mac平台,可以用这个工具 FiloSottile/musl-cross/musl-cross 直接通过brew安装就可以使用1. brew install F
2021-12-13 12:30:04 4561
原创 yum安装nginx+mysql+php
centos7一、安装nginx1.使用yum安装nginx,安装nginx库rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm2.命令安装nginxyum -y install nginx3.启动nginxsystemctl start nginx #centos7查看nginx版本nginx -v4.防火墙防火墙允许通过80端口,查
2021-12-07 15:52:22 307
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人