The Linux host cannot resolve the domain name, the cause of DNS problems[Email protected] ~]# vim/etc/try/etc/sysconfig/network-scripts like so:## DNS1 =xxx.xxx.xxx.xxx# DNS2=xxx.xxx.xxx.xxx# DOMAIN=223.6.6.6If not resolved try the following
Encountered a problem when querying the log found that there are many files printed on the server, each of which stores a portion of the log, the log needs to be sorted by time and all logs are displayed.Original command:grep-h searchcontent */*log
Yum has a problem with the install today and found a way to find a workable solution.Fastestmirror is an accelerator plugin for Yum, here is the plugin tip message is that the plugin is not available.Can not use the first do not use Bai, disabled
Stat Command : Detailed information of file/file system is displayed;use format : Stat file nameThe stat command is primarily used to display detailed information about a file or file system, which has the following syntax:-F does not display
If you want to view the files, use any of the cat less TAC tail and more.1.catWhen you view a file using the Cat command, the contents of the entire file are displayed, and note that cat can only view the contents of a text file, such as viewing a
1.cpu#lscpu命令, the statistics for the CPU are viewed.
Architecture:x86_64CPU Op-mode (s): 32-bit, 64-bitByte Order:little EndianCPU (s): 4On-line CPU (s) list:0-3Thread (s) per core:1Core (s) per Socket:2Socket (s): 2NUMA node (s): 1Vendor
1, cd command This is a very basic, is also a common need to use the command, it is used to switch the current directory, its parameters are to switch to the path of the directory, can be an absolute path, can also be a relative path. Such
getopt function usage in Linux:1. Function functions:The Getop function is used to parse command-line arguments with the '-' or '--' parameter option, removing '-' or '-' option elementsIf called repeatedly, it returns the selected character of each
01. Automatically Mount =>vi/etc/fstab files1th field: Partition device file name or UUID (hard disk universal unique identification code)2nd field: mount point3rd field: File system name4th field: Mount parameters5th field: Specifies whether the
Account======================================View account:#id is looking at the ID information of the current login account, identifyUid=0 (Root) gid=0 (root) group =0 (Root)Subordinate group of the main groupThe UID system is used to identify the
Today the discovery server on the Tomcat 8080 port does not come, the old prompt port has been occupied.Use the command:Ps-aux | grep TomcatA tomcat process with no 8080 ports found.Use command: NETSTAT–APNView all process and port usage. Discover
The birth of Unix, 1970-1-1Kernel function: User input command--------> kernel-------> HardwareLinux composition = kernel + applicationLinux distributions (cont. 1)The name/version of the release is determined by the issuer–red Hat Enterprise Linux 5
1, the users under Linux belong to the group, so need to create a group, divided to users. To create a command:Execute under RootGroupadd ver Create a group of ver2. Create userUseradd-m-G ver uiadm added user uiadm3. Set User passwordpasswd uiadm
Su:swith User switch users, switch to root userCat:concatenate SeriesUname:unix Name Name SystemDf:disk free HDDDu:disk Usage HDD UsageChown:change owner Change OwnersChgrp:change Group change user groupsPs:process Status Process stateTar:tape
In Linux, the link file is divided into hard-link and soft-link file two, where hard links are established through ln source_file dist_file, and soft links are established through Ln-s source_file Dist_file.The difference between soft and hard links:
CentOS6.5 network configuration, centos6.5 Configuration1 Nic description
1) Two NICs:The first Nic is configured with the Internet: eth0The second Nic is configured with the Intranet: eth1 (the Intranet should also be configured on the second Nic
[Linux] install and configure JDK1.8 and install and configure jdk1.8.
Step 1:To download jdk in Linux, go to the (Official Website) to download the jdk Installation File;
View the number of Linux operating systems:
[Root @ localhost ~] # Getconf
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service