问题一、解决Linux:bash: mysql: 未找到命令…
查看MySQL服务是否启动
systemctl status mysql
查看MySQL运行环境
echo $PATH(可查看所有服务位置)
暂停MySQL服务
service MySQL stop
在/etc/profile配置系统环境变量
export PATH=$PATH:(MySQL的bin目录)
让profile文件立即生效
source /etc/profile或./etc/profile
抄录于秀_儿
二、文件搜索失败: cannot update repo ‘appstream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist
解决 Failed to search for file: cannot update repo ‘appstream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist
因为Centos 8已经停止维护,所以需要改变镜像。
cd /etc/yum.repos.d/sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
抄录于Javier_Ji
来源地址:https://blog.csdn.net/qq_61407171/article/details/129418117