当前位置:网站首页>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 .
边栏推荐
- Slf4j log facade
- Shutter: overview of shutter architecture (excerpt)
- Swift return type is a function of function
- Keep learning swift
- MySQL time zone solution
- Flinksql can directly create tables and read MySQL or Kafka data on the client side, but how can it automatically flow and calculate?
- Introduction to concurrent programming (II)
- Dix règles de travail
- 十條職場規則
- Bert running error: attributeerror: module'tensorflow contrib. tpu' has no attribute 'InputPipelineConfig'
猜你喜欢
The latest version of blind box mall thinkphp+uniapp
【ArcGIS自定义脚本工具】矢量文件生成扩大矩形面要素
Sword finger offer03 Repeated numbers in the array [simple]
What is more elegant for flutter to log out and confirm again?
剑指Offer04. 二维数组中的查找【中等】
With pictures and texts, summarize the basic review of C language in detail, so that all kinds of knowledge points are clear at a glance?
Solve the problem of VI opening files with ^m at the end
Togaf certification self-study classic v2.0
(最新版) Wifi分销多开版+安装框架
记录自己vulnhub闯关记录
随机推荐
双链笔记·思源笔记综合评测:优点、缺点、评价
Is it OK to open an account for online stock speculation? Is the fund safe?
The difference between lambda and anonymous inner class
【ManageEngine】IP地址扫描的作用
Shell: basic learning
[combinatorics] permutation and combination (example of permutation and combination)
Kung Fu pays off, and learning is done
What is more elegant for flutter to log out and confirm again?
idea将web项目打包成war包并部署到服务器上运行
Slf4j log facade
Kubectl_ Command experience set
2.7 overview of livedata knowledge points
elastic_ L01_ summary
023 ([template] minimum spanning tree) (minimum spanning tree)
2020-11_ Technical experience set
剑指Offer04. 二维数组中的查找【中等】
The future of cloud computing cloud native
02_ Lock the code, and don't let the "lock" become a worry
Take you to the installation and simple use tutorial of the deveco studio compiler of harmonyos to create and run Hello world?
init. RC service failed to start