安装 install ubuntu_14.04.1_openstack_juno.docx
文本预览下载声明
安装ubuntu 14.04.1juno一、环境准备:(默认密码这里都将设置为xmn2014qwer)获取openstack安装包# apt-get installubuntu-cloud-keyring# echo deb /ubuntu \trusty-updates/juno main /etc/apt/sources.list.d/cloudarchive-juno.list更新系统和内核# apt-get update apt-get dist-upgrade重启系统应用更新# reboot配置同步时间#?apt-get install ntp -y安装mysql数据库# apt-get install mariadb-server python-mysqldb -y 修改mysql配置文件/etc/mysql/f[mysqld]...# bind-address = 1default-storage-engine = innodbinnodb_file_per_tablecollation-server = utf8_general_ciinit-connect = SET NAMES utf8character-set-server = utf8 重启mysql服务# servicemysql restart 初始化mysql数据库# mysql_secure_installationChange the root password? [Y/n] nRemove anonymous users? [Y/n] yDisallow root login remotely? [Y/n] nRemove test database and access to it? [Y/n] yReload privilege tables now? [Y/n] y安装消息队列 ?Ubuntu使用RabbitMQ作为消息队列.# apt-get install rabbitmq-server -y# rabbitmqctlchange_password guest xmn2014qwer二、安装和配置keystoneA、安装keystone创建keystone数据库#mysql -u root -pmysql CREATE DATABASE keystone;mysql GRANT ALL PRIVILEGES ON keystone.* TO keystone@localhost \ IDENTIFIED BY xmn2014qwer;mysql GRANT ALL PRIVILEGES ON keystone.* TO keystone@% \ IDENTIFIED BY xmn2014qwer;mysql exit生成一个十位的随机数,作为admin_token# openssl rand -hex 10 ~/ADMIN_TOKEN安装 Identity服务# apt-get install keystone python-keystoneclient -y编辑/etc/keystone/keystone.conf:[DEFAULT]admin_token = e6504e86cbba88ad3c59verbose = True[database]connection = mysql://keystone:xmn2014qwer@controller/keystone[token]provider = viders.uuid.Providerdriver = keystone.token.persistence.backends.sql.Token初始化keystone数据库,创建相关数据库表# su -s /bin/sh -c keystone-manage db_sync keystone重启keystone服务# service keystone restart删除默认的keystone数据库# rm -f /var/lib/keystone/keystone.dbB、配置用户、tenants和角色# cat ~/ADMIN_TOKEN#export OS_SERVICE_TOKEN=e6504e86cbba88ad3c59# export OS_SERVICE_ENDPOINT=http://controller:35357/v2.0创建admin tenant# keystone tenant-create --name=admin --description=Admin Tenant创建admin用户# keystone user-create --name=admin --pass=a
显示全部