配置网络,手动配置
 搭建yum仓库红帽Linux网页访问问题
 下载httpd
网页访问问题:首先看httpd的状态---selinux的工作模式(强制)---上下文类型(semanage-fcontext)---selinux端口有没有放行semanage port
 ---防火墙有没有active---防火墙有没有放行对应端口---httpd(是否重启服务)
[root@workstation ~]# systemctl  status  httpd.service(确保httpd服务正常开启)
 [root@workstation ~]# getenforce(查看selinux模式)
 [root@workstation html]# ls -Z(查看文件上下文类型是否正确)
 unconfined_u:object_r:httpd_sys_content_t:s0 file1
 unconfined_u:object_r:httpd_sys_content_t:s0 index.html
开放selinux端口
 [root@workstation html]# semanage  port  -l  | grep http
 [root@workstation html]# man semanage-port
 [root@workstation html]# semanage port -a -t http_port_t -p tcp 5555
 [root@workstation html]# semanage  port  -l  | grep http
开放防火墙端口
 [root@workstation html]# man firewall-cmd
 [root@workstation html]# firewall-cmd --permanent --add-port=5555/tcp
 success
 [root@workstation html]# firewall-cmd  --reload 
 success
开放httpd配置文件的端口
 [root@workstation html]# vim  /etc/httpd/conf/httpd.conf 
 [root@workstation html]# cat   /etc/httpd/conf/httpd.conf  | grep  Listen 
 #Listen 12.34.56.78:80
 #Listen 80
 Listen  5555
重启httpd服务
 [root@workstation html]# systemctl  restart  httpd.service 
 [root@workstation html]# systemctl  enable  httpd.service