centos7 simple configuration

centos7 simple configuration:

After installation:

Temporarily turn off the firewall: setenforce 0

Temporarily close selinux: iptables -F

Configure yum source: cat /etc/yum.repos.d/redhat.repo

View hostname: hostname

View ip: ifconfig |grep inet or ip a or hostname -I

Modify the host name: hostnamectl set-hostname xiaofeng000 (fill in the host name you need to modify)

Refresh: modified to refresh bash

Configure the network: vim /etc/sysconfig/network-scripts/ifcfg-eth0 (fill in the name of the network card)

Thank you for pointing out any mistakes

Guess you like

Origin blog.csdn.net/m0_58871083/article/details/127678696