rhce学习第六天

来源:互联网 发布:中文翻译泰语软件下载 编辑:程序博客网 时间:2024/05/20 23:38

DNS

Ftp

http

Samba

Nfs+autofs

Iscsi

Ldap

Vi /boot/grub/grub.conf

引导文件

内核参数

Cat /proc/cmdline 查看内核参数

/etc/inittab  查看运行级别  runlevel  1为单用户模式

Cat/etc/rc.sysinit

Cat /etc/rc1.2.3.4.d

/etc/fstab  开机自动挂载

/etc/rc.d/rc.local

网址和域名

域名能指到主机  网址能指的更详细

Dns

安装软件Bind

服务名称 named

服务类型 systemv  

配置文件 (服务的配置文件)/etc/named.conf

业务逻辑文件(服务开启的对外开放的)/var/named

Vi /etc/named.conf

Options

  Listen-on port 53  any

中间三行 缓存文件

Allow-query  any

加密

Serice iptables stop  关闭防火墙

Chkconfig iptables off   下一次开机也关闭

Systemv

服务:/etc/init.d/network startstop restart status

Service  start stop restart status

正向解析

Vi /etc/named.rfc1912.zones

Zone "openlab.org" in 

      Type master

      File  openlab.rog.dns

Vi /var/named/

Cp -p named.localhost  openlab.org.dns

Vi /var/named/open

www  in  a   1.1.1.1

Bbs   in  a    1.1.1.2

Service named restart

反向解析

Vi /etc/named.rf1912.zones

Zone 1.1.1.in-addr.arpa in

      Type master

      File 1.1.1.ravDns

      Allow-update

Cd /etc/named

Cp -p named.local   1.1.1.rev.d

Vi 1.1.1.rev.d

1    in      ptr   www.cookiex.org.

Vi /var/named/openlab.org.dns

主从dns

Vi /etc/name.rfc1912.zones

     Zone  "cookiex.org"  IN {

            Type master;

            File "cookiex.org.dns";

            Allow-transfer {1.1.1.2;};

            Allow-update {none;};

};

Vi /etc/name.rfc1912.zones

Zone "cookiex.org" in {

     Type slave;

     Masters {1.1.1.1;};

     File "slaves/cookiex.org.dns";

}       

Cat /var/log/message

Echo "" /etc/var/log/message 清空

Dns  acl

Vi /etc/named.conf

Acl {.2.2.0/24;};

Option s......

Vsftpd

Selinux

0 0
原创粉丝点击