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

转载于:https://www.cnblogs.com/lens/p/4830501.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值