Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Tencent PaaS platform | what if the hostname is set incorrectly?

2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Tencent PaaS platform servers usually plan hostnames for hosts according to the enterprise's host naming rules before platform deployment. However, in the actual implementation work, hostnames may not be planned or set incorrectly during platform deployment. Therefore, you need to modify the host name after the Tencent PaaS platform is deployed. Then how to modify the hostname of the platform server, how to modify the hostname does not affect the operation of the platform, this paper uses an actual case to illustrate this problem.

Note: this case uses Tencent PaaS Enterprise Edition 2.5.0.14

Rabbitmq role hostname modification Rabbitmq is planned as a dual-machine deployment in Tencent PaaS platform Enterprise Edition deployment. If you modify the host directly, Rabbitmq will not be able to start.

The correct steps to modify the Rabbitmq cluster hostname are as follows:

STEP 1

Modify the hostname using the command hostnamectl set-hostname hostname.

Before modifying the hostname:

After modifying the hostname:

STEP 2

Use the command vim / etc/hosts to modify the resolution of the host name, with special attention to the need to retain the resolution of the old host name. Canceling the resolution of the old hostname will cause the rabbitmq service to fail to start.

STEP 3

Restart rabbitmq.

Stop the rabbitmq service, stop the slave node first, and then stop the master node.

Start the rabbitmq service, first the master node, and then the slave node.

Other role hostname modification is relatively simple. Compared with rabbitmq role modification hostname modification, there is no need to keep the resolution record of the old hostname in / etc/hosts, as follows:

STEP 1

Modify the hostname using the command hostnamectl set-hostname hostname.

Before modifying the hostname:

After modifying the hostname:

STEP 2

STEP 3

After the modification of the host name, restart all services of Tencent PaaS platform to ensure that the modification of the host name takes effect.

Author: fan Bowen

Introduction to Redis persistence of high-quality articles

4 big steps to save 30% waste, optimizing enterprise cloud cost starts with understanding cloud!

Operation and maintenance staff think about it. Do you know the relationship between CMDB and monitoring?

[practical information] which of the four Oracle DBaaS deployment models are you using?

How to improve the monitoring problem, try to create a unified enterprise monitoring platform system!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report