Webmin使用教程:图形配置Linux服务器


  烈火网(LieHuo.Net)教程 对于很多习惯使用windows的用户,在刚接触Linux的时候,要使用命令行配置Linux服务器可能会感觉难以适应。今天我们来讲解一下,Linux下的图形配置工具—Webmin,通过这款工具,用户可以很方便的使用web界面对Linux服务器进行配置。

  一、配置bind dns服务器

  1、 系统—〉“软件包”—〉搜索并安装相应的“软件包”(upload file &install package)

  2、 在webmin的“硬件”—〉“网络配置”—〉选择“dns客户”—〉将“解析顺序”改为--“dns、hosts”—〉按“保存”后返回

  选择“服务”—〉“bind 8 dns服务器”—〉可以看到由“全局服务器选项”、“现有dns区域”和其他部分组成

  bind在默认安装的情况下可作为高速缓存服务器(有root zone、127.0.0的反向、localhost的正向)--〉其安装顺序为bind-9.1.3-4—〉bindconf-1.6.1—〉caching-nameserver7.2-1

  3、 创建主服务器

  在webmin的server中选择“bind dns server”—〉在“现有区域”中选择“新建主区域”—〉“区域类型”选择“正向”,在“域名/网络”域名输入“test.com”,主服务器输入“master.test.com”,email地址输入“root@localhost”—〉按“新建”完成

  在“现有区域”中选择“新建主区域”—〉“区域类型”选择“反向”,在“域名/网络”输入“192.168.0”,主服务器输入“master.test.com”,email地址输入“root@localhost”—〉按“新建”完成

  在主服务器中添加正向地址记录—〉选择“test.com”—〉选择“a记录”—〉在“名称”处输入“www”,在地址处输入“192.168.0.100”—〉按“新增”完成

  也可以添加“名称别称cname记录”、“邮件服务器mx记录”和“辅域名服务器ns记录”

  完成所有的记录添加后返回“bind dns服务器”中按“应用更改”即完成配置的更改

  4、 创建从服务器

  在“现有区域中”选择—〉“新建次区域”—〉选择“正向解析”(forward),输入域名“abc.com”,输入“主服务器”的地址“192.168.0.101”—〉按“新建”后完成—〉按“保存”后返回“bind dns服务器”—〉按“应用更改”使配置生效

  用相同步骤实现“从服务器的反向记录”的设置

  二、postfix邮件服务器的配置

  1、 postfix的安装

  在“webmin”的界面中选择“system”—〉选择“software package”—〉选择“install a new package”—〉“from upload file”—〉“install”安装 postfix-1.1.7-2.i386.rpm、imap-2001a-10.i386.rpm

  2、配置postfix服务器的启动

  在“system”中选择“bootup and shutdown”—〉选择“postfix”—〉将“start at boot time” 改为“yes”—〉按“save”返回

  在“server”中选择“extended internet services”—〉分别选择 “imap”和“pop3”,将“service enable”改为“yes”—〉保存后返回—〉按“applay changes”使设置生效(相当于service xinetd restart)

  3、在dns上注册邮件服务器

  (注意两点:1、在完成添加后需要按“apply changes”使配置生效2、服务器中如写完整的主机名要以“.”结尾)

  4、配置postfix

  在“server”中选择“postfix configuration”—〉选择“general options”—〉设定“what domain to use in outbound”为“use domainname”表示使用当前邮件服务器的域名作为邮件发送者的域名;设定“what domains to receive mail for”为“whole domain”,表示当前邮件服务器接收整个域的所有邮件;设置“network interfaces for receiving mail”为“all”,表示通过所有的网卡来接收邮件;设置“hostname of this mail system”为当前邮件服务器的主机名输入“mail.test.com”;在“local internet domain name”中输入当前主机所在的域名“test.com”;其他项保持默认值—〉按“save and apply”后完成

  5、为邮件服务器添加用户帐号

  在“webmin”的“system”中的“users and groups”—〉选择“local groups”按“create a new group”—〉在“group name”中输入“mailuser”—〉在“local user”中选择“create a new user”—〉在“username”中输入“mailuser1”,在“home directory”中输入“/home/mailuser1”,在“password”中输入“normal password”,在“group membership”中“primary group”的“existing group”选择“mailuser”—〉按“create”按钮完成用户创建

  5、 邮件别名和虚拟域

  邮件别名:

  在“webmin”的“server”中选择“postfix configuration”—〉选择“mail aliases”—〉选择“create a new alias”—〉在“alias options”中设置“alias databases used by the local delivery agent”和“alias databases built by newaliases command”为“hash:/etc/postfix/aliases”—〉选择“create a new alias”—〉在“alias properties edition”页中“name”输入“mailuser3”在“alias to…”中输入“mailuser2”(mailuser3为不存在的账号alias to mailuser2为已存在的账号,所以发给mailuser3的邮件会自动转到mailuser2)

  邮件的虚拟域:

  在“webmin”的“server”的“postfix configuration”中—〉选择“virtual domain”—〉设置“domain mapping lookup tables”为“hash:/etc/postfix/virtual”—〉选择“save and apply”—〉在次进入“virtual domains”选择“new mapping”新建一个映射—〉在“edit a map”中设置“name”为“@newtest.com”,“maps to…”为“@test.com”(表示把所有发往@newtest.com的信映射到@test.com)--〉按“save mapping”保存

  • 共2页:
  • 上一页
  • 1
  • 2
  • 下一页

相关内容