01 2023 档案
摘要:查看磁盘空间时,执行 df -h 时,命令 hang 住了,一直没有反应! 这种问题,大概率是由于 mount 的目录被删除了,但是没有提前执行 umount 操作,因此报错! 解决方案: 查看 /etc/fstab 文件中是否有 mount 相关的目录,使用 umount -l 命令卸载无效挂载目
阅读全文
摘要:方案一: 全局安装n npm install -g n 安装最新稳定版 node n stable 安装最新版本 node n latest 安装某个具体node版本 n 14.16.1 删除某个版本 n rm 14.16.1 查看安装路径 n which 14.16.1 切换版本输入n回车 出现n
阅读全文
摘要:备份系统镜像源 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 下载阿里镜像源 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirror
阅读全文