zoukankan      html  css  js  c++  java
  • centos6.5系统bash损坏之救援模式修复

    1.模拟bash被损坏的情况


    # mv /bin/bash /tmp
    [root@localhost ~]# sync
    [root@localhost ~]# shutdown -r now


    2.挂载光盘,设置从光盘启动


    选择并进入系统修复模式





    创建
    # mkdir /media
    # mount /dev/dvd /media


    # cd /media/Packages
    # rpm -ivh bash-4.1.2-15.el6_4.x86_64.rpm --replacepkgs --root /mnt/sysimage

    # chroot /mnt/sysimage



    完成修复

  • 相关阅读:
    Redis
    Redis
    Redis
    Redis
    Redis
    Redis
    Distributed
    Sentinel
    Archi
    Redis
  • 原文地址:https://www.cnblogs.com/reblue520/p/6239800.html
Copyright © 2011-2022 走看看