1/11
文档分类:资格/认证考试

RHCE备考资料修改过.doc


下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

特别说明:文档预览什么样,下载就是什么样。

0/100
您的浏览器不支持进度条
下载所得到的文件列表
RHCE备考资料修改过.doc
文档介绍:
RHCE备考资料修改过.docRHCE部分•搭建两个虚拟主机..要求stu.同吋侦听80和8080两个端口,要求访问须是(odd,密码是login.首先配置DNS服务器安装包:bind-9.33-7.el5vi/etc/named.conf(将named.conf文件chgrp到named用八组)options{directoryu/var/namecT;};zoneIN{typehint;file"named.root";};zone"localdomain”IN{typemaster;fileuIocaldomain.zone^;};zone41ocalhostM{typemaster;tile"localhost.zone";};zone“0・0.127・in・addr-arpa''IN{typemaster;file“named.local”;};zone"example,confTN{typemaster;file“example.zone”;};zone“0.16&192.in・addr.arpa"IN{typemaster;file“0.16&192.zone";};vi/var/named/example.zone$TTL86400@ INSOA .root..(.42;serial(d.adams)3H;refresh15M;retry1W;expiryID;.INMX10mail.mailINA192.168.0.100.100stuINA192」68.0..INA192.168.0.100vi/var/named/0.168.192.zone$TTL86400@•root..(43;serial(d.adams)3H;refresh15M;retry1W;expiryID;・100INPTRmail..100INPTRstu..100INPTR./var/named下有文件0.168.192.zoneexample.zone localhost.zone named.rootlocaldomain.zonenamedJocalvi/etc/hosts192.16&0.100vi/etc/resolv.confserver192.16&0.100vi/etc/workHOSTNAME=vicenamedconfigtest命令验证DNS的配置用nslookup命令进行域名解析配置apache服务器安装包:httpd-2.23-ll.el5依赖包:apr-util-1.2.7-6 apr-1.2.7-11postgresql-libs-8.1.9.1.el51.虚拟主机配置vi/etc/httpd/conf7httpdxonfListen8080NameVirtualHost<VirtualHost>ServerAdmin「******@mentRoot/var//htmlServerNamerLoglogs/or_logCustomLoglogs/ess」mon<VirtualHost>NameVirtualHoststu・:80<VirtualHoststu.:80>******@sUj.DocumentRoot/var//htmlServerNamestu.ErrorLoglogs/stu.-errorjogCustomLoglogs/stu.-access」mon<VirtualHost>NameVirtualHoststu.:8080<VirtualHoststu.:8080>ServerAdmin「******@sUi.DocumentRoot/var//htmlServerNameslu.ErrorLoglogs/stu.-error_logCustomLoglogs/stu.-access」mon<VirtualHost>创建主页文件mkdir-p/var//htmlecho"eto">/var//html/index.htmlmkdir-p/var//htmlecho"etostu.”>/var//html/index.htmlchkconfighttpdonservicehttpdrestart验证熄拟主机配置linkssstu.linksstu.:8080配置个人主页vi/etc/httpd/confThttpd.conf#UserDirdisable加注释UserDirpublic_html去掉注解useraddtoddsu-todd[******@www〜[$mkdirpublic_html[******@www〜]$Is-Z查看selinuxbool值drwxrwxr-xtoddtoddroot:object_r:user_home_t public_htmlsu-[******@ 内容来自淘豆网www.taodocs.com转载请标明出处.
更多>> 相关文档
非法内容举报中心
文档信息
  • 页数11
  • 收藏数0 收藏
  • 顶次数0
  • 上传人ttteee8
  • 文件大小116 KB
  • 时间2020-08-05
文档标签