centos 7

一、u盘安装 centos 7 minimal

二、kvm安装

三、docker安装

cenos7与centos6

文件系统XFS与Ext4

1、#临时关闭防火墙

systemctl stop firewalld

#开放端口

firewall-cmd --zone=public --add-port=80/tcp --permanent

firewall-cmd --zone=public --add-port=10051/tcp --permanent

#更新防火墙规则

firewall-cmd --reload

systemctl restart firewalld.service

2.更改主机名

(centos6) vim /etc/sysconfig/network, 需要重启

(centos 7) 命令hostnamectl --static set-hostname cetnos201,/etc/hostname 将被自动更新,注销不需要重启。

扫描二维码关注公众号,回复: 1582273 查看本文章

#配置 Docker 加速器daocloud,需要docker版本1.8以上

curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://38e3d745.m.daocloud.io

systemctl restart docker

#安装netstat 和 ifconfig

yum install net-tools

忘记密码

猜你喜欢

转载自blog.51cto.com/yanjiu/2128862