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

wordpress | 迁移到 docker

记录从阿里云轻量应用服务器 (wordpress 应用) 迁移到 docker 部署,并针对博客的一些优化 ...

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

troubleshooting | H3C 服务器装完系统无法引导

记录一下在 H3C 服务器上系统无法引导的问题的解决 ...

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

pxe 安装 isoft-5.1(aarch64)

1 pxe 环境 dhcp+tftp+http pxe-server:isoft-serveros-v4.2(3.10.0-957.el7.isoft.x86_64) 引导的 iso:isoft-serveros-aarch64-oe1-v5.1(4.19.90-2003.4.0.0036.oe1.aarch64) 物理服 ...

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

linux | free 命令详解

centos 中 free 命令详解,以及 centos6 和 centos7 中 free 命令的不同 ...

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

H3C 服务器配置 raid

记录一下 H3C 服务器配置 raid 的过程

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

troubleshooting | glibc 的 fread 问题

0 前言 有需求需要在 openeuler 的操作系统上测试一个 C 程序,做了一个简化版的程序,程序很简单,循环读取一个文件并打印文件内容,在程序执行过程中使用 echo 手动向文件中追加内容,程序要能读取到,效果如下: 测试程序代码如下: #include<stdlib.h> #include<stdio.h> #include<unistd.h> int main(int argc, char **argv) { FILE *f = fopen("./Syslog.log", "rb"); if (f == NULL) return 1; char buffer[1024] = {0}; size_t len = 0; while(1) { len = fread(buffer, 1, sizeof(buffer), f); if (len > ...

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

shell | 服务器巡检脚本

代码如下 #!/bin/bash #参数定义 date=`date +"%Y-%m-%d-%H:%M:%S"` centosVersion=$(awk '{print $(NF-1)}' /etc/redhat-release) VERSION=`date +%F` #日志相关 LOGPATH="/tmp/awr" [ -e $LOGPATH ] || mkdir -p $LOGPATH RESULTFILE="$LOGPATH/HostCheck-`hostname`-`date +%Y%m%d`.txt" #调用函数库 [ -f /etc/init.d/functions ] && source /etc/init.d/functions export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin source /etc/profile #root用户执行脚本 [ $(id -u) -gt 0 ] && echo "请用root用户执行此脚本!" && exit 1 function version(){ echo "" echo "" echo "[${date}] >>> `hostname -s` 主机巡检" } function getSystemStatus(){ echo "" echo -e "\033[33m*** ...

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

kubernetes | kubeadm 搭建 K8s 集群 v1.22.3

介绍 kubernetes, 并在 centos 中使用 kubeadm 快速搭建 k8s 集群 v1.22.3、安装cni组件 ...

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

kolla-ansible 部署 openstack (Train) (all-in-one)

介绍 cenots 中使用 kolla-ansible+docker 的方式快速部署 openstack(all-in-one) 单节点 ...

创建: 2021-10-01 | 更新: 2024-01-28 | 字数: 4010字 | 作者: 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

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

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

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

openssl 源码打包编译成 rpm 包

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

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

httpd 源码打包编译成 rpm 包

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

创建: 2022-03-01 | 更新: 2024-01-28 | 字数: 381字 | 作者: lvbibir
1  ...  2 3 4  ...  9

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