zoukankan      html  css  js  c++  java
  • chapter 8.3

    1. [root@localhost ~]# fdisk /dev/sdb 欢迎使用 fdisk (util-linux 2.23.2)。

    更改将停留在内存中,直到您决定将更改写入磁盘。 使用写入命令前请三思。

    Device does not contain a recognized partition table 使用磁盘标识符 0x81db43c9 创建新的 DOS 磁盘标签。

    命令(输入 m 获取帮助):n Partition type:    p   primary (0 primary, 0 extended, 4 free)    e   extended Select (default p): p 分区号 (1-4,默认 1):1 起始 扇区 (2048-41943039,默认为 2048): 将使用默认值 2048 Last 扇区, +扇区 or +size{K,M,G} (2048-41943039,默认为 41943039): 将使用默认值 41943039 分区 1 已设置为 Linux 类型,大小设为 20 GiB

    命令(输入 m 获取帮助):wq The partition table has been altered!

    Calling ioctl() to re-read partition table. 正在同步磁盘。

    fdisk /dev/sdd n p 1 回车 回车 Wq

    fdisk /dev/sdd n p 1 回车 回车 Wq

    2. [root@localhost ~]# mdadm -Cv /dev/md5 -l5 -n3 /dev/sd[bcd]1 mdadm: layout defaults to left-symmetric mdadm: layout defaults to left-symmetric mdadm: chunk size defaults to 512K mdadm: size set to 20954112K mdadm: Defaulting to version 1.2 metadata mdadm: array /dev/md5 started.

    3. [root@localhost ~]# pvcreate /dev/md5   Physical volume "/dev/md5" successfully created

    4. [root@localhost ~]# vgcreate myvg /dev/md5   Volume group "myvg" successfully created

    5. [root@localhost ~]# lvcreate -L 10G -n mylv myvg   Logical volume "mylv" created.

    6. [root@localhost ~]# mkfs -t xfs /dev/myvg/mylv log stripe unit (524288 bytes) is too large (maximum is 256KiB) log stripe unit adjusted to 32KiB meta-data=/dev/myvg/mylv         isize=256    agcount=16, agsize=163712 blks          =                       sectsz=512   attr=2, projid32bit=1          =                       crc=0        finobt=0 data     =                       bsize=4096   blocks=2619392, imaxpct=25          =                       sunit=128    swidth=256 blks naming   =version 2              bsize=4096   ascii-ci=0 ftype=0 log      =internal log           bsize=4096   blocks=2560, version=2          =                       sectsz=512   sunit=8 blks, lazy-count=1 realtime =none                   extsz=4096   blocks=0, rtextents=0

    7. yum -y install gcc gcc-c++ make

    [root@localhost Packages]# yum -y install gcc gcc-c++ make

    [root@localhost ~]# tar -xf httpd-2.2.17.tar.gz -C  /usr/src

    [root@localhost ~]# cd /usr/src/httpd-2.2.17/

    [root@localhost httpd-2.2.17]# ./configure --prefix=/usr/local/apache

    [root@localhost httpd-2.2.17]# make

    [root@localhost httpd-2.2.17]# make install

    [root@localhost httpd-2.2.17]# cd /usr/local/apache/conf/

    [root@localhost conf]# cp httpd.conf httpd.conf.bak

    [root@localhost conf]# vi /usr/local/apache/conf/httpd.conf

    [root@localhost conf]# /usr/local/apache/bin/apachectl start

    [root@localhost conf]# yum -y install lynx

    [root@localhost conf]# lynx 127.0.0.1

    [root@localhost conf]# mount /dev/myvg/mylv /usr/local/apache/htdocs/

  • 相关阅读:
    CocosIDE导出Android APK的注意事项
    C++14尝鲜:Generic Lambdas(泛型lambda)
    silverlight调用WebService传递json接收绑定数据
    解决考试系统高并发数据载入不对问题
    汇编入门学习笔记 (九)—— call和ret
    Java SerialPort SDK
    how tomcat works 总结 二
    linux下多线程的调试
    垃圾回收GC:.Net自己主动内存管理 上(二)内存算法
    HDU-4973-A simple simulation problem.(线段树)
  • 原文地址:https://www.cnblogs.com/baoqingrui/p/11303694.html
Copyright © 2011-2022 走看看