zoukankan      html  css  js  c++  java
  • 2、为三块硬盘分区
    [root@localhost ~]# fdisk /dev/sdf
    欢迎使用 fdisk (util-linux 2.23.2)。

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

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

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

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

    Calling ioctl() to re-read partition table.
    正在同步磁盘。
    [root@localhost ~]# fdisk /dev/sde
    欢迎使用 fdisk (util-linux 2.23.2)。

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

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

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

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

    Calling ioctl() to re-read partition table.
    正在同步磁盘。
    [root@localhost ~]# fdisk /dev/sdg
    欢迎使用 fdisk (util-linux 2.23.2)。

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

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

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

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

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


    3、创建RAID 5

    [root@localhost ~]# mdadm -C /dev/md55 -l 5 -n 3 /dev/sd[efg]


    4、创建物理卷

    [root@localhost ~]# pvcreate /dev/md5

    5、创建卷组

    [root@localhost ~]# vgcreate vg /dev/md5

    6、创建逻辑卷

    [root@localhost ~]# lvcreate -L +30G -n lv vg

    7、格式化逻辑卷

    [root@localhost ~]# mkfs.xfs /dev/vg/lv

    8、安装apache

    yum -y install gcc gcc-c++

    tar xf httpd-2.2.17.tar.gz -C /usr/src

    cd /usr/src/httpd*

    ./configure --prefix=/usr/local/apache && make && make install

    cd /usr/local/apache/conf/
    ServerName www.example.com:80
    /usr/local/apache/bin/apachectl start

    yum -y install lynx
    lynx 127.0.0.1

    9、挂载
    [root@localhost ~]# mount -0 usrquota,grpquota /dev/vg/lv /usr/local/apache/htdocs

    10、磁盘配额
    [root@localhost ~]# quotacheck -auvg
    [root@localhost ~]# quotaon -avug

    11、创建index.html
    [root@localhost ~]# cd /usr/local/apache/htdocs
    [root@localhost htdocs]# vim index.html

  • 相关阅读:
    Behavior Targeting 技术研究
    LINQ的Distinct总结
    当为业务逻辑层(BLL,Service)提供基类之后,程序变得了更加面向对象了
    MVC中,查询以异步呈现,分页不用异步的解决方案
    基础才是重中之重——面向抽象编程(抽象类的多态性)
    基础才是重中之重——派生类集合与基类集合可以相互转换吗?
    让你的 Nginx 的 RTMP 直播具有统计某频道在线观看用户数量的功能
    转发一个最新HEVCH.265码流分析软件
    PHP性能优化大全(整理)
    “灭”了国外的mini sql !
  • 原文地址:https://www.cnblogs.com/chenyingdong/p/11342229.html
Copyright © 2011-2022 走看看