使用root登录

smit tcpip
Further Configuration

修改IP
Network Interfaces
Network Interface Selection
Change / Show Characteristics of a Network Interface
en0     Standard Ethernet Network Interface

修改主机名
Hostname
set the Hostname

保存后退出

修改etc/hosts文件中 IP和主机名对应关系

重启服务器

请注意,修改了IP和主机名,涉及到的脚本也需要修改,否则,会造成脚本运行错误。

相关文章:

  • 2021-11-27
  • 2021-09-20
  • 2021-12-18
  • 2021-09-26
  • 2022-02-07
  • 2021-10-07
  • 2021-04-30
猜你喜欢
  • 2021-12-25
  • 2021-07-01
  • 2022-12-23
  • 2022-01-04
  • 2022-02-05
  • 2022-01-23
  • 2022-12-23
相关资源
相似解决方案