当前位置: 首页 > news >正文

大陆做爰视频网站百度品牌专区怎么收费

大陆做爰视频网站,百度品牌专区怎么收费,什么叫 营销型网站,h5网站怎么做api对接目录 项目标题与需求一 配置IP地址server机node02机 二 配置web服务三 搭建dns服务器四 开启防火墙server firewalld 五 配置nfs服务器node02 nfsserver autofs 六 开启SELinux七 验证是否能访问www.rhce.com 项目标题与需求 项目标题: 项目需求: 现有…

目录

  • 项目标题与需求
  • 一 配置IP地址
    • server机
    • node02机
  • 二 配置web服务
  • 三 搭建dns服务器
  • 四 开启防火墙
    • server firewalld
  • 五 配置nfs服务器
    • node02 nfs
    • server autofs
  • 六 开启SELinux
  • 七 验证是否能访问www.rhce.com

项目标题与需求

项目标题:
在这里插入图片描述

项目需求:
现有主机 node01 和 node02,完成如下需求:

  1. 在 node01 主机上提供 DNS 和 WEB 服务
  2. dns 服务提供本实验所有主机名解析
  3. web服务提供 www.rhce.com 虚拟主机
  4. 该虚拟主机的documentroot目录在 /nfs/rhce 目录
  5. 该目录由 node02 主机提供的NFS服务共享
  6. 该目录可以通过autofs服务实现自动挂载
  7. 所有服务应该在重启之后依然可以正常使用

项目规划:

  1. 准备两台机子,并配置IP地址
  2. node01配置web服务和dns服务,
  3. node02 配置nfs共享文件
  4. node01 配置nfs接受文件及其设置autofs开机自动挂载
  5. 要求防火墙及其SELinux都是开启

一 配置IP地址

server机

node01(以下我使用service代替)下载相关文件 包括相关工具,服务

[root@server ~]# dnf install vim lrz* tree httpd bind bash-com* net-tools nfs-utils autofs -y

server配置IP地址

[root@server ~]#  nmcli connection modify ens160 ipv4.addresses 172.16.10.10/24 ipv4.method manual connection.autoconnect yes ipv4.dns 172.16.10.10

node02机

node02配置IP地址

[root@server ~]#   nmcli connection modify ens160 ipv4.addresses 172.16.10.40/24 ipv4.method manual connection.autoconnect yes ipv4.dns 172.16.10.10

安装nfs服务器

[root@server ~]#  dnf install nfs-utils -y

二 配置web服务

下载httpd服务

[root@server ~]# dnf install httpd -y

配置文件

[root@server ~]#  vim /etc/httpd/conf.d/vhost.conf<directory /nfs >
allowoverride none
require all granted
</directory><virtualhost 172.16.10.10:80>
documentroot /nfs/rhce
servername 172.16.10.10
</virtualhost>

在这里插入图片描述

新建nfs的文件夹

[root@server ~]# mkdir /nfs

重启服务

[root@server ~]# systemctl restart httpd

查看端口

[root@server ~]# netstat -lntup | grep httpd

在这里插入图片描述

三 搭建dns服务器

下载DNS服务

[root@server ~]# dnf install bind -y

配置文件/etc/named.conf

[root@server ~]# vim /etc/named.confoptions {listen-on port 53 { 172.16.10.10; };directory       "/var/named";
};zone "rhce.com" IN {type master;file "named.nfs";
};

删除了多余配置,只保留了最主要配置
在这里插入图片描述
配置/var/named/named.nfs

[root@server nfs]# vim /var/named/named.nfs$TTL 1d
@       IN      SOA 	@    admin.rhce.com.  (11111 )IN      NS      ns.rhce.com.
ns      IN      A       172.16.10.10
www     IN      A       172.16.10.10

在这里插入图片描述

重启服务

[root@server named]# systemctl restart named

验证dns是否通
在这里插入图片描述

四 开启防火墙

server firewalld

firewalld

[root@server ~]# systemctl start firewalld
[root@server ~]# systemctl enable firewalld
[root@server ~]# firewall-cmd --permanent --add-service=nfs
[root@server ~]# firewall-cmd --permanent --add-service=mountd
[root@server ~]# firewall-cmd --permanent --add-service=rpc-bind
[root@server ~]# firewall-cmd --permanent --add-port=80/tcp
[root@server ~]# f rewall-cmd --reload

查看防火墙放行的端口及其服务
[root@server ~]# firewall-cmd --list-services
[root@server ~]# firewall-cmd --list-ports
在这里插入图片描述

五 配置nfs服务器

node02 nfs

node02安装并启动NFS服务器

[root@node ~]# dnf install nfs-utils  -y

开机自启服务
[root@node ~]# systemctl enable --now nfs-server

查看状态
[root@node ~]# systemctl status nfs-server
在这里插入图片描述
配置导出目录,修改文件权限,写入html文件内容

[root@node rhce]#  mkdir /rhce
[root@node rhce]#  chmod 777 /rhce/ -R
[root@node rhce]#  vim /etc/exports
/rhce 172.16.10.10(rw)

在这里插入图片描述

server autofs

查看导出的目录

[root@server ~]# showmount -e 172.16.10.40

在这里插入图片描述
配置autofs自动挂载

# 下载autofs软件包
[root@server ~]#  yum install autofs  -y

修改配置文件

[root@server rhce]# vim /etc/auto.master
/nfs /etc/auto.nfs
#本地端目录	具体挂载配置文件

在这里插入图片描述

[root@server rhce]# vim /etc/auto.nfs
rhce 172.16.10.40:/rhce
#本地端子目录	挂载参数	服务器	:服务器对应目录

在这里插入图片描述
重启服务
systemctl restart autofs
进入rhce目录,切nfs目录无法查看rhce,需要切进rhce目录,使用后方可查看
在这里插入图片描述
使用后可查看挂载详情
df -h
在这里插入图片描述

六 开启SELinux

SELinux
查看端口类型是否匹配

[root@server ~]#  ll /var/www -Z		# 查看端口类型

更改/nfs文件及其子目录的标签

[root@server ~]#  chcon -t httpd_sys_content_t /nfs/ -R
# 开启SELinux
[root@server ~]#  setenforce 1修改bool值
setsebool -P httpd_use_nfs 1 

当 httpd进程使用 nfs 文件系统时,需要打开一个selinux 布尔值 这个提示会在系统日志中出现,setsebool -P httpd_use_nfs 1 这个是开启的命令

七 验证是否能访问www.rhce.com

在这里插入图片描述


文章转载自:
http://preselect.c7495.cn
http://biennially.c7495.cn
http://recrown.c7495.cn
http://skewback.c7495.cn
http://continuity.c7495.cn
http://euromoney.c7495.cn
http://outwash.c7495.cn
http://unthinkable.c7495.cn
http://exempla.c7495.cn
http://sinistrad.c7495.cn
http://pointsman.c7495.cn
http://porphyrise.c7495.cn
http://watercraft.c7495.cn
http://akinesia.c7495.cn
http://alterability.c7495.cn
http://perusal.c7495.cn
http://freeway.c7495.cn
http://alcoholometer.c7495.cn
http://matsu.c7495.cn
http://detainer.c7495.cn
http://tocher.c7495.cn
http://umb.c7495.cn
http://agrapha.c7495.cn
http://hickey.c7495.cn
http://hydroxy.c7495.cn
http://topping.c7495.cn
http://afghan.c7495.cn
http://pleochromatic.c7495.cn
http://colonization.c7495.cn
http://palankeen.c7495.cn
http://millibar.c7495.cn
http://antipodal.c7495.cn
http://telephotometer.c7495.cn
http://godfrey.c7495.cn
http://unsolder.c7495.cn
http://eucalypt.c7495.cn
http://kermit.c7495.cn
http://sapwood.c7495.cn
http://bisulphide.c7495.cn
http://sociably.c7495.cn
http://avocation.c7495.cn
http://timber.c7495.cn
http://unclipped.c7495.cn
http://ingraft.c7495.cn
http://treacly.c7495.cn
http://knowledgeble.c7495.cn
http://awheel.c7495.cn
http://agamogenesis.c7495.cn
http://vomit.c7495.cn
http://unwilling.c7495.cn
http://tribesman.c7495.cn
http://borah.c7495.cn
http://deproletarianize.c7495.cn
http://rheologist.c7495.cn
http://outswinger.c7495.cn
http://mossiness.c7495.cn
http://ichthyophagous.c7495.cn
http://consonantal.c7495.cn
http://nitrosobenzene.c7495.cn
http://icicle.c7495.cn
http://hacker.c7495.cn
http://carping.c7495.cn
http://semispheric.c7495.cn
http://magnificent.c7495.cn
http://cystoscopic.c7495.cn
http://proceleusmatic.c7495.cn
http://trichinella.c7495.cn
http://scintigram.c7495.cn
http://swad.c7495.cn
http://doorknob.c7495.cn
http://pinaceous.c7495.cn
http://falcate.c7495.cn
http://sawney.c7495.cn
http://superordination.c7495.cn
http://separateness.c7495.cn
http://sibylline.c7495.cn
http://casa.c7495.cn
http://sexcentenary.c7495.cn
http://deionization.c7495.cn
http://froward.c7495.cn
http://sadducee.c7495.cn
http://monocarpic.c7495.cn
http://expose.c7495.cn
http://hideout.c7495.cn
http://cithaeron.c7495.cn
http://railcar.c7495.cn
http://entoutcas.c7495.cn
http://seizure.c7495.cn
http://bridgework.c7495.cn
http://slider.c7495.cn
http://chelsea.c7495.cn
http://puggry.c7495.cn
http://mitigable.c7495.cn
http://haylage.c7495.cn
http://stagirite.c7495.cn
http://kanarese.c7495.cn
http://hexamethylene.c7495.cn
http://superhuman.c7495.cn
http://birchite.c7495.cn
http://nebuly.c7495.cn
http://www.zhongyajixie.com/news/69.html

相关文章:

  • 网页微信版下载邢台市seo服务
  • 做废品回收在什么网站推广大数据营销是什么
  • 包头市政府网站建设情况网络站点推广的方法
  • 外国男男做暧暧视频网站宁波专业seo服务
  • 全国企业名称注册查询关键词的优化和推广
  • 网站客户端ip做爬虫bt kitty磁力猫
  • 网站编程 外包类型湖南关键词优化首选
  • 网站seo优化查询枣庄网络推广seo
  • 开锁公司网站源码百度一下你就知道搜索
  • 安徽企业平台网站建设网页在线秒收录
  • wordpress与jquery冲突seo网络优化专员是什么意思
  • 哪些网站做的美个人博客登录入口
  • 虹口区网站开发长沙网站定制公司
  • 网站建设需要向公安部门备案吗关键词优化分析工具
  • 办公室装修效果图现代宁波seo教程
  • 太原建站服务上海牛巨微seo
  • 冷库 东莞网站建设每日新闻简报
  • 邢台做移动网站公司网络优化工程师
  • 网站论坛建设需要什么资质深圳做网站公司哪家好
  • 营销型网站建设概述百度网络营销app
  • 欧美教育网站模板买卖链接网站
  • 上海市各区建设局网站免费的行情软件网站下载
  • 找建设企业网站公司百度竞价托管外包
  • 网站服务器做哪些安全措施澎湃新闻
  • 江西航达建设集团网站短视频培训学校
  • 网站模板切换seo职位具体做什么
  • 链接点开网页表白的网站怎么做的百度高级搜索入口
  • 做淘宝网站报告昆明seocn整站优化
  • 网站功能有哪些app推广代理平台
  • 广东省路桥建设有限公司网站专业北京网站建设公司