I. Modifying host names1. Zero modification[Email protected] network-scripts]# hostname jw07And then you can see that our hostname has been modified.2. Permanently modify the host name[Email protected]/]# Hostnamectl set-hostname LiutaoRestart CentOS to see the changesTwo. How to turn off the CentOS firewall1. Zero-off[Email protected] ~]# Systemctl stop Firewall
value of HOST_NAME (), and then we can filter the data with dynamic filter such as "Filter_column = HOST_NAME ()":
CREATE TABLE orders (OrderID int not null, Filter_column char (), Quantity int)
Go
INSERT into orders values (1, ' Nanjing ', 100)
INSERT into orders values (2, ' Suzhou ', 200)
INSERT into orders values (3, ' Hangzhou ', 120)
INSERT into orders values (4, ' Hangzhou ', 100)
Go
But what do we do with dynamic filter if the data in our table doesn't exactly match the SUSE
Tags: hostname oracle Start#刚开始直接root用户登录, in the ETC directory, switch to Oracle, enter LSNRCTL start to start Oracle prompt "Lsnrctl:command not found"
[[Email protected]_test etc]# su Oracle
[[email protected]_test etc]$ lsnrctl start
bash:lsnrctl:command not found#切换回root用户, cd/root directory, again su-oracle, input lsnrctlstart start Oracle, this time it's OK. [[emailprotected]_test~]$cd/[[Emailprotected]_test/]$su-root su
:invalidoption-- ' R '
Cause: The company network interface to do the interface authentication, the virtual machine bridge to the physical network card can not complete authentication network access, but can only say that the virtual machine network mode changed to NAT mode, after the completion of the SSH login, found that the host name has changed.Found the host name into a bogon, very angry, look very uncomfortable, try to change back.View several related files[[emailprotected] ~]# vi /etc/sysconfig/networkNETWORKI
Under Linux, there is a tool called Nslookup, which uses the reverse DNS protocol to query the IP address for the corresponding hostname.Like what:Nslookup 10.0.0.5You can query the corresponding hostname for this IP.Nslookup hongchangfirst.amazon.comThe IP corresponding to this hostname can be queried.According to hostname how to query IP, directly ping can be d
View
Copy Code code as follows:
[Root@rdo ~]# hostname
Rdo
[Root@rdo ~]# Hostname-f
Rdo.test.com
To achieve this effect, you need to modify two files
Edit/etc/sysconfig/network, you need to join a line, remember hostname, must be uppercase.
Copy Code code as follows:
# cat/etc/sysconfig/network
Networking=yes
ObjectiveIn the use of CDH cluster process, it will inevitably cause the node IP or hostname changes due to some irresistible reasons, and CM's monitoring interface can not complete these things, but CM will all the hosts in the cluster information is in the PostgreSQL database hosts table,Now let's do this by modifying the hosts.The first step is to close the service1. Turn off the Cluster service, and Cloudera Management services,2. Close cm Service
Modify the IP address, hostName, and cdh5hostname of the host node in the cdh5 cluster.Preface
When using the cdh cluster, it is inevitable that the node IP address or hostName changes due to some irresistible reasons, and the cm monitoring interface cannot complete these tasks, however, cm stores all host information in the hosts table of the postgresql database,
Now let's modify the hosts to complete this
Generally, when we see a Bad Request (Invalid Hostname) error on the website, we will say that it is iis. If there is a problem with apache, the solution to this problem in iis is probably: IIS> default website> Properties> website> IP Address: (all unallocated)> advanced, there is a host header value, or you can directly restart iis to solve the problem.
The website access error "Bad Request (Invalid Hostname
Modify the Hosts file, vi/etc/hosts, generally can not remove the localhost, removed after zookeeper and other frameworks may be problematic, as follows:
1234
127.0.0.1localhost.localdomainlocalhost192.168.1.91master192.168.1.93slave1192.168.1.94slave2
192.168.1.91 is both native localLinux modifies the native alias/etc/hosts hostname often does not take effect, at this time there are 2 kinds of scenarios
Resta
We know that when doing experiments, sometimes operate multiple machines at the same time, when operating more than one machine, not a clear hostname is a very headache, a little bit of mind, it is possible to operate the error, the following will take you around to modify the hostname operation
One display, the next restart when the modification failure, easy to distinguish at that time
1.1 E
${db2dir?} /instance/db2isrv-addfcm-i ${instname?} ${db2isrvopts?}
If [$?-eq 3]; Then
Db2isrv
${db2dir?} /instance/db2isrv-addfcm-i ${instname?} ${db2isrvopts?}
If [$?-eq 3]; Then
Display_msg ${db2cat?} 922 \
' dbi1922n the host name is not valid.\n '
is when Db2isrv-addcfm-i ${instname?} ${db2isrvopts returns to 3 when the host name is not correct.
This db2isrv found a lot of things, did not find specific content, look at the name is to add a servi
1 IP Address, host name, and domain nameThe IP address is the computer's identity in the network, which is beyond doubt.But in the public network? IP address bad memory, then use the domain name.Similarly, in the LAN? The IP address is also not good memory, then the host name.2 Use of host namesIn the LAN, if we have three hosts, each to do a different thing, one to do mail server, one to do FTP server, one to do SMB server,So we can design hostname;1
Tags: mysqld kill-9 lib erro var sed linux. So tarMySQL cannot be restarted, cannot be shut down, cannot be started, unusable, if it is because the hostname has been modified, this can be resolved: Shut down all MySQL processes, and then start some mysql! Today nothing to see their host name is wrong, and then changed to distinguish the server, that only restart MySQL when the following error occurred: MySQL Manager or server PID file could not being
Tags: hostname img No serve pre Windows installation blog Access ServiceWhen you connect MySQL jdbc, it throws aCom.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:Communication link failure, message from Server: "Can ' t get hostname for your address"Error, whether it is using jdbc:mysql://127.0.0.1:3306 or jdbc:mysql://localhost:3306, this error has occurred.This error means "your address
Tag: ORACLE12C RAC hostname is invalidTo build an Oracle 12c RAC cluster on the Windows 2012 64-bit Enterprise Edition, the Hosts file is as follows:#add for RAC Config11.14.72.83 Rac111.14.72.84 RAC1-VIP192.168.0.1 Rac1-priv11.14.72.85 RAC211.14.72.86 RAC2-VIP192.168.0.2 Rac2-priv11.14.72.87 ScanipTwo machines to ping each other is not a problem, the pre-check batch is also completely passed, but in the installation of the cluster piece grid is promp
Article Title: how to modify the Hostname settings in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
You need to modify two files:
1. vi/etc/hosts
The content of/etc/hosts is generally similar to the following:
127.0.0.1 localhost. localdomain localhost
192.168.1.195 debian. localdomain debian
Modify:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.