centos7简单配置

centos7简单配置:

安装完毕后:

临时关闭防火墙:setenforce 0

临时关闭selinux:iptables -F

配置yum源:cat /etc/yum.repos.d/redhat.repo

查看主机名:hostname

查看ip:ifconfig |grep inet 或 ip a 或hostname -I

修改主机名:hostnamectl set-hostname xiaofeng000 (填写的是自己需要修改的主机名)

刷新:修改为刷新 bash

配置网络:vim /etc/sysconfig/network-scripts/ifcfg-eth0 (填写的是网卡名称)

如有错误 谢谢指出

猜你喜欢

转载自blog.csdn.net/m0_58871083/article/details/127678696