In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Common catalogs and explanations in 1.linux
1 where the bin command file is saved
2 sbin commands that only root users can use
3 boot (understand it) the directory where the information is saved when the Linux program starts
4 directories where dev device files exist
5 directories where etc file configuration information and service configuration information exist
6 the directory where home users are located (ordinary users' home directory)
7 the directory where the root user is located (the home directory of the Super Admin)
8 selinux: save selinux program configuration file information and system security-related programs
9 lib (just understand) library file
10 mnt temporary mount directory
11 opt stores information generated by third-party software
12 / usr/local stores information about software installation
13 the data in the proc directory is stored in memory, process information and kernel file information
14 tmp temporary storage of files, equivalent to the Recycle Bin
15 var saves files with frequent data changes (log files)
1.1.linux common directory structure diagram
2./etc catalog explanation
2.1 detailed explanation of network card configuration file
Vim / etc/sysconfig/network-scripts/ifcfg-eth0TYPE=Ethernet network connection type PROXY_METHOD=noneBROWSER_ONLY=noBOOTPROTO=none whether the network connection mode is dhcp (none: no connection is set Static: static connection) whether the DEFROUTE=yes default route is enabled or not IPV4_FAILURE_FATAL=noIPV6INIT=yesIPV6_AUTOCONF=yesIPV6_DEFROUTE=yesIPV6_FAILURE_FATAL=noIPV6_ADDR_GEN_MODE=stable-privacyNAME=eth0 device name DEVICE=eth0 UUID=0ea55b05-db81-4dd0-a145-fa476c8b6045 server hardware identifier ONBOOT=yes Whether the Nic activates the IP address PREFIX=24 subnet mask of the IPADDR=10.0.0.200 network Set how many hosts a local area network can have, whether GATEWAY=10.0.0.254 can use the public network DNS1=223.5.5.5 for domain name resolution IPV6_PRIVACY=no
2.1.1 considerations for Nic configuration
Once the network card configuration is modified, the network card must be restarted.
Centos 7:systemctl restart network
Centos:6:/etc/init.d/network restart
Restart a single network card: ifdown eth0 & & ifup eth0
Ifdown eth0;ifup eth0
2.1.2 Why do you need IP? explain in the architecture diagram.
2.1.3 Why do you need DNS? explain it with the architecture diagram.
2.1.4 Why a gateway is needed, explain it in the architecture diagram.
2.2 DNS domain name resolution configuration
[root@oldboy666 ~] # vi / etc/resolv.conf# Generated by NetworkManager nameserver 223.5.5.5 Service name DNS address
2.2.1 sequential execution of DNS domain name solution and DNS configured by network card
Before restarting the Nic: the configuration of DNS domain name resolution is first loaded with the configuration file in DNS domain name resolution.
After restarting the network card: DNS domain name resolution configuration, the first thing to load is the file in the network card configuration.
2.3 configuration of hostname
2.3.1 9.3.3.1 permanent configuration path for centos6 and centos7
Permanent configuration path of centos6.9 [root@oldboy666 ~] # permanent configuration path of cat / etc/sysconfig/network# Created by anacondacentos7.6 [root@oldboy666 ~] # cat / etc/hostname oldboy666 [root@oldboy666 ~] # [root@oldboy666 ~] # [root@oldboy666 ~] #
2.3.2 advantages of centos7 hostname configuration
[root@oldboy666 ~] # hostnamectl set-hostname oldboy6666 [root@oldboy666 ~] # [root@oldboy6666 ~] #
2.4 configuration of permanently mounted files
[root@oldboy6666 ~] # vim / etc/fstab# / etc/fstab# Created by anaconda on Fri Aug 30 12:11:39 2019 September # Accessible filesystems, by reference, are maintained under'/ dev/disk'# See man pages fstab (5), findfs (8) Mount (8) and/or blkid (8) for more info#UUID=27114df9-3f54-4b94-acb7-0890b452e99f / xfs defaults 0 0UUID=4260ed75-aad2-4389-b24a-2be6362c2597 / boot xfs defaults 0 0UUID=8e7004ef-83c2-4b8d-b9db-b85768271eb2 swap swap defaults 00 # UUID=2018-11-25-23-54-16-00 / mnt iso9660 defaults 00
2.4.1 configuration file details
The first column: hardware identifier information, which represents the mounted hardware device, or can be written as / dev/???
Second column: directories that need to be mounted to the disk
Third column: types of partition files
Fourth column: mounted parameters
Fifth column: backup settings (1 for backup, 0 for no backup)
The sixth column: disk check, 0 means never check; / directory partition is 1, other partition directories are 2
2.5 parsing profile locally
2.5.1 how to parse
[root@oldboy6666 ~] # vim / etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
Format
IP address Host name
2.6 detailed explanation of boot configuration file
[root@oldboy6666 ~] # vim / etc/rc.local #! / bin/bash# THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES## It is highly advisable to create own systemd services or udev rules# to run scripts during boot instead of using this file.## In contrast to previous versions due to parallel execution during boot# this script will NOT be run after all other services.## Please note that you must run 'chmod + x / etc/rc.d/rc.local' to ensure# that this script will be executed during boot.touch / var/lock/subsys/localmount / dev/cdrom / mnt'
2.6.1 Why the entry of the centos7 file into the boot self-startup item will not take effect
The boot caused by no execution permission cannot take effect.
[root@oldboy6666] # ls-l / etc/rc.local lrwxrwxrwx. 1 root root 13 Aug 30 12:12 / etc/rc.local-> rc.d/rc.local this is the link file, you need to see the real file [root@oldboy6666 ~] # [root@oldboy6666 ~] # ls-l / etc/rc.d/rc.local-r Murray. 1 root root 495 Sep 6 19:13 / etc/rc.d/rc.local this real file only has read permission [root@oldboy6666 ~] # [root@oldboy6666 ~] # chmod 777 / etc/rc.d/rc.local to modify file permission [root@oldboy6666 ~] # ls-l / etc/rc.d/rc.local-rwxrwxrwx. 1 root root 495Sep 6 19:13 / etc/rc.d/rc.local now has the execution permission and can boot [root@oldboy6666 ~] # normally
2.7 system environment variable profile
2.7.1 what are environmental variables
Is a variable set in system mode
System variable names are capitalized, for example: PATH
2.7.2 how to modify environment variables
(1)。 Temporary modification
Export PATH=$PATH [root@oldboy6666 ~] # echo $PATH to see which paths the current system environment variables can match / usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin [root@oldboy6666 ~] # mv / bin/cp / tmp move the command / bin/cp to tmp [root@oldboy6666 ~] # ls1.txt anaconda-ks .cfg passwd [root@oldboy6666 ~] # echo $PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin [root@oldboy6666 ~] # touch aa.txt create a file [root@oldboy6666 ~] # cp-rf aa.txt / opt/ start copying the file-bash: cp: command not found Found that the cp command could not find [root@oldboy6666 ~] # export PATH=$PATH:/tmp temporarily add the tmp directory to the environment variable [root@oldboy6666 ~] # echo $PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/tmp added successfully [root@oldboy6666 ~] # cp-rf aa.txt / opt/ Replicate again and find that [root@oldboy6666 ~] #
(2)。 Permanent modification
[root@oldboy6666 ~] # echo PATH=$PATH:/tmp > > / etc/profile > > this is an append. Do not write it as > this will empty the file.
2.7.3 how to execute the command
(1)。 Execute a command
(2)。 Execute the environment variable PATH= (/ usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
(3)。 Check the executed variables, in one of these environment variables?
(4)。 If it is in one of the paths, you can use this command; otherwise, it will report that the command cannot be found. (the above temporary modification environment variable is because the cp command is moved to the tmp directory, resulting in the cp cannot be found. Later, you can add the / tmp path to the PATH environment variable.)
2.8 configuration and cancellation of aliases
2.8.1 View and configuration of aliases
View
[root@oldboy6666] # aliasalias cp='cp-i'alias egrep='egrep-- color=auto'alias fgrep='fgrep-- color=auto'alias l.='ls-d. *-- color=auto'alias ll='ls-l-- color=auto'alias ls='ls-- color=auto'alias mv='mv-i'alias rm='rm-i'alias which='alias | / usr/bin/which-- tty-only-- read-alias-- show-dot-- show-tilde' [root@oldboy6666] #
Configuration
Temporary configuration
Syntax: alias alias = 'command'
[root@oldboy6666 ~] # alias ifhosts='cat / etc/hosts' [root@oldboy6666] # ifhosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 [root@oldboy6666 ~] #
Permanent configuration
4 files: / etc/profile / etc/bashrc ~ / .bash_profile ~ / .bashrc
Permanent configuration: / etc/profile (use this profile) / etc/bashrc (common for all users)
Partial configuration: ~ / .bashrc (use this configuration file) ~ / .bash_profile (suitable for current users)
Permanent configuration
Root user alias ifname='ip addr show' "/ etc/profile" 79L, 1880C written [root@oldboy6666] #. / etc/profile [root@oldboy6666 ~] # ifname1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 0000 eth0: 0000 qdisc pfifo_fast state UP group default qlen 1000 link/ether 00: inet 127.0.0.1 scope host lo valid_lft forever preferred_lft forever inet6:: 1scope host lo valid_lft forever preferred_lft forever inet6 128 scope host valid_lft forever preferred_lft forever2: eth0: mtu 1500 qdisc pfifo_fast state UP group default qlen 0000: 0c:29:16:07:30 brd ff:ff:ff:ff:ff:ff inet 10.0.0.200 0c:29:16:07:30 brd ff:ff:ff:ff:ff:ff inet 24 brd 10.0.0.255 scope global noprefixroute eth0 valid_lft forever preferred_lft forever inet6 fe80::b736:dc22:2ec6:1b47/64 scope link noprefixroute valid_lft forever preferred_lft forever other users [oldboy@oldboy6666 ~] $ifname1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00VO 00VO 00 : 00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6:: 1/128 scope host valid_lft forever preferred_lft forever2: eth0: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 00:0c:29:16:07:30 brd ff:ff:ff:ff:ff:ff inet 10.0.0.200/24 brd 10.0. 0.255 scope global noprefixroute eth0 valid_lft forever preferred_lft forever inet6 fe80::b736:dc22:2ec6:1b47/64 scope link noprefixroute valid_lft forever preferred_lft forever [oldboy@oldboy6666] $
Local configuration
Root user [root@oldboy6666 ~] # vim ~ / .bashrc # .bashrc # User specific aliases and functionsalias rm='rm-i'alias cp='cp-i'alias mv='mv-i'alias ifname='ip aegis # Source global definitionsif [- f / etc/bashrc]; then. / etc/bashrcfi [root@oldboy6666 ~] # source ~ / .bashrc [root@oldboy6666 ~] # ifname1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 0000VlV 0000VlV 0000RV 0000brd 0000VlV 0000VlV 0000VlG0000 inet 127.0.0.1 8 scope host lo valid_lft forever preferred_lft forever inet6:: 1link/loopback 128 scope host valid_lft forever preferred_lft forever2: eth0: mtu 1500 qdisc pfifo_fast State UP group default qlen 1000 link/ether 00:0c:29:16:07:30 brd ff:ff:ff:ff:ff:ff inet 10.0.0.200 oldboy@oldboy6666 root 24 brd 10.0.0.255 scope global noprefixroute eth0 valid_lft forever preferred_lft forever inet6 fe80::b736:dc22:2ec6:1b47/64 scope link noprefixroute valid_lft forever preferred_lft forever other users [root@oldboy6666 ~] # su oldboy [oldboy@oldboy6666 root] $ifnamebash: ifname: command not found [oldboy@oldboy6666 root] $
Note: when global configuration aliases conflict with local configuration aliases, the method of local configuration aliases will be used first.
2.8.2 Unconfigure alias
Unalias alias
[root@oldboy6666 ~] # unalias ifname [root@oldboy6666 ~] # ifnamebash: ifname: command not found
Absolute path
Escape character
2.9 system run level
2.9.1 path for runlevel view (centos 6)
/ etc/inittab# Default runlevel. The runlevels used are:# 0-halt (Do NOT set initdefault to this) shutdown # 1-Single user mode single user mode (rescue mode) # 2-Multiuser, without NFS (The same as 3 If you do not have networking) multiuser mode (no network) # 3-Full multiuser mode multiuser mode (with network) # 4-unused reservation Restart without # 5-X11 graphical interface # 6-reboot (Do NOT set initdefault to this) # id:3:initdefault:- defaults to level 3
2.9.2 run-level View path (centos7)
Ll / usr/lib/systemd/system/runlevel*target [root@oldboy6666 ~] # ll / usr/lib/systemd/system/runlevel*targetlrwxrwxrwx. 1 root root 15 Aug 30 12:12 / usr/lib/systemd/system/runlevel0.target-> poweroff.targetlrwxrwxrwx. 1 root root 13 Aug 30 12:12 / usr/lib/systemd/system/runlevel1.target-> rescue.targetlrwxrwxrwx. 1 root root 17 Aug 30 12:12 / usr/lib/systemd/system/runlevel2.target-> multi-user.targetlrwxrwxrwx. 1 root root 17 Aug 30 12:12 / usr/lib/systemd/system/runlevel3.target-> multi-user.targetlrwxrwxrwx. 1 root root 17 Aug 30 12:12 / usr/lib/systemd/system/runlevel4.target-> multi-user.targetlrwxrwxrwx. 1 root root 16 Aug 30 12:12 / usr/lib/systemd/system/runlevel5.target-> graphical.targetlrwxrwxrwx. 1 root root 13 Aug 30 12:12 / usr/lib/systemd/system/runlevel6.target-> reboot.target [root@oldboy6666 ~] #
2.9.3 run level View method (centos 6)
[root@oldboyedu ~] # runlevelN 3
2.9.4 how to view runlevels (centos 7)
Cat / etc/inittab... .systemctl get-default [root@oldboy6666 ~] # systemctl get-defaultmulti-user.target [root@oldboy6666 ~] #
2.9.5 set run level (centos 6)
Init 2-> temporarily set the runlevel to 2
Permanent settin
[root@oldboyedu ~] # cat / etc/inittab # Default runlevel. The runlevels used are:# 0-halt (Do NOT set initdefault to this) # 1-Single user mode# 2-Multiuser, without NFS (The same as 3, if you do not have networking) # 3-Full multiuser mode# 4-unused# 5-X1room6-reboot (Do NOT set initdefault to this) # id:3:initdefault: change the run level to another [root@oldboyedu ~] #
2.9.6 set run level (centos 7)
Cat / etc/inittab... Systemctl set-default poweroff.target sets level 0... .
2.10 system login (front | back) message prompt file
The system information file before login is / etc/issue / etc/issue.net
The system information file after login is / etc/motd
3 detailed explanation of usr catalogue
3.1 / usr/local directory installation software in detail
3.1.1 yum installation details
Yum-y install Software name
[root@oldboyedu] # yum-y install vim Loaded plugins: fastestmirrorSetting up Install ProcessLoading mirror speeds from cached hostfile * base: mirrors.huaweicloud.com * extras: mirrors.huaweicloud.com. ..Complete!
Features: download and install the software directly, and delete the software directly after installation
Solved the dependency relationship
3.1.2 detailed description of rpm package installation
Syntax: rpm-ivh * .rpm
Meaning of i:install installation
V: the detailed process of verbose displaying installation information
H:human reads in a way that humans can recognize.
Features: first download the software package and install it
Did not resolve the dependency
3.1.3 compilation installation / source code installation
Features: flexible installation, no dependency resolution
3.1.4 binary installation
Features: can be used directly after decompression.
4 / var catalogue detailed explanation
4.1 / var/log/messages detailed explanation
Function: record the status of the system or program running (right / wrong)
4.2 / var/log/secure detailed explanation
Function: record the login information of the system (right / wrong)
4.2.1 remote correct login system
Sep 10 10:38:30 oldboy6666 sshd [12718]: Accepted password for root from 10.0.0.1 port 52812 ssh3 Sep 10 * time users log in remotely as sshd: log in from the host port 52812 of 10.0.0.1, and the password allows * 10:38:30 oldboy6666 sshd [12718]: pam_unix (sshd:session): session opened for user root by (uid=0) 4.2.2 Local correct login to the system
Sep 10 10:39:21 oldboy6666 login: pam_unix (login:session): session opened for user root by LOGIN (uid=0) Sep
When the user logs in locally and opens the session as root, the user name is xxx, and the local login is successful.
10 10:39:21 oldboy6666 login: ROOT LOGIN ON tty1
4.2.3 remote login failed `Sep 10 10:41:06 oldboy6666 unix_chkpwd [12926]: password check failed for user (oldboy) Sep 10 10:41:06 oldboy6666 sshd [12914]: pam_unix (sshd:auth): authentication failure Logname= uid=0 euid=0 tty=ssh ruser= rhost=10.0.0.1 user=oldboy Sep 10 10:41:08 oldboy6666 sshd [12914]: Failed password for oldboy from 10.0.0.1 port 52827 ssh3 Sep 10 10:41:13 oldboy6666 sshd [12914]: error: Received disconnect from 10.0.0.1 port 52827 logname= uid=0 euid=0 tty=ssh ruser= rhost=10.0.0.1 user=oldboy Sep 0: [preauth] Sep 10 10:41:13 oldboy6666 sshd [12914]: Disconnected from 10.0.0.1 port 52827 [preauth] `
5 / proc directory: collect hardware information files and store process information in memory
5.1 View of cpu information
5.1.1 commands for viewing cpu information
[root@oldboy6666 ~] # lscpuArchitecture: x86_64CPU op-mode (s): 32-bit 64-bitByte Order: Little EndianCPU (s): 1On-line CPU (s) list: 0Thread (s) per core: 1Core (s) per socket: 1Socket (s): 1NUMA node (s): 1Vendor ID: AuthenticAMDCPU family: 23Model: 24Model name: AMD Ryzen 5 3500U with Radeon Vega Mobile GfxStepping: 1CPU MHz: 2096.060BogoMIPS: 4192.12Hypervisor vendor: VMwareVirtualization type: fullL1d cache: 32KL1i cache: 64KL2 cache: 512KL3 cache: 4096KNUMA node0 CPU (s): 0Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 Syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc art rep_good nopl tsc_reliable nonstop_tsc extd_apicid aperfmperf eagerfpu pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw retpoline_amd ssbd ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap xsaveopt xsavec xgetbv1 clzero irperf xsaveerptr arat [root@oldboy6666 ~] #
5.1.2 View the configuration file of cpu information
[root@oldboy6666 ~] # cat / proc/cpuinfo processor: 0vendor_id: AuthenticAMDcpu family: 23model: 24model name: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfxstepping: 1microcode: 0x8108102cpu MHz: 2096.060cache size: 512 KBphysical id: 0siblings: 1core id: 0cpu cores: 1apicid: 0initial apicid: 0fpu: yesfpu_exception: yescpuid level: 13wp: yesflags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge Mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc art rep_good nopl tsc_reliable nonstop_tsc extd_apicid aperfmperf eagerfpu pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw retpoline_amd ssbd ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap xsaveopt xsavec xgetbv1 clzero irperf xsaveerptr aratbogomips: 4192.12TLB size: 2560 4K pagesclflush size: 64cache_alignment: 64address sizes: 42 bits physical 48 bits virtualpower management: [root@oldboy6666 ~] #
5.1.3 several messages that often need to be paid attention to in cpu information
Model name: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx- displays cpu model information
Processor: 0-number of cores (0 does not represent 0 cores, but 1 core)
Physical id: number of 0-cpu (paths)
5.2 View of memory information
5.2.1 commands for viewing memory information
[root@oldboy6666] # free-h displays total used free shared buff/cache availableMem in a human readable way: 972m 155m 491m 7.7m 325m 613MSwap: 1.5G 0B 1.5G [root@oldboy6666] #
5.2.2 View the configuration file of memory
[root@oldboy6666 ~] # cat / proc/meminfoMemTotal: 995896 kBMemFree: 503664 kBMemAvailable: 628388 kBBuffers: 2760 kBCached: 228388 kBSwapCached: 0 kBActive: 201456 kBInactive: 100468 kBActive (anon): 71320 kBInactive (anon): 7384kBActive (file): 130136 kBInactive (file): 93084 kBUnevictable: 0 kBMlocked: 0 kBSwapTotal: 1572860 kBSwapFree: 1572860 kBDirty: 0 kBWriteback: 0 kBAnonPages: 70804 kBMapped: 26432 kBShmem: 7928 kBSlab: 101872 kBSReclaimable: 58412 kBSUnreclaim: 43460 kBKernelStack: 3952 kBPageTables: 5820 kBNFS_Unstable: 0 kBBounce: 0 kBWritebackTmp 0 kBCommitLimit: 2070808 kBCommitted_AS: 273368 kBVmallocTotal: 34359738367 kBVmallocUsed: 180484 kBVmallocChunk: 34359310332 kBHardwareCorrupted: 0 kBAnonHugePages: 4096 kBCmaTotal: 0 kBCmaFree: 0 kBHugePages_Total: 0HugePages_Free: 0HugePages_Rsvd: 0HugePages_Surp: 0Hugepagesize: 2048 kBDirectMap4k: 87936 kBDirectMap2M: 960512 kBDirectMap1G: 0 kB [root@oldboy6666 ~] #
5.2.3 several information that memory information needs to pay attention to
MemTotal: total size of 995896 kB- memory
MemFree: 503664 kB- amount of free memory
MemAvailable: 628388 kB- amount of available memory (this is a very important case)
Buffers: 2760 kB- memory buffer
Cached: 228388 kB- memory cache
5.3 View of disk information
5.3.1 commands for viewing disk information
You can view the partition and capacity information of the disk
[root@oldboy6666 ~] # df-hFilesystem Size Used Avail Use% Mounted on/dev/sda3 99G 1.7G 97G 2% / devtmpfs 476M 0 476M 0 / devtmpfs 487M 0 487M 0% / dev/shmtmpfs 487M 7.8M 479m 2% / runtmpfs 487M 0487M 0% / sys/fs/cgroup/dev/sda1 197M 105M 93M 54% / boot/dev/sr0 4.3G 4.3G 0% / mnttmpfs 98M 0% / run/user/0tmpfs 98M 0% / run/user/1000 [root@oldboy6666 ~] #
5.3.2 View the configuration file of the disk
[root@oldboy6666 ~] # cat / proc/mounts/dev/sda1 / boot xfs rw,seclabel,relatime,attr2,inode64,noquota 00 / dev/sr0 / mnt iso9660 ro,relatime 0 0tmpfs / run/user/0 tmpfs rw,seclabel,nosuid,nodev,relatime,size=99592k,mode=700 0 0binfmt_misc / proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0tmpfs / run/user/1000 tmpfs rw,seclabel,nosuid,nodev,relatime,size=99592k,mode=700,uid=1000,gid=1000 00 [root@oldboy6666 ~] #
5.3.3 several information that should be paid attention to in disk information
Device mount point type parameters stored in / dev/sda1 / boot xfs rw,seclabel,relatime,attr2,inode64,noquota 0
5.4 View of load information
5.4.1 commands for viewing load balancer
[root@oldboy6666] # w 17:20:39 up 8:29, 4 users, load average: 0.00,0.01,0.05 records the load of eating 15 minutes per minute 5 minutes [root@oldboy6666] #
5.4.2 View the configuration file of load balancer
[root@oldboy6666] # cat / proc/loadavg 0.00 0.01 0.05 1 Universe 121 30950 [root@oldboy6666] #
5.4.3 several information that load balancers often need to pay attention to
0.00 0.01 0.05
5 minutes per minute, 15 minutes.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.