Experiment One: Delete cd/boot/*1.cd/boot/grub2.rm-rf/boot/*3.rebootRecovery: 1. Enter rescue mode2.chroot/mnt/sysimage cutting root, switch to operation under the real root huif3.mkinitrd/boot/initramfs-' uname-r '. img ' uname-r ' to fix file
# #第二单元 # #I. Linux system architecture1. Linux is an inverted tree structureEverything in Linux is a file.These files are at the top of the system directory "/"/is the root directory/directory Below is a level two directory these directories are
Reason:Enter the original "\ |" of the keyboard, and the results are mapped to "", while the corresponding key names are less and greaterInquire:First, query for mappings with the key name lessgrep LessYou can see that there are two mappings, one
LVS load Balancing cluster in NAT modeClient: 1.1.1.254/8LVS Scheduler (Centos6.5) eth0 1.1.1.10/8 eth0:0 1.1.1.1Web server eth0 1.1.1.20/8 Lo 1.1.1.1Web server eth0 1.1.1.30/8 Lo 1.1.1.1Server for NFS 192.168.1.4/24Configuring the LVS Scheduler 1.1.
A UNIX file is an information carrier (container) that consists of a sequence of bytes, and the kernel does not interpret the contents of the file.A file in a Linux file system is a collection of data that contains not only the data in the file but
Linux User, user group Rights Management detailed
Linux User Management Three important documents detailed:
Linux login requires user name, password. The/etc/passwd file holds the user name. When you log in to Linux, Linux looks
Transferred from: http://blog.sina.com.cn/s/blog_688077cf01013qrk.html$PATH: determines which directories the shell will look for commands or programs, the value of PATH is a series of directories, and when you run a program, Linux searches for
ExtractSyntax: tar [main option + Secondary options] file or directoryWhen using this command, the main option is required, and it tells Tar what to do, auxiliary options are auxiliary and can be used.Main options:C Create a new profile. Select this
Dynamic library *.so in Linux under the C and C + + programming often encounter, recently found a few articles on the Web site to introduce the compilation of dynamic library and links, finally understand this has not been familiar with the east,
The Chkconfig command is primarily used to update (start or stop) and query run-level information for system services. Keep in mind that Chkconfig does not immediately automatically disable or activate a service, it simply changes the symbolic
Bin holds binary executables (ls,cat,mkdir, etc.)Boot holds various files used for system bootDev for storing device filesETC Storage System configuration fileHome Store The root directory of all user filesLib holds shared libraries and kernel
Linux view the size of a folder by command:du 1 -lh The full path to the folderexample, query the size of the/var folder:du 1 -lh/ varDu recursively queries the size of all files under the path (if no parameters are present, all files within the
Study notes for the experiment upstairs course:1. Basic commandsLs-a: Displays all content in the current directory2. Man mans view Help documentation3. Man-k Search C Language Library functions4.cheat small copy, forget how to use a variety of
FilePurpose: Identify file typesFormat: File file nameEverything under Linux is a fileExample:File ~/.BASHRC as ASCII-encoded text filesFile ~/.VIMRC is a UTF-8 Unicode encoded text typeFile/bin/pwd appears elf 64-bit LSB executable, which is the
Set up a static network as follows[Email protected] network-scripts]# pwdGo under this path/etc/sysconfig/network-scripts[Roo[email protected] network-scripts]# cat Ifcfg-ens33[Email protected] network-scripts]# VI
Change the warehouse storage locationBy default, the warehouse storage location of the Gitlab is "/var/opt/gitlab/git-data/repositories", in the actual production environment we will not be stored in this location, generally divided into a separate
Pcre is a regular expression function library written in C, and Nginx rewrite requires regular expression support, so we need to install Pcre first.First, install the PcreLatest address in:
The corresponding parameter values are modified by the C language for the corresponding node operation.The process of implementing a Linux application access-to-use drive node is implemented on the basis of the corresponding kernel driver.
Uninstalling Python2 is not recommended and may cause other software in the system to become unusablePrerequisites need to be installed:Yum install *gcc* *zlib*-y to support installation Python31. Downloadwget HTTPS://WWW.PYTHON.ORG/FTP/PYTHON/3.6.0/
The most used operating system is Windows and Linux, and the Microsoft Windows operating system occupies the majority of the consumer market, Windows is so favored by the vast number of users, it is necessary to learn the Linux operating system?
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