找回密码
 注册
查看: 1139|回复: 0

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-3-9 10:00:03 | 显示全部楼层 |阅读模式
使用两个节点手动安装OpenStack的Ocata版本
/ o+ Z+ W; v; Z+ V10.1.1.3     controller
2 q& q! j( ~" X( P  W* Y4 q10.1.1.15   compute! z% n" A% `* ?$ ^
+ z" r) D$ Y" l7 O8 I* y8 }
控制节点配置
! Z' M6 T7 j2 p5 T+ R, a1、配置apt源" Q* `. Y/ d8 Y- Y; s" A( M
# apt install software-properties-common
, K  r4 Y2 h- F4 S# add-apt-repository cloud-archive:ocata
: N3 b" m- V8 U6 y& f. v Ubuntu Cloud Archive for OpenStack Ocata3 j/ z9 A) P. P* ]6 b; ?
More info: https://wiki.ubuntu.com/ServerTeam/CloudArchive
: _' `1 v: i* f% ~3 `- UPress [ENTER] to continue or ctrl-c to cancel adding it( O$ ~' }: M2 s  L  Q% Y( ]1 G
Reading package lists...) K8 Z( R# Y  F! b
Building dependency tree...
' i1 u2 o. N$ h6 mReading state information...
0 |( M! w% j6 Y' Y& N) @- f& x) `The following NEW packages will be installed:+ p3 H- Y% _) J* ]( q& C
  ubuntu-cloud-keyring
5 a& y% X) x2 Z; F6 T1 p3 R0 upgraded, 1 newly installed, 0 to remove and 147 not upgraded.
* X- _) s4 ^/ Q# V+ @. bNeed to get 5,086 B of archives.
, H2 L( E$ e5 |  ~5 i. w! l/ _After this operation, 34.8 kB of additional disk space will be used.4 O% K- e2 ]; I* F
Get:1 http://ports.ubuntu.com/ubuntu-ports   xenial/universe ppc64el ubuntu-cloud-keyring all 2012.08.14 [5,086 B]# |; D5 X! Y" @
Fetched 5,086 B in 0s (5,433 B/s)
5 i# R8 D0 Z7 v% R9 _- XSelecting previously unselected package ubuntu-cloud-keyring.6 J! n" R. B) R  K! c
(Reading database ... 52388 files and directories currently installed.)5 R( S" E. `' |; J( E8 }
Preparing to unpack .../ubuntu-cloud-keyring_2012.08.14_all.deb ...5 w& I. {$ M" Y0 U( J0 W  G# `+ {. t
Unpacking ubuntu-cloud-keyring (2012.08.14) ...
& D3 e& q$ b3 B- [" HSetting up ubuntu-cloud-keyring (2012.08.14) ...
% j+ C% p: S2 G/ bImporting ubuntu-cloud.archive.canonical.com keyring$ H$ D  y' p& l; @4 o' V: y2 H! ]# R. A8 u
OK0 o! g7 U% Y; t3 F
Processing ubuntu-cloud.archive.canonical.com removal keyring2 o1 n9 q( M% @
gpg: /etc/apt/trustdb.gpg: trustdb created1 k; M4 N3 X6 d! J+ n3 @, ?$ H
OK
+ @4 I) D- l9 h4 v# Z$ a. ]& P9 X/ y) z/ ?* [# l) A8 g
# cat cloudarchive-ocata.list
* D; R- B3 `5 u5 @) [deb http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata main2 a# \% {( m1 n; W0 m6 K; k% k7 I& C
# deb-src http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata main$ E$ C" D& o# R$ E9 U
# apt update && apt dist-upgrade : r2 P5 Y1 k, w6 @
# apt install python-openstackclient -y) D" W, V; E: ?" k6 n7 V& A

' i+ m9 j+ s% ~. P  r; n2、安装配置MariaDB
$ D" h' M: t+ r5 f; |" C: n) |# apt install mariadb-server python-pymysql -y
. g4 q0 O( J# X# m: N( f6 U/ n8 N# cat /etc/mysql/mariadb.conf.d/99-openstack.cnf
: G1 m3 C, Z$ }& ^[mysql]8 L! j. V/ u5 \) g9 N
bind-address = 10.1.1.3
! G: `: z0 Q8 r4 M# Ddefault-storage-engine = innodb+ G3 \9 P4 i: S2 \" _2 U
innodb_file_per_table = on" S) @# j: U. A1 d3 }* j  N
max_connections = 4096
. J9 |8 I) t4 [. P' n, fcollation-server = utf8_general_ci
3 I  W# Y6 W  k! P8 V2 }% Hcharacter-set-server = utf80 ]. H8 U( G7 I
:~# service mysql restart& X) w# Y. M8 e$ z/ `. ~8 Q
:~# service mysql status! j/ y9 Q; F1 t' a( B  L5 c

0 v4 K) h8 h. }' R. @/ R2 ?3、安装memacached keystone nova neutron dashboard% z% _( l* i# C8 e2 i
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-dashboard7 ~6 I8 @3 c3 f" W

+ H" E1 X  o; g8 t4、配置Rabbitmq-server服务1 V! p4 X8 A; Z" t3 y9 b; ~
:~# apt install rabbitmq-server -y
& ]" W. c) M# a; Q:~# rabbitmqctl add_user openstack zoomtech7 n2 I" @* m' E; C. w4 x
Creating user "openstack" ...1 z) }  ?- A( b$ L- y
:~# rabbitmqctl set_permissions openstack ".*" ".*" ".*"
& m# Z6 x" {: s6 s* Y+ M1 a( PSetting permissions for user "openstack" in vhost "/" ..., J5 i* R, j* i/ u

  v: G4 e/ S8 {3 `& n6 s5、配置memcached% Y5 a8 s" L$ q0 w4 Y, d$ A) T
:~# vim /etc/memcached.conf
& {; c0 m' g: |6 R+ u-l 10.1.1.3
# z( Y1 h4 |% F; Z  a2 P! U:~# service memcached restart
$ [. g" W# E/ H! r. v:~# service memcached status% y' V% r/ T  j' V
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:57 , Processed in 0.016120 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表