1、OpenStack基础环境搭建_第1页
1、OpenStack基础环境搭建_第2页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、1、 1.1、最化安装控制节点、计算节点、块存储节点等;1.2、分别设置各节点主机名,配置各节点络以及修改 1.3、分别验证各节点络互通(包括管理络和计算络);1.4、在所有安装Chrony,并进配置以进时间同步服务;控制节点下:设置使公共 NTP 服务器进时间同步控制节点下:添加使 server controller iburst# Allow NTP client access from local network.#allow 192.168/16allow 10.0.0.0/241.6、在所有节点验证时间同步服务# chronyc sources1.7、配置(随系统)启动# syste

2、mctl enable chronyd.service# systemctl start chronyd.service OpenStack库#yum installcentos-release-openstack-newton1.9、升级软件包(升级完成之后重启主机)#yum upgrade#NOTICE: 如果升级之后重启进 emergency mode ,使 fsck进件系统修复1.10、安装OpenStack客户端#yum installpython-openstackclient1.11、默认情况下,RHEL 和CentOS 启。安装软件包以动管理 OpenStack服务的安全策略o

3、penstack-selinux#yum installopenstack-selinux2.0、在控制节点上安装mysql数据库#yum installmariadb mariadb-server python2-PyMySQL/etc/f.d/f置件:mysqldbind-address =0.11(控制器管理IP)default-storage-engine = innodbinnodb_file_per_tablemax_connections = 4096 = utf8_general_cicharacter-set-server = utf82.2、配置(随系统)启动# syste

4、mctl enable mariadb.service# systemctl start mariadb.service2.3、保护数据库服务,特别是为数据库 帐户选择合适的密码(此步骤需要连接数据库,所以需要保证数据库服务已经启动)root# mysql_secure_installationNOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDBSERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!In order to log into Mar

5、iaDB to secure it, well need the currentpassword for the root user. If youve just installed MariaDB, andyou havent set the root password yet, the password will be blank,so you should just press enter here.Enter current password for root (enter for none):OK,successfully used password, moving on.Setti

6、ng the root password ensures that nobody can log into the MariaDBroot user without the proper authorisation.Set root password? Y/n yNew password:Re-enter new password:Password updated successfully!Reloading privilege tables. Success!By default, a MariaDB installation has an anonymous user, allowing

7、anyoneto log into MariaDB without having to have a user account created forthem. This is intended only for testing, and to make the installationgo a bit smoother. You should remove them before moving into aproduction environment.Remove anonymous users? Y/n y. Success!Normally, root should only be al

8、lowed to connect from localhost. Thisensures that someone cannot guess at the root password from the network.Disallow root login remotely? Y/n y. Success!By default, MariaDB comes with a database named test that anyone canaccess. This is also intended only for testing, and should be removedbefore mo

9、ving into a production environment.Remove test database and access to it? Y/n y- Dropping test database. Success!- Removing privileges on test database. Success!Reloading the privilege tables will ensure that all changes made so farwill take effect immediately.Reload privilege tables now? Y/n y. Suc

10、cess!Cleaning up.All done! If youve completed all of the above steps, your MariaDBinstallation should now be secure.Thanks for using MariaDB!3.1、在控制节点上消息队列服务安装# yum install rabbitmq-server3.2、配置(随系统)启动# systemctl enable rabbitmq-server.service# systemctl start rabbitmq-server.service3.3、添加openstack户# rabbitmqctl add_user openstack RABBIT_PASS3.4、设置配置、写、读取的访问权限# rabbitmqctl set_permissions openstack .* .* .*4.1、在控制节点上进 Memcached(分布式内存对象缓存系统)安装# yum install memcached python-

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论