Recently in the study and work of Linux, installed the CentOS7 minimum system, found that the minimum system does not have some common commands and so on. Here, write a blog post, the Linux system from the new virtual machine to the end of the internet can be used to review the use of their own, but also a total of people to correct.
First, create a new virtual machine
Open WMware, create a new virtual machine, select a typical installation
Click Next and select Install the operating system later
Select the system you want to install, we install the CentOS64-bit system here
Click Next, select a path to install the virtual machine system, and a name for the system,
Specify the size of the disk for the system, and select the disk file as a single file, if it is more than one file, it is also possible, just a person feel the disk after splitting the number of files a bit more, no need
Finally, the virtual machine (equivalent to a computer without a system) is newly completed
Second, start the virtual machine and install the CENTOS7 minimum system
Select the virtual machine that we just installed, click Edit Virtual machine settings, edit the virtual machine
Add image files to the virtual machine, which is the operating system. We pre-download the CentOS image file to local, can also be downloaded through the Baidu Cloud disk, the link is as follows: Https://pan.baidu.com/s/1U_etiJt7js7yZ-vIZAxXBA
There are three kinds of network mode of Linux system, we set the network mode of virtual machine to NAT mode, the difference of three kinds of networking mode, have time to chatter
Basic configuration complete, click to open the virtual machine, enter the operating system installation
After the virtual machine is turned on, the left mouse button double-clicks the virtual machine, enters the virtual machine interface, selects the first by the upper and Lower keys, selects installs the CENTOS7, then presses the ENTER key
Choose the language of the system, here is Chinese, click Continue, go to the next interface
Set the time for the system, select Install Minimum System, as shown, to start installing the operating system
Set the password for the root user of the system as follows:
Then wait for the installation, after the installation is completed, click the "Reboot" button in the lower right corner, restart the system, enter the password into the root user mode, the Linux operating system is installed to complete.
Third, configure the Linux system
After the operating system is installed, we are not able to access the Internet or use the Ifconfig command to view the IP address. Next we need to configure the network so that the system can surf the Internet.
1. First look at our network information, such as the red box in the new, you can manually set
2. Using the command: VI/ETC/SYSCONFIG/NETWORK-SCRPITS/IFCFG-ENS33, manually set up the network
See, set the following separately:
Type=ethernet
Proxy_method=none
Browser_only=no
Bootproto=static #设置静态IP
Defroute=yes
Ipv4_failure_fatal=no
#IPV6INIT =yes
#IPV6_AUTOCONF =yes
#IPV6_DEFROUTE =yes
#IPV6_FAILURE_FATAL =no
#IPV6_ADDR_GEN_MODE =stable-privacy #前面加 # comment out
Name=ens33 #网卡名称
Uuid=def4ed6f-4a8c-4fb2-bc90-f966bfea0123 #虚拟机的唯一IP
Device=ens33 #网卡设备
Onboot=yes #设置网络开机启动
ipaddr=192.168.159.110 #设置 IP Address
gateway=192.168.159.2 #设置网关
netmask=255.255.255.0 #设置掩码
dns1=114.114.114.114 #设置dns
dns2=1.2.4.8
When you are finished configuring, Exit Save: "ESC"--->>[:]--->>wq---[Enter]
3. Command reboot Restart the system, use the "IP addr" command to view network information,
Reboot
IP addr
Such as:
4. Install some common commands and tools:
Install the ifconfig command: yum-y install Net-tools
Install VIM Editor: yum-y install vim
To install Remote Tools for file transfer RZ, sz:yum-y install Lrzsz
Iv. some common commands
Visit Baidu website: Ping www.baidu.com
View IP Address: ifconfig
To view the firewall's open state: Firewall-cmd--state
Turn firewall on/off: Systemctl start/stop firewalld
Turn off boot: systemctl disable Firewalld.service
Turn on boot: systemctl enable Firewalld.service
Set the firewall to power off:
View open ports: Iptables-l-N
Restart Network Service: Service network restart
View Network on: service NET status
View History Command History:
Permanently open a port, such as 7772:firewall-cmd--zone=public--add-port=7772/tcp--permanent
Clear screen: Clear
Linux virtual machine CentOS minimum system installation