当前位置: 首页 > news >正文

Oracle OCI 修改 Compute Instance Hostname

Oracle OCI 修改 Compute Instance Hostname

  • Oracle Linux 7 及之后的版本

Oracle Linux 7 及之后的版本

1, Update the /etc/hostname file with below command.

hostnamectl set-hostname <new name>

2, Edit the oci configuration file for hostnames as given below to update the needed value to 2.

vi /etc/oci-hostname.conf--- modify
PRESERVE_HOSTINFO=2
---

3, Edit the FQDN from OCI console GUI
go to compute instances
–> select the instance
–> scroll down
–> at the left bottom corner select attached VNIC under resources
–> edit appropriate VNIC
–> change hostname to update FQDN
–> update VNIC

4: Reboot the instance

5: Check the hostname with hostname command.

6: Check if FQDN is resolving.

host <ip adress>
or
nslookup <ip adress>

完结!

http://www.lryc.cn/news/61353.html

相关文章:

  • 垃圾收集算法面试总结
  • grep替换指定字符串方法
  • 主从模式、哨兵模式、集群模式(cluster)
  • 题目3180:蓝桥杯2023年第十四届省赛真题-互质数的个数======及探讨互质专题
  • Java 文件操作
  • 二叉树OJ题(C++实现)
  • grep -nr 命令查询字符串方式
  • AgentAI+ChatGPT给出答案-为什么即时通讯需要心跳
  • 跨平台跨端的登录流程及其安全设计
  • 如何在Java中创建临时文件?
  • Vue表单基本操作-收集表单数据
  • Android 一个获取网址时间的Demo
  • ijkplayer解码流程源码解读
  • 2023年值得关注的3个品牌趋势,帮你弯道超车
  • 软考-高级项目管理(二十)
  • RTMP协议深度解析:从原理到实践,掌握实时流媒体传输技术
  • 2023mathorcup数学建模ABCD思路分析
  • 普通家庭,千万不要投入大量时间和金钱,让孩子去苦学和培养AI机器人编程了...
  • C++学习(day2)
  • 软考 - IP地址与网络划分
  • Apifox软件的基础使用方式
  • 【Tensorflow】模型如何加载HDF文件数据集?
  • 校招又临近了,怎么在面试中应对设计模式相关问题呢?
  • padans关于数据处理的杂谈
  • 神经网络的理解
  • 夏驰和徐策带你从零开始学数据结构——哈希表
  • linux实现网络程序
  • FreeRTOS 队列(二)
  • 用python获取当前目录下的创建时间超过3天的所有python文件
  • 第五章 Linux实际操作——用户管理