说明:
service apache2 restart 假如重启失败
重启时出现systemd[1]: Failed to start LSB: Apache2 web server https://stackoverflow.com/questions/35118773/systemd1-failed-to-start-lsb-apache2-web-server
解决办法:
mysql -uroot -p1234 -e "DROP DATABASE IF EXISTS keystone;"
init 6
复制代码
2、重新安装keystone数据库
进入数据库mysql -uroot -p1234创建数据库CREATE DATABASE keystone;赋予数据库权限,<KEYSTONE_DBPASS>为自界说密码 GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY '1234';
GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' IDENTIFIED BY '1234';退出数据库exit;
复制代码
3、同步数据库
su -s /bin/sh -c "keystone-manage db_sync" keystone
复制代码
4、创建`identity`服务实体
openstack service create --name keystone --description "OpenStack Identity" identity