linux
文章平均质量分 56
蓝菱
愿终我一生,寻找到最初的美好
展开
-
how to install glusterfs
1. Install the latest rhel6 (recommend) 2. Install glusterfs package(glusterfs-xxx.el6rhs) brew:https://brewweb.devel.redhat.com/packageinfo?packageID=14351 Please pick up the package w原创 2015-06-18 17:48:21 · 438 阅读 · 0 评论 -
linux 中查看cpu的信息
#cat /proc/cpuinfo中的信息 processor 逻辑处理器的id。physical id 物理封装的处理器的id。core id 每个核心的id。cpu cores 位于相同物理封装的处理器中的内核数量。siblings 位于相同物理封装的处理器中的逻辑处理器的数量。 1 查看物理CPU的个数 #cat转载 2015-06-23 13:55:09 · 396 阅读 · 0 评论 -
linux grep命令
转自http://www.cnblogs.com/end/archive/2012/02/21/2360965.htm 1.作用 Linux系统中grep命令是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹 配的行打印出来。grep全称是Global Regular Expression Print,表示全局正则表达式版本,它的使用权限是所有用户。 2.格式 grep [o转载 2015-06-23 16:09:05 · 279 阅读 · 0 评论 -
linux问题的解决
1 boot a guest problem: /etc/qemu-ifup: could not launch network script qemu-kvm: -netdev tap,id=tap0,script=/etc/qemu-ifup: Device 'tap' could not be initialized solution: 1.检查tun模块是否编译进去 modpr原创 2015-06-11 15:26:59 · 861 阅读 · 0 评论 -
shell 语句的应用
# cat serial-pci.sh #!/bin/bash # set i to 0 i=0 while [ $i -le 32 ] do echo "{\"execute\":\"device_add\",\"arguments\":{\"driver\":\"virtio-serial-pci\",\"id\":\"virtio-serial$i\"}}" i=$(( i+1原创 2015-08-27 16:06:45 · 272 阅读 · 0 评论 -
linux命令总结
linux 学习笔记 以及遇到的问题的解决原创 2015-06-10 16:31:30 · 2233 阅读 · 2 评论 -
主機獲取不到ip的解決方法
原因由於配置文件ONBOOT="no"導致主機獲取不到ip 1 查看配置文件 $ cat /etc/sysconfig/network-scripts/ifcfg-eno1 DEVICE="eno1" NAME="eno1" ONBOOT="yes" TYPE=Ethernet HWADDR="24:be:05:0c:1e:92" BRIDGE="switch" BOOTPROT原创 2015-07-21 14:57:15 · 674 阅读 · 0 评论 -
配置網橋的case
step 1. Install latest version bridge-utils in host, you can use 'yum insatll' or 'rpm'. 2. Update the script to enable bridge, include the bridge script and the physical interface script: # cat /原创 2015-07-22 15:16:38 · 1333 阅读 · 0 评论