lvbibir's Blog
  • 🔍 搜索
  • 📚 文章
  • 📈 归档
  • 💬 说说
  • 🤝 友链
主页 » 📚 文章

👨🏻‍💻 技术

不积跬步,无以至千里;不积小流,无以成江海

mysql | 杂记

0 下载地址 https://dev.mysql.com/downloads/mysql/ 1 常用 Sql 1.1 查看用户权限 SELECT u.user, u.host, d.db, u.select_priv, u.insert_priv, u.update_priv, u.delete_priv, u.create_priv, u.drop_priv, u.grant_priv FROM mysql.user u LEFT JOIN mysql.db d ON u.user = d.user ORDER BY u.user, u.host, d.db; 1.2 查看所有库的表数量 SELECT table_schema, COUNT(*) AS table_count FROM information_schema.tables WHERE table_type = 'BASE TABLE' GROUP BY table_schema; 1.3 加载的配置文件顺序 mysql --help |grep -i "my.cnf" /etc/mysql/my.cnf /etc/my.cnf ~/.my.cnf 1.4 查看库的表数量及占用空间 select table_schema as '数据库', table_name as '表名', table_rows as '记 ...

创建: 2022-05-01 | 更新: 2025-04-24 | 字数: 247字 | 作者: lvbibir

cicd | jenkins 部署 mall-swarm 项目

以 mall-swarm 项目为例,部署一套 jenkis + gitlab + docker的一套 CICD 流水线 ...

创建: 2022-03-15 | 更新: 2024-01-27 | 字数: 2333字 | 作者: lvbibir

httpd 源码打包编译成 rpm 包

记录一下 centos7 中通过源码构建 httpd rpm 包的过程 ...

创建: 2022-03-01 | 更新: 2024-01-28 | 字数: 381字 | 作者: lvbibir

openssl 源码打包编译成 rpm 包

记录一下 centos7 系统中通过源码构建 openssh rpm 包的过程 ...

创建: 2022-03-01 | 更新: 2024-01-28 | 字数: 298字 | 作者: lvbibir

centos7 | 修改网卡名称

介绍如何在 centos7 的系统中通过配置网络规则命名文件的方式修改网卡的名称 ...

创建: 2022-02-01 | 更新: 2024-01-26 | 字数: 185字 | 作者: lvbibir

ceph | pool pg_num 配置

介绍在 ceph 集群创建 pool 时 pg_num 参数如何配置以及较为通用的取值 ...

创建: 2022-02-01 | 更新: 2024-01-27 | 字数: 173字 | 作者: lvbibir

docker | 脚本方式批量导出/导入镜像

通过 shell 或者 python 的方式批量导入导出 docker 镜像 ...

创建: 2022-02-01 | 更新: 2024-01-27 | 字数: 291字 | 作者: lvbibir

centos 密码尝试次数过多问题处理

介绍 centos 系统中的 pam 模块,以及出现尝试密码次数过多如何处理 ...

创建: 2022-01-01 | 更新: 2022-01-01 | 字数: 150字 | 作者: lvbibir

centos7 | 升级内核至 5.10

0 前言 内核版本介绍: lt longterm 的缩写 长期维护版 ml mainline 的缩写 最新稳定版 本文参考以下链接: Linux 离线升级内核 elrepo kernel rpm packge directory 1 升级内核 查看内核版本 [dpl@test1 ~]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.5 (Maipo) 使用 wget 命令下载内核 RPM 包 [dpl@test1 ~]# wget https://dl.lamp.sh/kernel/el7/kernel-ml-5.10.81-1.el7.x86_64.rpm [dpl@test1 ~]# wget https://dl.lamp.sh/kernel/el7/kernel-ml-devel-5.10.81-1.el7.x86_64.rpm 安装内核 yum localinstall -y kernel-ml-5.10.81-1.el7.x86_64.rpm kernel-ml-devel-5.10.81-1.el7.x86_64.rpm 查看所有可用内核启动项 [dpl@test1 ~] awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg 0 : CentOS Linux (5.10.81-1.el7.x86_64) 7 (Core) 1 : CentOS Linux (3.10.0-1160.21.1.el7.x86_64) 7 (Core) ...

创建: 2022-01-01 | 更新: 2024-01-27 | 字数: 315字 | 作者: lvbibir

CVE-1999-0526

介绍如何在 centos6 中修复 CVE-1999-0526 披露的漏洞 ...

创建: 2022-01-01 | 更新: 2024-01-27 | 字数: 320字 | 作者: lvbibir

ceph | centos7 部署 ceph-v12

介绍在 centos7 环境中通过 ceph-deploy 部署 ceph-v12 (natuilus) 集群和可视化的 dashboard ...

创建: 2021-12-01 | 更新: 2024-01-27 | 字数: 2081字 | 作者: lvbibir

python | 修改 pip 源

1 清单 地址 中国科学技术大学 https://pypi.mirrors.ustc.edu.cn/simple 清华 https://pypi.tuna.tsinghua.edu.cn/simple 豆瓣 http://pypi.douban.com/simple 华中理工大学 http://pypi.hustunique.com/simple 山东理工大学 http://pypi.sdutlinux.org/simple 阿里云 https://mirrors.aliyun.com/pypi/simple/ 2 linux 环境 mkdir ~/.pip cat > ~/.pip/pip.conf << EOF [global] trusted-host=mirrors.aliyun.com index-url=https://mirrors.aliyun.com/pypi/simple/ EOF 3 windows 环境 打开 cmd 使用 dos 命令 set 找到 userprofile 路径,在该路径下创建 pip 文件夹,在 pip 文件夹下创建 pip.ini pip.ini 具体配置 [global] timeout = 6000 index-url = https://pypi.tuna.tsinghua.edu.cn/simple trusted-host = pypi.tuna.tsinghua.edu.cn 以上

创建: 2021-12-01 | 更新: 2024-01-28 | 字数: 110字 | 作者: lvbibir

troubleshooting | 安装 cloud-init 后导致 ssh 连接失败

0 前言 在 openEuler20.03 (LTS-SP1) 系统上进行一些测试,发现某个东西会自动修改 ssh 配置文件导致系统无法通过密码登录,最后排查是由于安装了 cloud-init 导致的。 排查思路 出现这个问题前做的操作是安装了一些项目组同事指定的包,问题就应该出在这些包上 yum install -y telnet rsync ntpdate zip unzip libaio dos2unix sos vim vim-enhanced net-tools man ftp lrzsz psmisc gzip network-scripts cloud-init cloud-utils-growpart tar libnsl authselect-compat 大致看了下,除了 cloud-Init 和 cloud-utils-growpart 这两 ...

创建: 2021-12-01 | 更新: 2024-01-28 | 字数: 668字 | 作者: lvbibir

windows | autohotkey 常用脚本

0 前言 基于 autohotkey v1 版本 使用方法: 安装 autohotkey 后, 将下述代码保存为 .ahk 文件, 双击执行即可 如需开机自启, 在 运行 中执行 shell:startup, 将 .ahk 文件放到自启动目录即可 1 prtsc 改为 shift insert 我的机械键盘是 80 配列, 没有 insert, shift+insert 几乎是所有软件都支持的粘贴方式, 遂将很不常用的 prtsc 键改为 shfit+insert 的组合键 PrintScreen::+Insert 2 typora 快捷修改字体颜色 实现 alt + 数字键快速将光标 ...

创建: 2021-12-01 | 更新: 2024-01-28 | 字数: 307字 | 作者: lvbibir

通过反编译修改 rpm 包内的文件

0 前言 本文参考以下链接: 修改 rpm 中的文件重新打包 要修改 rpm 包中的文件,对于自己编译的 rpm 包,只需要在源码中修改好然后重新编译即可。而对于并不是自己编译的 rpm 包,且不熟悉编译环境的情况下,可以使用 rpm-build 和 rpm-rebuild 工具反编译来修改 rpm 中的文件 这里使用 ceph-mgr 软件包进行演示 1 安装 rpm-build&rpmrebuild rpmrebuild 官网 rpmrebuild 下载地址 解压 rpmrebuild [root@localhost ~]# mkdir -p ...

创建: 2021-12-01 | 更新: 2024-01-28 | 字数: 724字 | 作者: lvbibir
1  ...  5 6 7  ...  8

| 总访客数: | 总访问量:
京ICP备2021023168号-1  | Copyright © 2020-2025 lvbibir's Blog