zoukankan      html  css  js  c++  java
  • Cloudstack 4.5基础网络架构部署——cloudstack management server(01)

    分为两部分:

      1.网络环境

      2.管理服务器安装

    1.1选择服务器

      CentOS-6.6-x86_64-minimal.iso

    1.2设置ifcfg-eth0

    Vi /etc/sysconfig/network-scripts/ifcfg-eth0
    
    DEVICE=eth0
    HWADDR=52:54:00:B9:A6:C0
    NM_CONTROLLED=no
    ONBOOT=yes
    BOOTPROTO=none
    IPADDR=172.16.101.127
    NETMASK=255.255.0.0
    GATEWAY=172.16.101.252
    DNS1=8.8.8.8
    DNS2=8.8.4.4

    1.3设置Hostname

    Vi /etc/sysconfig/network 
    ...
    NAMEHOST=cloudstack01
    
    
    Vi /etc/hosts
    ...
    172.16.101.127 cloudstack01

    1.4关闭Selinux

    setenforce 0 
    
    
    vi /etc/selinux/config
    
    # This file controls the state of SELinux on the system.
    # SELINUX= can take one of these three values:
    # enforcing - SELinux security policy is enforced.
    # permissive - SELinux prints warnings instead of enforcing.
    # disabled - No SELinux policy is loaded.
    SELINUX=permissive
    # SELINUXTYPE= can take one of these two values:
    # targeted - Targeted processes are protected,
    # mls - Multi Level Security protection.
    SELINUXTYPE=targeted

    service network restart

    1.5设置yum源

    Vi /etc/yum.repo.d/cloudstack
    
    [cloudstack]
    name=cloudstack
    baseurl=http://cloudstack.apt-get.eu/rhel/4.5/
    enabled=1
    gpgcheck=0

    1.6安装NTP服务

    yum -y install ntp
    chkconfig ntpd on
    service ntpd start

    2.1安装MySQL

     yum -y install mysql-server
    
    vi /etc/my.cnf
    [mysqld]
    ...
    innodb_rollback_on_timeout=1
    innodb_lock_wait_timeout=600
    max_connections=350
    log-bin=mysql-bin
    binlog-format = 'ROW'
    ...

    service mysqld start
    chkconfig mysqld on

    2.2安装cloudstack且连接数据库

    yum -y install cloudstack-management
    cloudstack-setup-databases cloud:172.16.101.127@localhost --deploy-as=root:123456
    /etc/init.d/cloustack-management start
  • 相关阅读:
    jvm基本结构和解析
    多态的意思
    java中对象的简单解读
    double类型和int类型的区别
    python 解析xml文件
    win10不能映射Ubuntu共享文件
    Qt程序打包
    Ubuntu boot分区文件误删,系统无法启动,怎么解
    ubuntu Boot空间不够问题“The volume boot has only 5.1MB disk space remaining”
    Ubuntu 分辨率更改 xrandr Failed to get size of gamma for output default
  • 原文地址:https://www.cnblogs.com/lens/p/4830501.html
Copyright © 2011-2022 走看看