1 问题 环境: CentOS7.8.2003 (x86 / 64bit) 版本: RabbitMQ 3.6.15 (Erlang 19.3) 安装方式: 二进制源码压缩安装 2 解决思路 2.1 思路1 关闭进程,并重启 step1 查询mq的进程 ps -ef | grep rabbitmq s ...
分类:
系统相关 时间:
2020-06-19 12:23:47
阅读次数:
130
最近在搭建Docker + Sonarqube + postgresql 结果因为一些环境配置问题导致无法正常启动sonarqube的镜像,总是在start容器之后几秒就自动exit. 这时候,需要查看容器运行失败的原因,我们就需要用到下面的命令: docker logs -f -t --tail= ...
分类:
其他好文 时间:
2020-06-19 12:21:49
阅读次数:
49
k8s:py项目发布流程 1. 编写Dockerfile # cat Dockerfile FROM python:3.6-slim USER root RUN apt-get update && apt-get install gcc -y && \ apt-get clean && \ rm - ...
分类:
其他好文 时间:
2020-06-18 21:39:50
阅读次数:
71
修改nginx 的配置文件/etc/nginx/nginx.conf http { log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_ref ...
分类:
系统相关 时间:
2020-06-18 21:31:42
阅读次数:
81
MySQL备份,使用xtrabackup备份全实例数据时,会造成锁等待吗?那么如果使用mysqldump进行备份呢? 一、xtrabackup和mysqldump会造成锁等待吗? xtrabackup会,它在备份时会产生短暂的全局读锁FTWL(flush table with read lock), ...
分类:
数据库 时间:
2020-06-18 19:55:12
阅读次数:
95
MySQL每天产生了多大容量的binlog,用SQL语句能查到吗? 首先,这是个假设性命题(又一个钓鱼题)。 这个需求完全可以通过系统层命令,配合MySQL中的“FLUSH BINARY LOGS”快速完成。 运行SHOW MASTER/BINARY LOGS命令能查看全部binlog列表,但没办法 ...
分类:
数据库 时间:
2020-06-18 19:31:34
阅读次数:
60
https://www.cnblogs.com/sien6/p/8056315.html 1 按文件大小排序 使用 ll -S | grep '^[^d]' // 格式化文件大小形式 ll -Sh | grep '^[^d]' 2 按文件修改时间排序显示 使用 ll -rt 3 设置ls -l命令中 ...
分类:
编程语言 时间:
2020-06-18 19:29:23
阅读次数:
69
/var/log : where the linux put the logs /var/log/cron on system cron tasks /var/log/cups/ something about the printer /var/log/dmesg/ system self chec ...
分类:
系统相关 时间:
2020-06-18 19:21:13
阅读次数:
56
问题:有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少? #! /usr/bin/env python3 # -*- coding:utf-8 -*- # Author : Ma Yi # Blog : http://www.cnblogs.com/mayi0312/ ...
分类:
编程语言 时间:
2020-06-18 16:09:52
阅读次数:
78
1、mysql cmd进入dos命令,输入mysql -u root -P 1202 -h localhost -p敲回车输入密码 use mysql; 修改用户名root为其他用户 update user set user='rootadmin' where user='root'; 修改完成之后 ...
分类:
数据库 时间:
2020-06-18 10:26:41
阅读次数:
105