message 1Message 1:From [email protected] Wed Oct 26 14:14:46 2016Return-path: X-original-to:rootTS 0 0TMPFS/DEV/SHM TMPFS Defaults 0 0Devpts/dev/pts devpts gid=5,mode=620 0 0Sysfs/sys Sysfs Defaults 0 0PROC/PROC proc Defaults 0 0q Enter Q to exit the mail systemHeld 1 Message In/var/spool/mail/root9, hostname: Display host nameHostname Donggen indicates that the host name of the current host is changed to Donggen[Email protected] usr]# hostnameXueli
Modify the Linux hostname-Linux Enterprise Application-Linux server application information. For more information, see. 1. Enter/etc/sysconfig/network and change hostname = localname to the newname you want. localname is the defau
and Enterprise Linux must comply with the GNU protocol.You need to release your ownSource code. Therefore, for free Fedora Core Linux, you can directly download the ISO dial from the RedHat website, and download the ISO of srpm, that is, the source code CD of the package. The paid Enterprise Linux series is a commerci
1. Temporarily modify host nameDisplay host Name:[Email protected]:~$ hostnamelocalhostModify Host Name:[Email protected]:~$ sudo hostname orcl1[email protected]:~$ HOSTNAMEORCL12. Permanently modify the host nameThe above modification is only a temporary change, after the restart is back to the original.Step 1:Modify the hostname in/etc/sysconfig/networkVi/etc/s
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
At the Linux command line, enter hostname, view the current hostname, and if you want to modify it, add a new host name directly after hostname (note: The following actions require root user execution), such as:
# hostname Newhostname
Note, however, that the above
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
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
= $tmpElseIf [$tmp-gt $max];thenmax= $tmpelif [$tmp-lt $min];thenmin= $tmpFiFiDoneecho "The Max Random is: $max"echo "The min Random is: $min"[Email protected] ~]#
Case statement: Select structureCase switch in (switch is a value)value1)Statement...;; (The statement ends with a double semicolon)value2)Statement...;;*)Statement...;;ESAC (Esac end)[email protected] ~]# cat case.sh#!/bin/bashCase $ in[0-9])echo "digit";;[A-z])echo "Zimu";;*)echo "Else";;Esac[Email protected] ~]#
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 localho
Redhat 5 Vsftp 550 failed to change directory problem solution results during the test we found ftp localhostftp> cd cdrom550 Failed to change directory. the reason why the directory cannot be switched to/pub/cdrom www.2cto.com is that SElinux's FTP Transfer review function prohibits directory switching solution: 1. /etc/sysconfig/selinux: disable it. Restart
machine, right-click the network in the lower right corner, open the Network Center, you will see this:Settings, Properties-"ip4-" settingHere the IP address is preferably the virtual machine inside the gateway set;After setting up, let's try it and see if we can ping it through:Can ping the pass, then we set his hostname:Here, basically the virtual machine system can be used, we can use Remote Tools to connect, we use putty this tool: Putty Chinese version of the downloadThen is login, login s
, Ifcfg-eth0;
If you use a DHCP server to automatically obtain IP, generally ifcfg-eth0 content is similar to the following; Device=eth0Onboot=yesBootproto=dhcpType=ethernet
If you are specifying IP, the general content is similar to the following; Device=eth0 Note: network interfaceOnboot=yes Note: Activate at boot timeBootproto=static Note: The use of static IP address;ipaddr=192.168.1.238 Note: IP addressnetmask=255.255.255.0 Note: Network mask;gateway=192.168.1.1 Note: gateway;
The following
;
Then execute the command
vi /etc/sysconfig/network-scripts/ifcfg-ethx
We can see that our changes have been saved.
Set the local virtual Virtualize uralbox-Host-only Network. Right-click the Network in the lower right corner and open the Network center. This item is displayed:
Click Settings-> properties-> IP4-> Settings
The IP address here is preferably the gateway set in the virtual machine;
After completing the settings, let's try to see if the Ping is successful:
If you can Ping the
This has to be one of the more common support callthat I get. the telnet daemon is no longer usually installed by default, so people are surprised when their newly installed Linux system won't answer telnets.
By the way, I am always careful to explain why Telnet isn' t there anymore; that they probably shoshould be thinking about ssh. but sometimes there are perfectly reasonable reasons: it's only going to be used for a few internal users, there's no
example: HJD) 5: Change the Hosts file: Vim/etc/hosts Add a: Your own IP just set the hostname host name for short Note: To view the IP available ifconfig–a command on your own host 6: Change the number of references /etc/sysctl.conf (change kernel parameters) /etc/security/limits.conf (Shell-to-Oracle user restrict
Install Oracle 11g R2 and oracle11g in Redhat Linux
Official documents: http://docs.oracle.com/cd/E11882_01/nav/portal_11.htm
1: Basic Environment
Redhat Enterprise Linux 6.132bit
Memory: 1 GB
Disk Space: 30 GB
2: Check the packages required for Oracle 11G. If the packages are not found on the
Full introduction to localization in RedHat 7.1
Text/clinuxer
For many Chinese users who want to learn and learn Linux, ugly Chinese support is the main reason for their continued use. If you are disappointed, you may choose to install a Chinese version such as bluepoint, red flag, and turbolinux. However, in the Linux camp,
RedHat Linux is one of the more popular versions of Linux distributions. This paper discusses the user management under Redhat Linux in combination with the author's experience. The author uses the Redhat 5.1 release, the core ver
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.