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
  • 相关阅读:
    C++数据类型之实型(浮点型)&科学计数法
    C++之数据类型--整形&sizeof关键字
    C++之关键字&标识符命名规则
    C++之常量
    C++之变量
    zabbix3.x添加华为(93069306)网络设备详解
    一些最常见的SNMP的OID自动翻译成zabbix数字进行表示(华为9306)
    Linux:日期用法,及格式定义
    linux awk命令详解
    Bash常用快捷键及其作用
  • 原文地址:https://www.cnblogs.com/lens/p/4830501.html
Copyright © 2011-2022 走看看