1.如果ifconfig命令不存在,即which ifconfig找不到时。
yum install net-tools
2.apache问题
yum install httpd #安装apache
systemctl start httpd.service #启动apache
systemctl stop httpd.service #停止apache
systemctl restart httpd.service #重启apache
systemctl enable httpd.service #设置apache开机启动
防火墙
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
在客户端浏览器中打开服务器IP地址,出现apache测试界面。