PaaS platform Tencent | how hostname wrong to do?

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.

c28ead7084b942b3b16630f1c363453d.png

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:

e1d446dc2755425692c46f746215c95a.png

After modifying the host name:

77dee5f4b5d344cba6d548cd3f89607e.png

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.

aee1a9c1487745a88fc0ed08e8ffbf2e.png

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.

ef434cbdc1ea42a88b62518221bcdca7.png

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:

6e0a00dbf45f4feabab2574f0384e76a.png

After modifying the host name:

6628272995b84126be5222ceef280a56.png

STEP 2

28e7a6716d41491e925864aad497668b.png

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

Redis persistence introduced

4 major steps to save 30% waste, optimize the cost of enterprise cloud from the cloud began to understand!

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!


Guess you like

Origin blog.51cto.com/11811406/2458459