sudo apt-get update
sudo apt-get upgrade
Error:
Traceback (most recent call last):
File “/usr/bin/pip”, line 11, in
sys.exit(main())
File “/usr/lib/python2.7/dist-packages/pip/__init__.py”, line 215, in main
locale.setlocale(locale.LC_ALL, ”)
File “/usr/lib/python2.7/locale.py”, line 581, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
export LC_ALL=C #语言环境配置出错
pip install –upgrade pip
sudo pip install -U os-testr
sudo apt-get install git
cd /home
设置stack用户
groupadd stack
useradd -g stack -s /bin/bash -d /opt/stack -m stack
passwd stack(设置密码)
添加stack用户权限
sudo echo “stack ALL=(ALL) NOPASSWD: ALL” >> /etc/sudoers
切换到stack用户
sudo su stack (su stack && cd)
sudo git clone https://git.openstack.org/openstack-dev/devstack
cd devstack/
sudo chown -R stack:stack /home/devstack
Create a local.conf file with 4 passwords preset at the root of the devstack git repo.
[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
HOST_IP=Your_Ip
./stack.sh