centos
centos
yum install net-tools #ifconfig
yum install bind-utils #dig nslookup host
ip addr show
vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
IPADDR = "[在这里输入你的静态 IP]"
GATEWAY = "[输入你的默认网关]"
DNS1 = "[你的DNS 1]"
DNS2 = "[你的DNS 2]"
service network restart
vi /etc/hostname
yum -y update && yum -y upgrade
yum install links
yum install httpd
firewall-cmd –add-service=http
firewall-cmd –permanent –add-port=3221/tcp
firewall-cmd –reload
systemctl restart httpd.service
systemctl start httpd.service
systemctl enable httpd.service #添加 Apache 服务到系统层使其随系统自动启动
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo