
linux
文章平均质量分 65
菜鸟-要努力
这个作者很懒,什么都没留下…
展开
-
centos 7使用yum报错“Could not resolve host: mirrorlist.centos.org; 未知的错误“
centos使用yum -y install报错"Could not resolve host: mirrorlist.centos.org; 未知的错误"Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was14: curl#6 - “Could not resolve host: mirrorlist.cent原创 2021-03-28 23:39:39 · 4378 阅读 · 1 评论 -
Mysq 数据备份docker容器备份数据+crontab定时器
Mysq docker容器备份数据该博客需要条件:linux 上按照docker按照mysql可以参考-https://www.cnblogs.com/zhi-leaf/p/10561766.html创建msyql 容器命令:docker run -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD=abc123 -v /etc/mysql.d:/etc/mysql/conf.d --name zyz-mysql mysql可以看出上面映射文件地址/etc/mysql.d原创 2021-01-06 16:28:04 · 212 阅读 · 2 评论 -
Navicat for MySQL 连接 Docker中运行的Mysql出现1251- Client does not support authentication protocol 错误
Navicat for MySQL 连接 Docker中运行的Mysql出现1251- Client does not support authentication protocol 错误原因:mysql 8.0 默认使用 caching_sha2_password 身份验证机制;客户端不支持新的加密方式。解决方案:修改用户(root)的加密方式步骤:1、进入mysql容器内部[root@localhost ~]# docker exec -it mysql01 bash进入之后输入如下命令:原创 2020-07-08 12:24:47 · 672 阅读 · 0 评论 -
shell脚本中解决SCP命令免密登录
应用场景:服务器之间远程传输文件二 服务器免密登录四台集群服务器AIPA47.110.129.242B172.16.214.209C172.16.214.251D172.16.214.251生成服务器公钥私钥文件在主机A上执行如下命令来生成配对密钥(id_rsa,id_rsa.pub):ssh-keygen -t rsa执行过程...原创 2020-03-04 12:32:40 · 3206 阅读 · 0 评论 -
tomcat查看日志命令
tail -f 实时查看日志文件 tail -f 日志文件logtail - 100f 实时查看日志文件 后一百行tail -f -n 100 catalina.out linux查看日志后100行tail -f …/logs/catalina.out| grep " aaat" 监听实时日志" aaat" 的内容输出搜寻字符串grep ‘搜寻字符串’ filename按ctrl+c...原创 2019-11-29 14:05:36 · 1289 阅读 · 0 评论 -
contos重新安装yum base-repo 源用
使用国内镜像如果自己的centos的系统yum源出现问题了,如何才能修复?方式一:使用国内的阿里云镜像(1)把/etc/yum.repos.d/下面所有的源给删除掉了(2)下载镜像CentOS 5wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repoCentOS 6...原创 2019-11-19 10:12:35 · 316 阅读 · 0 评论