当前位置:网站首页>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 .
边栏推荐
- Kung Fu pays off, and learning is done
- Take you to the installation and simple use tutorial of the deveco studio compiler of harmonyos to create and run Hello world?
- Flutter 退出登录二次确认怎么做才更优雅?
- temp
- Keep learning swift
- Dart: view the dill compiled code file
- Implement verification code verification
- 实现验证码验证
- Summary of error prone knowledge points: Calculation of define s (x) 3*x*x+1.
- Introduction to concurrent programming (II)
猜你喜欢

Eureka self protection

1-2 project technology selection and structure

Summary of error prone knowledge points: Calculation of define s (x) 3*x*x+1.

Solve the problem of VI opening files with ^m at the end

Use Tencent cloud IOT platform to connect custom esp8266 IOT devices (realized by Tencent continuous control switch)

Sword finger offer05 Replace spaces

使用BLoC 构建 Flutter的页面实例

Cloud Computing future - native Cloud

Wechat applet - basic content

LeetCode 0556.下一个更大元素 III - 4步讲完
随机推荐
239. Sliding window maximum
Computer version wechat applet full screen display method, mobile phone horizontal screen method.
Kung Fu pays off, and learning is done
Implement verification code verification
Eureka自我保护
实现验证码验证
RedHat5 安装Socket5代理服务器
Is it safe to open an account for online stock speculation? Who can answer
lambda与匿名内部类的区别
2.7 overview of livedata knowledge points
[combinatorics] permutation and combination (summary of permutation and combination content | selection problem | set permutation | set combination)
Fundamentals of concurrent programming (III)
Summary of development issues
Applet wxss introduction
Flutter 退出登录二次确认怎么做才更优雅?
alright alright alright
error: expected reference but got (raw string)
剑指Offer03. 数组中重复的数字【简单】
Integer string int mutual conversion
Sqoop1.4.4原生增量导入特性探秘