亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

CentOS Stream 8 手工搭建 OpenStack V 版(04 Placement)

小云
100
2023-10-14 13:49:02
欄目: 編程語言

在CentOS Stream 8上手工搭建OpenStack V版(04 Placement)的步驟如下:

  1. 安裝OpenStack軟件包和依賴項:
sudo dnf install centos-release-openstack-victoria
sudo dnf install openstack-placement-api
  1. 配置數據庫:
sudo mysql_secure_installation
sudo mysql
CREATE DATABASE placement;
GRANT ALL PRIVILEGES ON placement.* TO 'placement'@'localhost' \
IDENTIFIED BY 'PLACEMENT_DBPASS';
GRANT ALL PRIVILEGES ON placement.* TO 'placement'@'%' \
IDENTIFIED BY 'PLACEMENT_DBPASS';
  1. 配置身份驗證:
sudo openstack user create --domain default --password-prompt placement
sudo openstack role add --project service --user placement admin
sudo openstack service create --name placement \
--description "Placement API" placement
sudo openstack endpoint create --region RegionOne \
placement public http://controller:8778
sudo openstack endpoint create --region RegionOne \
placement internal http://controller:8778
sudo openstack endpoint create --region RegionOne \
placement admin http://controller:8778
  1. 編輯/etc/placement/placement.conf文件:
[placement_database]
connection = mysql+pymysql://placement:PLACEMENT_DBPASS@controller/placement
[api]
auth_strategy = keystone
[keystone_authtoken]
www_authenticate_uri = http://controller:5000/
auth_url = http://controller:5000/
memcached_servers = controller:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = placement
password = PLACEMENT_PASS
[placement]
os_region_name = RegionOne
[cors]
[placement_database]
connection = mysql+pymysql://placement:PLACEMENT_DBPASS@controller/placement
[api]
auth_strategy = keystone
[keystone_authtoken]
www_authenticate_uri = http://controller:5000/
auth_url = http://controller:5000/
memcached_servers = controller:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = placement
password = PLACEMENT_PASS
[placement]
os_region_name = RegionOne
[cors]
  1. 同步數據庫:
sudo su -s /bin/sh -c "placement-manage db sync" placement
  1. 啟動服務:
sudo systemctl enable httpd
sudo systemctl start httpd
sudo systemctl enable placement-api
sudo systemctl start placement-api

現在,您已經成功地在CentOS Stream 8上手工搭建了OpenStack V版(04 Placement)。

0
扎兰屯市| 德保县| 衢州市| 安图县| 横峰县| 玉环县| 兴城市| 昆明市| 资溪县| 正阳县| 松滋市| 苏尼特右旗| 即墨市| 安宁市| 乐亭县| 泰和县| 绥德县| 元朗区| 海淀区| 桦南县| 蒙阴县| 开封市| 六盘水市| 安塞县| 印江| 宜良县| 鹿邑县| 禹州市| 瑞金市| 迁西县| 油尖旺区| 儋州市| 瑞安市| 永济市| 科尔| 方城县| 磐安县| 施秉县| 定陶县| 青川县| 双鸭山市|