centos7 minimal installation configuration

1. Configure DHCP or static IP

1. Configure a static IP

[[email protected] ~]# vim /etc/sysconfig/network-scripts/ifcfg-ens33
BOOTPROTO=static
DEFROUTE=yes
IPADDR=192.168.80.132
NETMASK=255.255.255.0
GATEWAY=192.168.80.2
DNS1=8.8.8.8
DNS2=114.114.114.114
NAME=ens33
UUID=ead176c8-6568-47d0-b4e6-38d719a9b7c7
DEVICE=ens33
ONBOOT=yes

It doesn’t really matter if you don’t want to set up a static IP, but due to the ease of changing a dynamic IP it can be set up in no time.

[[email protected] ~]# ifdown ens33
[[email protected] ~]# ifup ens33

It takes effect after restarting, but there is no ifconfig command at present, so iPadr must be used.
If you don’t want to configure Static directly, use the IP address to display the dynamic IP.

Second, install commonly used tools

Install ifconfig tool, vim and download tool

[[email protected] ~]# yum -y install net-tools  vim  lrzsz

3. Speed ​​up connection with SSH configuration

[[email protected] ~]# vim /etc/ssh/sshd_config
 77
 78 # GSSAPI options
 79 GSSAPIAuthentication yes
 80 GSSAPICleanupCredentials no
 81 #GSSAPIStrictAcceptorCheck yes
 82 #GSSAPIKeyExchange no
114 #ShowPatchLevel no
115 UseDNS no
116 #PidFile /var/run/sshd.pid

Basically change 80 lines and 115 lines and yes change to no. NU can be set to display the number of rows.

Fourth, turn off the firewall and Selinux

systemctl stop firewalld
setenforce 0

5. Save screenshot after reboot

[[email protected] ~]# Reboot

Leave a Comment