CentOS7.6 installation

 

 

Introduction to CentOS

Redhat has released three operating systems based on the Linux kernel: RHEL, CentOS, and Fedora.

RHEL is a paid commercial operating system, and the paid content is the technical support and services of the operating system.

CentOS is derived from RHEL, minus the technical support and services corresponding to charges, and is currently widely used in enterprise operating systems.

Fdora is redhat's operating system for individual users. It features free, fast version updates, and a high kernel version. With the help of user test functions, it is used to charge RHEL after its stability.

 

 

server configuration

installation steps:

Set the software installation environment to GNOME Desktop

 

Custom partition

Select the standard partition, select "+" to add partition capacity and mount point in sequence

Accept the change and reset the original disk format

 

start installation

Set root administrator password and create new ordinary user

 

After the installation is complete, select reboot

login interface

Multiple block network card virbr0, do not know where it was generated.

 

Add time options to history:

[root@CentOS76 ~]# vi .bash_profile  在root用户环境变量文件中添加:
HISTTIMEFORMAT="%F %T "

同步变量文件
[root@CentOS76 ~]# source .bash_profile 

再次用history命令查询,结果中携带时间参数。
[root@CentOS76 ~]# history 
    1  2020-04-19 00:50:48 ip a
    2  2020-04-19 00:53:12 ifconfig 
    3  2020-04-19 00:53:18 ip a
    4  2020-04-19 00:57:25 history 
    5  2020-04-19 00:57:49 type history
    6  2020-04-19 00:58:04 more .bashrc

Linux philosophy: everything is a file

Commonly used inspection commands after installing the system:

检查安装的系统内核版本
[root@CentOS76 ~]# uname -r
3.10.0-957.el7.x86_64

检查安装的系统版本
[root@CentOS76 ~]# cat /etc/redhat-release 
CentOS Linux release 7.6.1810 (Core) 

查看网卡地址信息
[root@CentOS76 ~]# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.25  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 2409:8a00:5477:cde0:a8e2:478:e947:7834  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::8f92:9a3:d38c:7cbd  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:01:88:4c  txqueuelen 1000  (Ethernet)
        RX packets 1406  bytes 1151068 (1.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1021  bytes 85529 (83.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ens34: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.221.129  netmask 255.255.255.0  broadcast 192.168.221.255
        inet6 fe80::7256:64e:f38a:3630  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:01:88:56  txqueuelen 1000  (Ethernet)
        RX packets 3015  bytes 258446 (252.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1844  bytes 351536 (343.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

查看系统时间
[root@CentOS76 ~]# date
Sun Apr 19 01:35:14 EDT 2020

查看路由
[root@CentOS76 ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    100    0        0 ens33
192.168.1.0     0.0.0.0         255.255.255.0   U     100    0        0 ens33
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
192.168.221.0   0.0.0.0         255.255.255.0   U     101    0        0 ens34

查看到网关联通性
[root@CentOS76 ~]# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.647 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.587 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.593 ms

 

Published 4 original articles · liked 0 · visits 57

Guess you like

Origin blog.csdn.net/qq_24814027/article/details/105605895