Installation Environment:
It can be centos, we recommend using ubuntu16.04
Add a stack user
sudo useradd-s/bin/bash-d/opt/stack-m stack
Add sudo permissions to a stack user
sudo tee <<< "stack all= (All) nopasswd:all"/etc/sudoerssudo Su-stack
Download the Devstark installation script
git clone https://git.openstack.org/openstack-dev/devstackcd Devstack
Note: This script will install Keystone,glance,nova,cinder,neutor,horizon
Create a file called local.conf
[[LOCAL|LOCALRC]] admin_password=secretdatabase_password= $ADMIN _passwordrabbit_password= $ADMIN _passwordservice_password= $ADMIN _ PASSWORD
Minimize the installation of Devstack
Bash./stack.sh
#这个过程根据所处的网络环境时间会有所增加, usually between 20-30 minutes;
Encounter the Pit
1, installation sometimes will appear need force=yes
[Email protected] $FORCE =yes./stack.sh
2. When the installation occurs, root cannot be sudo
Use Visudo to add the following line to the/etc/sudoers
Root all= (All) Nopasswd:all
This article from "Scottmaster" blog, declined reprint!
Ubuntu Installation Deployment Devstack