当前位置:网站首页>Openstack node address change
Openstack node address change
2022-07-03 12:38:00 【Brother Xing plays with the clouds】
Normally in the production environment ,OpenStack Each node will do HA, You can use the domain name mechanism to manage nodes .
But sometimes if you use IP Address , Once it changes IP Need to update the configuration .
If you want to change it , There are mainly two aspects of information .
One is the configuration file , Basically all in /etc/ Under the table of contents .
You can start with grep Look under the address to see if it can be directly replaced , If you can , perform
$ sed -i "s/old_ip/new_ip/g" `grep old_ip -rl /etc` that will do .
The other is database , This is slightly more complicated .
commonly openstack There are multiple databases in database, What needs to be modified is keystone database Of endpoint In the table . Log in to sql after , The order is as follows
mysql>use keystone;
mysql> update endpoint set -> url=replace(url,'1.1.1.1','2.2.2.2');
Others are like token Contents in the table or others database Chinese content , You can see whether it needs to be modified according to your own situation .
Finally, restart all related services , Or simply restart the machine .
边栏推荐
猜你喜欢

阿里大于发送短信(用户微服务--消息微服务)

2.7 overview of livedata knowledge points

Alibaba is bigger than sending SMS (user microservice - message microservice)

Swagger

雲計算未來 — 雲原生

(最新版) Wifi分销多开版+安装框架

Shutter: overview of shutter architecture (excerpt)

剑指Offer04. 二维数组中的查找【中等】

Cloud Computing future - native Cloud

云计算未来 — 云原生
随机推荐
alright alright alright
T430 toss and install OS majave 10.14
剑指Offer05. 替换空格
242. Effective letter heteronyms
232. Implement queue with stack
Oh my Zsh + TMUX installation
(最新版) Wifi分销多开版+安装框架
实现验证码验证
elastic_ L04_ introduction. md
Adult adult adult
Swift return type is a function of function
Sqoop1.4.4原生增量导入特性探秘
Dart: self study system
Use bloc to build a page instance of shutter
temp
init. RC service failed to start
【附下载】密码获取工具LaZagne安装及使用
[combinatorics] permutation and combination (example of permutation and combination)
在网上炒股开户可以吗?资金安全吗?
2020-09_ Shell Programming Notes