7-30

 1>  标签:

           tune2fs -L 123 /dev/vda3 ..................................修改卷标

           tune2fs -o ^acl /dev/vda3 .................................取消修改该卷标

      2>  交换分区:

          swapon -v /dev/vda3.........................................激活该分区

          swapon -s /dev/vda3.........................................查看

          mkswap /dev/vda3............................................格式化

         ext4可用mount激活,而swap只能用swapon激活

          注:此处的优先级与进程的优先级正好相反,即:数字越大,优先级越高

      3>  /proc/cpuinfo...............................................查看cpu信息

             AMD有svm;intel有vmx,则为支持虚拟化,有lm,则为支持64位系统

      4>  配置ifcfg-eth0

            DEVICE="eth0"

            ONBOOT="yes"

            BRIDGE="br0".................................通过  br0  桥接到eth0

          配置ifcfg-br0

            DEVICE="br0"

            BOOTPROTO="static"

            IPADDR="192.168.0.11"

            NETMASK="255.255.255.0"

            DNS1="192.168.0.254"

            ONBOOT="yes"

            TYPE="Bridge"

          /etc/init.d/network restart........................... .....重启网络

         注:若在配置上文件时添加【DELAY=0】,则可用PXE引导安装

      5>  单用户修改密码标准形式:  echo ****** | passwd --stdin root

      6>  引导:

          /boot/grub/grub.conf

          /etc/grub.conf

      7>  排错案例:

          /boot/grub/grub.conf.........................................系统引导文件

          mv /boot/grub/grub.conf /mnt..................................移走引导文件

          reboot,发现机子并不能启动,此时需要我们手动配置引导,开启后把引导文件放回/boot/grub/下即可

      

      8>  单用户启动时可以修改   ,

             console=ttyS0(1)..............................................系统启动时看不到启动信息

             enforcing=0 (1) ...............................................为0时表示启动后selinux为警告,1表示强制

你可能感兴趣的:(linux,职场,休闲,Linux学习,linux笔记)