synchronization
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
2025-08-25 15:57:40 +08:00
commit cee91802b3
106 changed files with 9124 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
> 本文作者:丁辉
# Linux启动进入急救模式
**报错如下**
```bash
Generating "/run/initramfs/rdsosreport.txt"
Entering emergency mode. Exit the shell to continue.
Type "journalctl" to view system logs.
You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot after mounting them and attach it to a bug report.
:/#
```
**问题分析**
> XFS(dm-0)有元数据损坏。
**问题解决方案:**
1. 查看系统日志
```bash
journalctl -r
```
日志如下
```bash
# 查看红色报错()内名称
XFS (dm-0):******
# 或如 vda1 类报错
```
2. 使用()内名称查询对应映射区
```bash
ls -l /dev/mapper
```
3. xfs 修复
```bash
xfs_repair -v -L /dev/dm-0
```
4. 最后退出急救模式重启启动成功
完美解决

View File

@@ -0,0 +1,23 @@
> 本文作者:丁辉
# Linux命令无法执行
**报错**`Input/output error`
> 原因: 这可能为硬盘坏道、锁死等问题导致。
**问题解决方案:**
1. 直接重启内核, 执行命令激活 "CONFIG_MAGIC_SYSRQ" 选项
```bash
echo 1 > /proc/sys/kernel/sysrq
```
2. 重启设备
```bash
echo b > /proc/sysrq-trigger
```
完美解决

View File

@@ -0,0 +1,15 @@
> 本文作者:丁辉
# Python 连接 Mysql 发生错误
**报错:**
<img src="https://minio.offends.cn:9000/offends/images/mysql.png" style="zoom: 50%;" />
**问题解决方案:**
```bash
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'password';
```
完美解决

View File

@@ -0,0 +1,29 @@
> 本文作者:丁辉
# RabbitMQ启动报错
**报错: `Reason: "no access to this vhost"`**
> 原因vhost 迁移或宕机导致 vhost 不可用,使得无法通过这个 vhost 广播消息
**问题解决方案:**
1. 删除vhost
```bash
rabbitmqctl delete_vhost /
```
2. 重建vhost
```bash
rabbitmqctl add_vhost /
```
3. 授权
```bash
rabbitmqctl set_permissions -p / admin '.*' '.*' '.*'
```
完美解决

View File

@@ -0,0 +1,56 @@
> 本文作者:丁辉
# Ubuntu缺失libc.so.6问题
**报错: `* /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_*' not found(*) `**
检查版本
```bash
strings /lib/x86_64-linux-gnu/libc.so.6 |grep GLIBC_
```
显示结果
```bash
GLIBC_2.*
····
GLIBC_2.*
GLIBC_PRIVATE
```
**问题解决方案**:
1. 编辑源
```bash
vi /etc/apt/sources.list
```
2. 添加内容
> 国外源
>
> ```bash
> deb http://th.archive.ubuntu.com/ubuntu jammy main
> ```
国内源
```bash
deb http://mirrors.tencentyun.com/ubuntu jammy main
```
3. 运行升级
```bash
apt update
```
4. 安装
```bash
apt install libc6 -y
```
完美解决