当前位置:网站首页>Method of changing host name (permanent)
Method of changing host name (permanent)
2022-06-29 06:56:00 【Dreamer DBA】
Two methods of modifying host names
1、 Method 1 : Use hostnamectl command
# Permanently set the user name , No failure after shutdown
[[email protected] ~]# hostnamectl set-hostname datbase
[[email protected] ~]# hostname
database
1
2
3
2、 Method 2 : Modify the configuration file /etc/hostname Save and exit
Get into vi, Delete old hostname , Enter the new host name ,Esc Post colon wq Exit save
[[email protected] ~]# vi /etc/hostname database
Restart and take effect
[[email protected] ~]#reboot
边栏推荐
猜你喜欢

QT serial port programming

Testing grpc service with grpcui

配置Flutter开发环境

Json对象和Json字符串的区别

2022.02.15 - 240. Lucky number in matrix

How does schedulerx help users solve distributed task scheduling problems?

Labor skills courses integrated into steam Education

Hyperledger Fabric 2. X custom smart contract

Introduction to Ceres Quartet

Delete tag
随机推荐
Chapter IV introduction to FPGA development platform
[MySQL technology topic] technical analysis and guide for analyzing the high availability architecture of MySQL
Two methods for preorder traversal of binary tree
WDCP访问不存在的路径全部跳转到首页不返回404的解决办法
分享 10 个 JS Promise 相关的面试题
As a qualified network worker, you must master DHCP snooping knowledge!
The annual technology inventory of cloud primitives was released, and it was the right time to ride the wind and waves
Servlet version conflict causes page 404
Introduction to Ceres Quartet
Output of character pointer to string in C language
力扣每日一题-第30天-594.最长和谐子序列
How does schedulerx help users solve distributed task scheduling problems?
Qt QFileInfo简介
Unity ar shadow shadow
Why should enterprises do more application activities?
flutter配置国内镜像,连接真机
UVM authentication platform
力扣每日一题-第30天-1523.位1的个数
[when OSPF introduces direct connection routes, it makes a summary by using static black hole routes]
Small program large screen adaptation Guide