您的位置:首页 > 健康 > 美食 > ae模板素材网站_微信小程序跳转到网页_新公司怎么做网络推广_有网站模板怎么建站

ae模板素材网站_微信小程序跳转到网页_新公司怎么做网络推广_有网站模板怎么建站

2025/4/20 22:28:08 来源:https://blog.csdn.net/2301_80926503/article/details/147259776  浏览:    关键词:ae模板素材网站_微信小程序跳转到网页_新公司怎么做网络推广_有网站模板怎么建站
ae模板素材网站_微信小程序跳转到网页_新公司怎么做网络推广_有网站模板怎么建站

配置网络,手动配置
搭建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

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com