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
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
Project error cannot find host name solutionSometimes our project is running locally without problems, but it's a mistake to deploy to a Linux server.Error: Java.net.UnknownHostException: hostname: hostname cannot find host name.Workaround:Modify the/etc/hosts file on the server127.0.0.1 localhost localhost.localdomain Add the desired host nameOr127.0.0.1 localhost Localhost.localdomain127.0.0.1 Add the des
CentOS Modify host name (hostname)
CentOS Modify host name (hostname)
Two places need to be modified: One is/etc/sysconfig/network, the other is/etc/hosts, and modifying any one of these will cause the system to boot abnormally. First switch to root user. /etc/sysconfig/network
Open the file in any of your favorite editors, with a line of Hostname=localhost.lo
hostname commandThe hostname command is used to display and set the host name of the system. The environment variable hostname also holds the current host name. After you use the hostname command to set the hostname, the system does not permanently save the new host name, af
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:
Tags: blog http OS file SP 2014 C on LogChange host name permanentlyOne of the methods mentioned on the Internet is to modify the/etc/sysconfig/network file.Set hostname = localhost. localdomainChanged to what you want, but the configuration in the file centos7 is empty. It will not work if you add the file and restart it.Finally, the/etc/hosts file was modified,My file does not have the master after the localhost on the first line. After adding the f
The machine already exists in the salt, in order to standardize, need to rename this batch of hostOperation Flow: Remove the machine from master, modify the host name of the machine, rename the minion_id and PKI directories in the/etc/salt directory, and restart the Salt-minion service (after the Mster segment can monitor the host again, can delete the file renamed above)Environment: http://www.cnblogs.com/zzzhfo/p/6126223.htmlRename the salt-client-01 to salt-minion-01
Remove salt-clie
Modify Host name : "Change inside HOSTNAME can"
Vim/etc/sysconfig/network
Nic Eth0 IP modified to 102.168.0.1
Ifconfig eth0 102.168.0.1 netmask 255.255.255.0
Gateway modified to 102.168.0.254
Route add default GW 102.168.0.254
Linux command line modify DNS
echo "NameServer 202.202.202.20" >>/etc/resolv.conf
Can be modified with the VIM command, multiple DNS can be multiple nameserver, one line a
1. Modify the/etc/sysconfig/network configuration fileVi/etc/sysconfig/networkModify hostnameHostname=new-hostname.domainnameMy network changed to:Hostname=redhat5.xiaomu.com.2. Modify the local domain name resolution file/etc/hosts, so that the native application can resolve the new host name.Vi/etc/hostsWill 127.0.0.1 Localhost.localdomain localhostInstead: 127.0.0.1 new-hostname.domainname new-hostname mine is.127.0.0.1 redhat5.xiaomu.com redhat5 R
Environment:System hardware: VMware vsphere (cpu:2*4 core, memory 2G, dual NIC)System version: Centos-7.0-1406-x86_64-dvd.isoInstallation steps:1. Virtual system Installation1.1 Use the VMware virtual machine to read the ISO for installation. Install the interface after startup1.2 Select the Install CentOS7 for language selection1.3 Select Simplified Chinese and go to the information summary1.4 Click "Install Location", select the hard disk that the system needs to install, click "Finish".1.5 Cl
all. Unfortunately, if the IP address is for this host changes, you are also have to also update the file. This May is a concern for a single server and but can become laborious if it has to being done companywide. For ease of management, it's often easiest to limit entries in this file to just the loopback interface and also the Serv Er ' s own hostname, and use a centralized DNS server to handle most of the rest. Sometimes you might is the one mana
Analysis:Because the performance of the load generator is very good, the server responds particularly quickly, causing the load generator's port to be fully occupied before the timeout is reached.Solution One:In the load generator's registry hkey_local_machine/system/currentcontrolset/services/tcpip/parameters, There are two key values: TcpTimedWaitDelayMaxUserPort1, here the TcpTimedWaitDelay default value should be 30s, so here, turn this value to 5s (adjust as needed). 2, you can also turn th
This error is because the configuration file is not configured properly. The solution is as follows:1 Open Profile FileVim/etc/profile2 The content that is added at the end of the document should be as follows (two highlighted sentences are generally missing):Export JAVA_HOME=/USR/JAVA/JDKExport hadoop_home=/itcast/hadoop-2.6.4Export hadoop_common_lib_native_dir= $HADOOP _home/lib/nativeExport hadoop_opts= "-djava.library.path= $HADOOP _home/lib"Export path= $PATH: $JAVA _home/bin: $HADOOP _home
The problem with modifying the host header is simple, as described earlier how to use IP to access your site. The location of the modification is the same. Remember you have a host header when you create a new WEB application? Change your settings now. The operation is as follows.Application Management-----Configure Alternate Access Mappings---Open, click the url--you want to modify in the URL protocol and port to modify and then save it. 3.1 Note To change your access Mapping Collection----in a
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.