Tencent PaaS platform server usually by host companies named in the rules before deploying to the host platform planned host name, but in the actual implementation, you may not encounter planned deployment platform when the host name or host name is set incorrectly. So it is necessary to modify the host name after Tencent PaaS platform deployed. So how to modify the host name of the server platform, and how to modify the host name does not affect the operation of the platform, this paper to actual cases illustrate this problem.
Note: This version 2.5.0.14 Use Case Tencent PaaS Platform, Enterprise Edition
Rabbitmq role hostname modification
Rabbitmq Tencent PaaS Platform, Enterprise Edition deployment is planned for the two-machine deployment, if directly modify the host will lead Rabbitmq not start.
Rabbitmq the right to modify the host name of a cluster amend the following steps:
STEP 1
Use the command hostnamectl set-hostname host name, modify the host name.
Modify the host name before:
After modifying the host name:
STEP 2
Use the command vim / etc / hosts, modify resolve hostnames, require special attention is the need to retain older resolve host names. If you cancel the old host name resolution will lead to rabbitmq service can not start.
STEP 3
Restart rabbitmq.
Rabbitmq stop service, from the first node to stop, then stop the master node.
Start rabbitmq service, start the master node, and then start from the node.
Other roles to modify the host name
Other roles host name modification is relatively simple, compared to rabbitmq role to modify the host name, you do not need to / etc / hosts retained the old host name resolution records, as follows:
STEP 1
Use the command hostnamectl set-hostname host name, modify the host name.
Modify the host name before:
After modifying the host name:
STEP 2
STEP 3
After editing the host name, the PaaS platform Tencent once all services are restarted, make sure the host name of modifications to take effect.
Author: Boven
Quality Articles
Yun Uncertainty | you know CMDB and monitoring is what to do with it?
[Dry] four kinds Oracle DBaaS deployment mode, in which you use?
How to improve the monitoring issue, try to create a unified monitoring platform system business!