One 、linux Image recording
1. First, open any browser on the computer （IE、Microsoft Edge、chrome、Firefox）, Enter url https://www.centos.org/ We can see the following interface and choose to get it immediately centos Download the latest installation image , Copy download link （http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso） Open thunderbolt , Wait a quarter of an hour （ The waiting time depends on the actual network speed ）.
2. Download dedicated linux Image burning tool address ：https://www.pendrivelinux.com/
When you're done, double-click the executable you just downloaded , The interface shown in the figure below
Choose I agree , Enter the following interface , Today's servers basically support UEFI Start, but there is no lack of support , So when we choose mirror recording, we choose cnetos installer, Here we need to pay attention to buy a better one U Because the disk will be copied when it is burned centos Mirror to U disc , And the size of the image is 4GB+, therefore U The disk's file system needs to be NTFS Where the format arrow shows √ On .
Ready to click create, What I use is usb3.0U So basically wait 5 Minutes to complete . Here's the picture , So far we have finished recording the image ！！
Two 、 Installation of the system
1、 Our demo environment is a dell The server , Boot into the system initialization interface , Press F11 Enter the startup management, as shown in the figure below ：
As shown in the figure below, we enter the starting management for Dell （dell boot manager） Set the start mode to bios, The red box in the picture shows , Different models of servers may have different settings , But just remember two things first boot manager This is the key to choose when you turn on the computer , Second startup mode （boot mode） Set to bios.
Then select the hard disk to boot as the inserted one U disc , Here I use Sandi's U As you can see, the picture shows sandisk（ Sandi ）.↓ Key to select and press enter key , Can from U Disk boot .
Now you can enter centos The installation interface of is introduced here , Look at the screenshot
The expected capacity here is changed to 100GB, Here's the picture
/ The partition is the system partition that carries the system files. Here we generally configure it as 100GB,/boot Partition is the system boot partition. Here we configure it as 1GB,swap To switch partitions, we configure it to twice the physical memory （ If the server plugs in a 8G Memory module of , Here we configure it as 16Gb）, So far, the system partition is completed . Then start the installation of the system , Here we set root Password , for 123456 I'll change it later , It's a long wait after it's set up .
Installation is now complete , It can be restarted .
2. To configure ip
Boot into the system, enter the user name and password , Then enter the interface shown in the figure and enter the command as shown in the figure below , I have a virtual machine environment here , If it is a real machine, enter the system network configuration directory , Will see ,ifcfg-ens1、ifcfg-ens2、ifcfg-ens3、ifcfg-ens4, What we need to configure is the first network port of the server , So the editor ifcfg-ens1
Such as the actual situation of Tugen play IP、MASK、GATEWAY、DNS, If you don't know how to configure it, you can do it yourself . Let's talk about it again ：
TYPE=Ethernet BOOTPROTO=dhcp DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no NAME=eno16777736 UUID=ae05ccde-6a29-4332-b486-f3042da73ac0 DEVICE=eno16777736 ONBOOT=no
Here's where we need to change :
# modify BOOTPROTO=static # Here we talk. dhcp Switch to ststic ONBOOT=yes # take no Switch to yes # newly added IPADDR=192.168.85.100 # static state IP GATEWAY=192.168.85.2 # The default gateway NETMASK=255.255.255.0 # Subnet mask
Save after exit , Restart network service :
# service network restart Restarting network (via systemctl): [ determine ]
View the current ip:
# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00: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 forever 2: eno16777736: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:0c:29:e7:b8:77 brd ff:ff:ff:ff:ff:ff inet 192.168.85.100/24 brd 192.168.85.255 scope global eno16777736 valid_lft forever preferred_lft forever inet6 fe80::20c:29ff:fee7:b877/64 scope link valid_lft forever preferred_lft forever 3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN link/ether 52:54:00:b9:8f:6c brd ff:ff:ff:ff:ff:ff inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0 valid_lft forever preferred_lft forever 4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN qlen 500 link/ether 52:54:00:b9:8f:6c brd ff:ff:ff:ff:ff:ff
That's all Liangxu tutorial website For all of you Linux Related knowledge .