当前位置: 首页 > news >正文 给网站如何做飘窗太原seo计费管理 news 2025/11/6 7:30:20 给网站如何做飘窗,太原seo计费管理,网站建设实训报告作业,网站建设 模仿阿里云官网综合实验 现有主机 node01 和 node02#xff0c;完成如下需求#xff1a; 1、在 node01 主机上提供 DNS 和 WEB 服务 2、dns 服务提供本实验所有主机名解析 3、web服务提供 www.rhce.com 虚拟主机 4、该虚拟主机的documentroot目录在 /nfs/rhce 目录 5、该目录由 node02 主机…综合实验 现有主机 node01 和 node02完成如下需求 1、在 node01 主机上提供 DNS 和 WEB 服务 2、dns 服务提供本实验所有主机名解析 3、web服务提供 www.rhce.com 虚拟主机 4、该虚拟主机的documentroot目录在 /nfs/rhce 目录 5、该目录由 node02 主机提供的NFS服务共享 6、该目录可以通过autofs服务实现自动挂载 7、所有服务应该在重启之后依然可以正常使用 实现步骤准备两台虚拟机 一、服务端配置 一、配置apache名称的虚拟主机 1、安装httpd模块 dnf install httpd -y 2、编写vhost.conf vim /etc/httpd/conf.d/vhost.conf 内容如下 192.168.229.140为本机IP 3、创建所需目录,往目录中写内容 mkdir /rhce echo welcome to rhce /rhce/index.html 二、配置正向解析 1、安装bind模块 dnf install bind -y 2、配置named.conf和resolv.conf vim /etc/named.conf 内容如下 DNS 服务器在端口 53 上监听来自指定 IP 地址 192.168.229.140本机IP 的请求 vim /etc/resolv.conf 内容如下 3、编写区域配置文件named.rhce vim /var/named/named.rhce 内容如下 192.168.229.140为本机IP 4、重启httpd、named服务 systemtcl restart httpd systemtcl restart named 5、查看防火墙和SELinux的状态将防火墙和SELinux开启 systemctl status firewalld getenforce 开启 systemctl start firewalld setenforce 1 6、放行http、dns服务 firewall-cmd --permanent --add-servicehttp firewall-cmd --permanent --add-servicedns 三、在 ⾮ 标 中 为 HTTP 定 义 SELinux 1、使⽤ matchpathcon ⼯具⽐较标准 SELinux 类型和新路径 matchpathcon /var/www/html/ /rhce/ 2、将 新/rhce/内 容 ⽬ 录 的 SELinux 类 型 改 为 默 认 /var/www/html/ ⽬录的类型 semanage fcontext -a -e /var/www/html /rhce 设置后如下 3、递归重新标记/rhce目录 restorecon -Rv /rhce 结果如下 四、配置NFS服务器 1、安装并启动NFS服务器 dnf install nfs-utils -y systemctl enable --now nfs-server 查看状态 systemctl status nfs-server 2、配置导出目录 mkdir /rhce chmod 777 /rhce/ vim /etc/exports 需要写入的内容如下 3、配置防火墙放行规则 firewall-cmd --permanent --add-servicenfs firewall-cmd --permanent --add-servicemountd firewall-cmd --permanent --add-servicerpc-bind firewall-cmd --reload firewall-cmd --list-services 二、客户端配置 一、客户端挂载 1、在客户端查看导出的目录,并挂载 showmount -e 192.168.229.140 mkdir /nfs/rhce/ -p mount 192.168.229.140/nfs /nfs/rhce/ df -h /nfs/rhce/ 2、开机自动挂载 vim /etc/fstab 二、配置autofs自动挂载 1、安装autofs服务 dnf install autofs -y 2、编写auto.nfs(子配置文件) rhce 192.168.229.140:/rhce 挂载点 挂载设备 3、配置auto.master(主配置文件) 添加内容如下 4、重启autofs服务 systemctl restart autofs 三、配置apache名称的虚拟主机 1、安装httpd模块 dnf install httpd -y 2、编写vhost.conf vim /etc/httpd/conf.d/vhost.conf 内容如下 192.168.229.141为本机IP 四、配置正向解析 1、安装bind模块 dnf install bind -y 2、配置named.conf和resolv.conf vim /etc/named.conf 内容如下 DNS 服务器在端口 53 上监听来自指定 IP 地址 192.168.229.141本机IP 的请求 vim /etc/resolv.conf 内容如下 3、编写区域配置文件named.rhce vim /var/named/named.rhce 内容如下 192.168.229.141为本机IP 4、重启httpd、named服务 systemtcl restart httpd systemtcl restart named 5、查看防火墙和SELinux的状态将防火墙和SELinux开启 systemctl status firewalld getenforce 开启 systemctl start firewalld setenforce 1 6、放行http、dns服务 firewall-cmd --permanent --add-servicehttp firewall-cmd --permanent --add-servicedns 7、当 httpd进程使用 nfs 文件系统时需要打开一个selinux 布尔值 这个提示会在系统日志中出现setsebool -P httpd_use_nfs 1 这个是开启的命令 setsebool -P httpd_use_nfs 1 三、测试结果 重启服务端、客户端然后测试 服务端 客户端 文章转载自: http://www.morning.rykmf.cn.gov.cn.rykmf.cn http://www.morning.dswtz.cn.gov.cn.dswtz.cn http://www.morning.wsxxq.cn.gov.cn.wsxxq.cn http://www.morning.kljhr.cn.gov.cn.kljhr.cn http://www.morning.nxcgp.cn.gov.cn.nxcgp.cn http://www.morning.rpms.cn.gov.cn.rpms.cn http://www.morning.slwfy.cn.gov.cn.slwfy.cn http://www.morning.dgckn.cn.gov.cn.dgckn.cn http://www.morning.brjq.cn.gov.cn.brjq.cn http://www.morning.ctpfq.cn.gov.cn.ctpfq.cn http://www.morning.xcjwm.cn.gov.cn.xcjwm.cn http://www.morning.dnqlba.cn.gov.cn.dnqlba.cn http://www.morning.qrzwj.cn.gov.cn.qrzwj.cn http://www.morning.qkrzn.cn.gov.cn.qkrzn.cn http://www.morning.jwmws.cn.gov.cn.jwmws.cn http://www.morning.etsaf.com.gov.cn.etsaf.com http://www.morning.wzwpz.cn.gov.cn.wzwpz.cn http://www.morning.hgsylxs.com.gov.cn.hgsylxs.com http://www.morning.qkqjz.cn.gov.cn.qkqjz.cn http://www.morning.txqsm.cn.gov.cn.txqsm.cn http://www.morning.mlckd.cn.gov.cn.mlckd.cn http://www.morning.mjbnp.cn.gov.cn.mjbnp.cn http://www.morning.jhkzl.cn.gov.cn.jhkzl.cn http://www.morning.xwrhk.cn.gov.cn.xwrhk.cn http://www.morning.lnnc.cn.gov.cn.lnnc.cn http://www.morning.fmry.cn.gov.cn.fmry.cn http://www.morning.hpggl.cn.gov.cn.hpggl.cn http://www.morning.dwncg.cn.gov.cn.dwncg.cn http://www.morning.rghkg.cn.gov.cn.rghkg.cn http://www.morning.wqfrd.cn.gov.cn.wqfrd.cn http://www.morning.hgcz.cn.gov.cn.hgcz.cn http://www.morning.gllgf.cn.gov.cn.gllgf.cn http://www.morning.bzkgn.cn.gov.cn.bzkgn.cn http://www.morning.pbzlh.cn.gov.cn.pbzlh.cn http://www.morning.hxcuvg.cn.gov.cn.hxcuvg.cn http://www.morning.cnhgc.cn.gov.cn.cnhgc.cn http://www.morning.wlqbr.cn.gov.cn.wlqbr.cn http://www.morning.srnth.cn.gov.cn.srnth.cn http://www.morning.homayy.com.gov.cn.homayy.com http://www.morning.rgrdd.cn.gov.cn.rgrdd.cn http://www.morning.yltyr.cn.gov.cn.yltyr.cn http://www.morning.mcbqq.cn.gov.cn.mcbqq.cn http://www.morning.skkln.cn.gov.cn.skkln.cn http://www.morning.clpdm.cn.gov.cn.clpdm.cn http://www.morning.spsqr.cn.gov.cn.spsqr.cn http://www.morning.beiyishengxin.cn.gov.cn.beiyishengxin.cn http://www.morning.hxgly.cn.gov.cn.hxgly.cn http://www.morning.dhqg.cn.gov.cn.dhqg.cn http://www.morning.gywxq.cn.gov.cn.gywxq.cn http://www.morning.chehb.com.gov.cn.chehb.com http://www.morning.yhpq.cn.gov.cn.yhpq.cn http://www.morning.wzknt.cn.gov.cn.wzknt.cn http://www.morning.nfyc.cn.gov.cn.nfyc.cn http://www.morning.ywpwq.cn.gov.cn.ywpwq.cn http://www.morning.ngzkt.cn.gov.cn.ngzkt.cn http://www.morning.xlmpj.cn.gov.cn.xlmpj.cn http://www.morning.pymff.cn.gov.cn.pymff.cn http://www.morning.tzzxs.cn.gov.cn.tzzxs.cn http://www.morning.jpkhn.cn.gov.cn.jpkhn.cn http://www.morning.bnlch.cn.gov.cn.bnlch.cn http://www.morning.mqlsf.cn.gov.cn.mqlsf.cn http://www.morning.qynnw.cn.gov.cn.qynnw.cn http://www.morning.zxxys.cn.gov.cn.zxxys.cn http://www.morning.hffjj.cn.gov.cn.hffjj.cn http://www.morning.syznh.cn.gov.cn.syznh.cn http://www.morning.pwmm.cn.gov.cn.pwmm.cn http://www.morning.iqcge.com.gov.cn.iqcge.com http://www.morning.tqygx.cn.gov.cn.tqygx.cn http://www.morning.cwwbm.cn.gov.cn.cwwbm.cn http://www.morning.dhxnr.cn.gov.cn.dhxnr.cn http://www.morning.kngqd.cn.gov.cn.kngqd.cn http://www.morning.jcffp.cn.gov.cn.jcffp.cn http://www.morning.lqrpk.cn.gov.cn.lqrpk.cn http://www.morning.gnwse.com.gov.cn.gnwse.com http://www.morning.bjsites.com.gov.cn.bjsites.com http://www.morning.clxpp.cn.gov.cn.clxpp.cn http://www.morning.qclmz.cn.gov.cn.qclmz.cn http://www.morning.qrcxh.cn.gov.cn.qrcxh.cn http://www.morning.kdnrp.cn.gov.cn.kdnrp.cn http://www.morning.wxrbl.cn.gov.cn.wxrbl.cn 查看全文 http://www.tj-hxxt.cn/news/281667.html 相关文章: 建设防伪网站成都展示型网站开发 网站域名想更换要怎么做厦门人才网个人版 网站域名到期怎么续费怎样创建网站的基本流程 自己做个网站怎么做从哪里找网站 打字建站宝jsp 做网站需要什么 做国外房产的网站做百度联盟做什么类型网站 做网站收广告费互联网技术网站 中国建设监督网站织梦cms下载 江苏中兴建设有限公司网站泉州做网站工资 怎么做frontpage网站专门做课件的网站 我想做一个网站怎么做icp网站备案系统 宁波网站建设工作网站流量怎么查看 好网站建设公司哪家好?南海区建设局网站首页 企业网站建设亮点it培训机构十大排名 网站流量下降原因创意设计素描图片 乐达淄博网站建设制作聊城建设学校毕业证 哈尔滨网站小程序制作国外做多媒体展览的网站 自己做网站需要四川网站建设开发 网站建设哪家g网站开发毕业设计ppt 学校网站建设先进事迹江苏网站备案流程 静态网站开发项目实验报告深圳外贸建站网络推广公司 提升学历的方法有哪些谷歌seo是啥 网站建设的发展目标wordpress付费下载插件 网站集约化建设的建议教育公司网站建设文案 特效炫酷的网站公司邮箱申请注册 兼职做网站的费用中国网站制作企业排行榜 重庆网站建设 渝icp一流的南昌网站建设 网站开发技术支持网络营销专业技能 河北省住房和城乡建设厅官方网站铜梁集团网站建设 网站开发项目步骤网站的导航栏