How to configure the hostname of redhat image in openstack
This article mainly shows you "how to configure the hostname of redhat image in openstack". It is easy to understand and clear. I hope it can help you solve your doubts. Let me lead you to study and learn this article "how to configure the hostname of redhat image in openstack".
/ etc/hosts
[root@host-192-168111188] # cat / etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6127.0.0.1 host-192
/ etc/sysconfig/network
[root@host-192-168111188] # cat / etc/sysconfig/networkNETWORKING=yesHOSTNAME=localhost.localdomain
Tnsnames.ora and listener.ora
[root@host-192-16811118admin] # cat listener.ora# listener.ora Network Configuration File: / oracle/11g/oracle/product/11.2.0/dbhome_2/network/admin/listener.ora# Generated by Oracle configuration tools.SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = v4omcr) (ORACLE_HOME = / oracle/11g/oracle/product/11.2.0/dbhome_2) (SID_NAME = v4omcr) LISTENER = (DESCRIPTION_LIST= (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = localhost) (PORT = 1521) ADR_BASE_LISTENER = / oracle/11g/ oracle [root @ host-192-16811118admin] # cat tnsnames.oraV4OMCR = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = localhost) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = v4omcr) V4OMCR_192.168.111.118 = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = localhost) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = v4omcr)) V4OMCR_127.0.0.1 = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = localhost) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = v4omcr)) LISTENER_V4OMCR = (ADDRESS = (PROTOCOL = TCP) (HOST = localhost) (PORT = 1521)) above are all the contents of the article "how to configure the hostname of redhat images in openstack" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!