欢迎来到天天文库
浏览记录
ID:37712390
大小:48.26 KB
页数:21页
时间:2019-05-29
《Openstack部署手册》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、目录一、服务器配置2二、组件安装3三、数据库安装配置4四、Keystone配置4五、glance配置7六、nova配置8七、dashboard配置11八、镜像制作11附件一:配置文件11附件二:安装错误处理18一、服务器配置1、下载ubuntu12.04.服务器版本。地址:http://releases.ubuntu.com//precise/ubuntu-12.04-beta2-server-amd64.iso2、安装OS操作系统最小化安装,只需要安装sshserver,其他组件不需要。操作系统安装好需要更新源里的包、系统。确保装
2、的是最新版本的包。命令如下:apt-getupdateapt-getupgrade注:更新时网络代理配置如下:root@ubuntu:/opt#cat/etc/apt/apt.confAcquire::http::Proxy"http://133.64.81.236:8080/";3、root权限zhang@ubuntu:~$sudopasswd[sudo]passwordforzhang:EnternewUNIXpassword:RetypenewUNIXpassword:passwd:passwordupdatedsuccess
3、fully4、网络配置root@ubuntu:/opt#cat/etc/network/interfaces#Thisfiledescribesthenetworkinterfacesavailableonyoursystem#andhowtoactivatethem.Formoreinformation,seeinterfaces(5).#Theloopbacknetworkinterfaceautoloifaceloinetloopback#Theprimarynetworkinterfaceautoeth0ifaceeth0i
4、netstaticaddress133.64.96.26netmask255.255.255.128network133.64.96.0broadcast133.64.96.127gateway133.64.96.1#dns-*optionsareimplementedbytheresolvconfpackage,ifinstalleddns-nameservers133.64.96.1autoeth1ifaceeth1inetstaticaddress192.168.3.130netmask255.255.255.128netwo
5、rk192.168.3.128broadcast192.168.3.255二、组件安装1、bridge配置使用apt-get安装如下:apt-getinstallbridge-utils/etc/init.d/networkingrestart2、NTP配置apt-getinstallntp编辑/etc/ntp.conf在末尾添加下面3行serverntp.ubuntu.comiburstserver127.127.1.0fudge127.127.1.0stratum10重启服务servicentprestart3、iscsi配置a
6、pt-getinstalltgt/etc/init.d/tgtstartapt-getinstallopen-iscsiopen-iscsi-utils4、rabbitmq配置apt-getinstallrabbitmq-servermemcachedpython-memcacheapt-getinstallkvmlibvirt-bin三、数据库安装配置1、安装数据库apt-getinstallmysql-serverpython-mysqldb编辑/etc/mysql/my.cnf,允许网络访问mysql#bind-address
7、=127.0.0.1bind-address=0.0.0.0重启mysql服务/etc/init.d/mysqlrestart2、创建相关数据库mysql-uroot-p123456CREATEDATABASEnova;GRANTALLPRIVILEGESONnova.*TO'nova'@'%'IDENTIFIEDBY'123456';CREATEDATABASEglance;GRANTALLPRIVILEGESONglance.*TO'glance'@'%'IDENTIFIEDBY'123456';CREATEDATABASEke
8、ystone;GRANTALLPRIVILEGESONkeystone.*TO'keystone'@'%'IDENTIFIEDBY'123456';quit四、Keystone配置1、keystone的安装apt-getinstall
此文档下载收益归作者所有