Lslist List Directory Contents command "Options" "parameters" 1) LS displays the contents of the current directory 2) LS directory name ls/home Specify the contents of the home 3) LS option directory name commonly used options:-L (It is the LO ng
File Lookup:Locate:Non-real-time, fuzzy matching, lookup is based on the system-wide file database# UpdateDB (manually generated file database) Fast SpeedFind:RealtimeAccurateSupport for many search criteriaTraverse all files in the specified
Redis cluster construction, redis Cluster
1. What is Redis?
Redis is an open-source high-performance key-value database developed in C language. It provides multiple key-value data types to meet the storage requirements in different scenarios. The
$ Releasever, $ basearch, and other variable meanings in yum, releaseverbasearch
[Root @ kickstart ~] # Rpm-qf/etc/redhat-release centos-release-7-4.1708.el7.centos.x86_64The $ releasever variable in yum is the attribute value (% {version}) of
Mysql backup script (mysqldump), mysqlmysqldump
#! /Bin/bash # Full backup mode, generally executed on the slave machine, suitable for small and medium mysql Databases # Delete backups 15 days ago # Author: fafu_li # Time:
Simple use of Linux, linux
1. Basic commands
Create directory pathA: mkdir pathA
Go to the directory pathA: cd pathA
View directory content: ls
View the file details in the directory: ls-l, Or ll (l is lower case L, don't look at the error)
Copy the
Linux Command (sort)
Sort commandThe sort command is very useful in linux. It sorts files and fired standard output for sorting. The sort command can get input from either a specific file or stdin.
SyntaxSort (option) (parameter)
Option-B: Ignore
Hosts files in Linux
1. The hosts file in Linux is similar to the hosts file in Windows. The file format is IP address and domain name, separated by spaces.
2. the hosts file is a file for fast resolution of IP addresses and domain names in LInux.
Linux Log Management Learning1. The log describes the various events that occur on a daily basis. You can use the log to check the cause of the error or the traces of the attack. To facilitate log management, logs are usually stored under/var/log/.
Common Linux commands are always correct.
The basic commands are described in six sections, which are commonly used commands in some companies:
Installation and logon commands:
Login, shutdown, halt, reboot, install, mount, umount, chsh, exit, and
CentOS7 NAT mode fixed IP settings
Modify the configuration file of each virtual machine and set a fixed IP Address
Cd/etc/sysconfig/network-scripts
Modify configuration content viifcfg-eno16777736Initial Configuration:To:BOOTPROTO = staticIPV6
Common commands for SSH in CentOSDirectory operation:Shift + inset/* Paste option, insert copied */Rm-rf mydir/* Delete the mydir directory */Cd mydir/* enter the mydir directory */Cd-/* Go back to the upper-level directory */Cd ../* back to the
Familiar with system delayed tasks and scheduled tasks in CentOSUse the at command for system delayed tasks
The delayed tasks initiated by the at command are all one-time. After the at task is submitted, it is saved in the/var/spool/at/directory;
Change the default ssh port in CentOS
If you want to change the port and break through the port whitelist, but it does not work, record the process.1. modify the configuration file
/Etc/ssh/sshd_config
#Port 22
Uncomment this line and add a new port
CentOS7 use firewalld to open and close the firewall and Port1. Basic use of firewalld start: systemctl start firewalld view status: systemctl status firewalld stop: systemctl disable firewalld disable: systemctl stop firewalld2.systemctl is the
View logs in linux in real timeCat/var/log /*. if the log is being updated, you can also use watch-d-n 1 cat/var/log/messages-d to highlight different places in real time, -n indicates the number of seconds to refresh. This command does not directly
Centos7 Virtual Machine bridging settings
The advantage of Virtual Machine network bridging is that virtual machines can be used as an independent computer in the LAN.
It takes half a day to get it done. Write a log record for future use.
First,
Install docker on centos7
After learning from the Internet, docker is installed under centos7, and the knowledge and steps are organized for backup.1. Check Dependencies
Docker requires a 64-bit system. The kernel version must be later than
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