开发者社区> 技术小阿哥> 正文
阿里云
为了无法计算的价值
打开APP
阿里云APP内打开

Ubuntu16.10安装Ocata之1:基础环境配置

简介:
+关注继续查看

使用两个节点手动安装OpenStack的Ocata版本

10.1.1.3     controller 

10.1.1.15   compute


控制节点配置

1、配置apt源

root@controller:~# apt install software-properties-common

root@controller:~# add-apt-repository cloud-archive:ocata

 Ubuntu Cloud Archive for OpenStack Ocata

 More info: https://wiki.ubuntu.com/ServerTeam/CloudArchive

Press [ENTER] to continue or ctrl-c to cancel adding it

Reading package lists...

Building dependency tree...

Reading state information...

The following NEW packages will be installed:

  ubuntu-cloud-keyring

0 upgraded, 1 newly installed, 0 to remove and 147 not upgraded.

Need to get 5,086 B of archives.

After this operation, 34.8 kB of additional disk space will be used.

Get:1 http://ports.ubuntu.com/ubuntu-ports xenial/universe ppc64el ubuntu-cloud-keyring all 2012.08.14 [5,086 B]

Fetched 5,086 B in 0s (5,433 B/s)

Selecting previously unselected package ubuntu-cloud-keyring.

(Reading database ... 52388 files and directories currently installed.)

Preparing to unpack .../ubuntu-cloud-keyring_2012.08.14_all.deb ...

Unpacking ubuntu-cloud-keyring (2012.08.14) ...

Setting up ubuntu-cloud-keyring (2012.08.14) ...

Importing ubuntu-cloud.archive.canonical.com keyring

OK

Processing ubuntu-cloud.archive.canonical.com removal keyring

gpg: /etc/apt/trustdb.gpg: trustdb created

OK


root@controller:/etc/apt/sources.list.d# cat cloudarchive-ocata.list

deb http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata main

# deb-src http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata main

root@controller:~# apt update && apt dist-upgrade 

root@controller:~# apt install python-openstackclient -y


2、安装配置MariaDB

root@controller:~# apt install mariadb-server python-pymysql -y

root@controller:~# cat /etc/mysql/mariadb.conf.d/99-openstack.cnf

[mysql]

bind-address = 10.1.1.3

default-storage-engine = innodb

innodb_file_per_table = on

max_connections = 4096

collation-server = utf8_general_ci

character-set-server = utf8

root@controller:~# service mysql restart

root@controller:~# service mysql status


3、安装memacached keystone nova neutron dashboard

apt install -y memcached python-memcache keystone glance nova-api nova-conductor nova-consoleauth nova-novncproxy nova-scheduler  neutron-server neutron-plugin-ml2  neutron-linuxbridge-agent neutron-l3-agent neutron-dhcp-agent   neutron-metadata-agent   openstack-dashboard


4、配置Rabbitmq-server服务

root@controller:~# apt install rabbitmq-server -y

root@controller:~# rabbitmqctl add_user openstack zoomtech

Creating user "openstack" ...

root@controller:~# rabbitmqctl set_permissions openstack ".*" ".*" ".*"

Setting permissions for user "openstack" in vhost "/" ...


5、配置memcached

root@controller:~# vim /etc/memcached.conf

-l 10.1.1.3

root@controller:~# service memcached restart

root@controller:~# service memcached status



本文转自 OpenStack2015 51CTO博客,原文链接:http://blog.51cto.com/andyliu/1902047,如需转载请自行联系原作者

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
允许Ubuntu系统下Mysql数据库远程连接
允许Ubuntu系统下Mysql数据库远程连接
27 0
ubuntu mysql 远程连接问题解决方法
在shell下输入mysql -uroot -p是可以登录的,所以问题应该是mysql不允许root用户远程登录的问题,于是通过输入下面命令: GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY 'password' WITH GRANT OPTION; 重启mysql后,发现还是连不上,于是想到是不是防火墙(ufw)或是iptables禁用了3306端口。
797 0
ubuntu 13.10 配置mysql5.5编码

1、打开配置文件

sudo gedit /etc/mysql/my.cnf

2、修改配置文件

876 0
Ubuntu16.04之开发环境构建
Ubuntu软件安装相对于centos而言,那真的是要愉快的多啊! 以下安装步骤,本人在公司的测试环境和开发环境以及之前个人虚拟机的测试或生产环境都测验过,基本没有问题,只要按照步骤来,即可马到成功!    mysql的安装   安装命令:sudo apt-get install mysql...
1250 0
ubuntu下安装lamp环境
使用普通用户来安装lamp环境: 1.安装apache:   sudo apt-get install apache2    输入:y   安装完成之后查看是否安装成功:     apache2 -v      2.
929 0
13688
文章
0
问答
文章排行榜
最热
最新
相关电子书
更多
低代码开发师(初级)实战教程
立即下载
阿里巴巴DevOps 最佳实践手册
立即下载
冬季实战营第三期:MySQL数据库进阶实战
立即下载