Linux
centos installation
1. Install based on the virtual machine VMware Fusion;
2. Download the ISO image file:
Download address: Alibaba Cloud or NetEase Open Source Image
Link address 1: NetEase image
Link address 2: Alibaba Cloud image
3. Click to create a virtual machine:
4. Select as shown in the figure Mirror installation:
5. After the automatic installation, follow the instructions to complete the operation. The time is a little long, and the installation is complete since then.
virtual machine
Essence : file system.
VM snapshot:
It is used to quickly return to the original normal state, based on branch switching, occupying a certain disk
width and determining the same ratio of height and proportion of the picture:
Usage: as shown below
Virtual machine clone method:
1. Directly copy the installed virtual machine files
2. After closing the virtual system, use vm to clone
vmtools: manage virtual machine and host files
Three ways to connect to the network:
Bridge mode, directly connected to the network, but it is easy to cause IP conflicts
NAT, use a third-party address to connect to the external network in one direction, which can avoid IP conflicts
Host mode: independent system
vi/vim editor
Three modes:
Normal mode:
input i/a: insert, enter edit mode
dddd: delete multiple lines
p: copy
d: delete
G: switch to the end
gg: switch to the beginning
u: undo
line number + shift + g: quickly position the cursor to the specified line
Edit mode:
enter/click esc: return to normal mode
Command line mode:
vim xxx enters normal mode
w: write
: q!: force exit without saving
: q: exit
: wq: save and exit
set nu: set line number
set nonu: cancel line number
input/click esc: enter normal model
Operation on configuration files: vim /etc/passwd