CentOS-5.5-64bit+ZCS-6.0.10_GA_2692.RHEL5_64 Install Logs
看到网上有关ZCS的安装教程,觉得都不尽完美,下面分享本人在VM虚拟机上的ZCS安装全记录,适合新手学习。 Linux的发行版本:
[root@zimbra ~]#
lsb_release –a
/ uname –a(-r)
LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description: CentOS release 5.5 (Final)
Release: 5.5
Codename: Final
复制代码
Linux
的内核版本:
[root@zimbra ~]# uname -a
Linux zimbra.surmount.net 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
复制代码
系统的分区情况:
[root@zimbra ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 10154020 3078088 6551812 32% /
/dev/sda5 28244400 176204 26610300 1% /opt
/dev/sda1 194442 11984 172419 7% /boot
tmpfs 513272 0 513272 0% /dev/shm
/dev/hdc 4290746 4290746 0 100% /media/cdrom
复制代码
eth0
网络适配器的参数:
[root@zimbra ~]# /sbin/ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0C:29:53:C7:1F
inet addr:172.16.0.25 Bcast:172.16.255.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe53:c71f/64 Scopeink
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3571 errors:0 dropped:0 overruns:0 frame:0
TX packets:198 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:313293 (305.9 KiB) TX bytes:24478 (23.9 KiB)
复制代码
eth0
网络适配器的配置:
[root@zimbra ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth0
#BOOTPROTO=dhcp
BOOTPROTO=static
HWADDR=00:0C:29:53:C7:1F
IPV6INIT=no
IPV6_AUTOCONF=no
ONBOOT=yes
IPADDR=172.16.0.25
PREFIX=24
GATEWAY=172.16.0.1
复制代码
配置eth0 :重启后生效
Vi /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO=static
IPADDR=192.168.1.102
NETMASK=255.255.255.0 GETEWAY=192.168.1.1
即时生效
ifconfig eth0 192.168.1.102 netmask 255.255.255.0
route add default gw 192.168.1.1
-----------------------------
/etc/sysconfig/network
文件的配置:
[root@zimbra ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
#NETWORKING_IPV6=yes
HOSTNAME=zimbra.surmount.net
#HOSTNAME=localhost.localdomain
复制代码
/etc/hosts
文件的配置:
[root@zimbra ~]#
vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
172.16.0.25 zimbra.surmount.net zimbra
复制代码
配置主机名
配置主机名:重启后生效
Vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=zimbra.abc.com
即时生效:
# hostname zimbra.abc.com
-----------------------------------------------
/etc/resolv.conf
文件的配置:
[root@zimbra ~]# cat /etc/resolv.conf
search surmount.net
nameserver 172.16.0.25
复制代码
设置
DNS
Vi /etc/resolv.conf
search zimbra.abc.com
nameserver 192.168.190.100
-------------------------------------------
主机名称:
[root@zimbra ~]# hostname
zimbra.surmount.net
复制代码
已安装openssh-server RPM
软件包,可用Putty
及SecureCRT
类软件远程连接:
[root@zimbra ~]# rpm -aq | grep openssh-server
openssh-server-4.3p2-41.el5
复制代码
安装sysstat RPM
软件包,支持Zimbra
工作:
[root@zimbra ~]# rpm -aq | grep sysstat
sysstat-7.0.2-3.el5
复制代码
查看已安装的bind RPM软件包:
[root@zimbra ~]# rpm -aq | grep bind
bind-utils-9.3.6-4.P1.el5_4.2
ypbind-1.19-12.el5
bind-libs-9.3.6-4.P1.el5_4.2
复制代码
挂载系统光盘:
[root@zimbra ~]# mount -t iso9660 /dev/cdrom /media/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only
mount: /dev/cdrom already mounted or /media/cdrom busy
mount: according to mtab, /dev/hdc is already mounted on /media/cdrom
复制代码
进入RPM软件包在光盘中的存放目录:
[root@zimbra ~]# cd /media/cdrom/CentOS/
复制代码
安装bind 系列RPM软件包,为客户端做DNS解析,支持Zimbra工作:
[root@zimbra CentOS]# ls | grep bind
bind-9.3.6-4.P1.el5_4.2.x86_64.rpm
bind-chroot-9.3.6-4.P1.el5_4.2.x86_64.rpm
bind-devel-9.3.6-4.P1.el5_4.2.i386.rpm
bind-devel-9.3.6-4.P1.el5_4.2.x86_64.rpm
bind-libbind-devel-9.3.6-4.P1.el5_4.2.i386.rpm
bind-libbind-devel-9.3.6-4.P1.el5_4.2.x86_64.rpm
bind-libs-9.3.6-4.P1.el5_4.2.i386.rpm
bind-libs-9.3.6-4.P1.el5_4.2.x86_64.rpm
bind-sdb-9.3.6-4.P1.el5_4.2.x86_64.rpm
bind-utils-9.3.6-4.P1.el5_4.2.x86_64.rpm
kdebindings-3.5.4-6.el5.x86_64.rpm
kdebindings-devel-3.5.4-6.el5.i386.rpm
kdebindings-devel-3.5.4-6.el5.x86_64.rpm
samba3x-winbind-3.3.8-0.51.el5.i386.rpm
samba3x-winbind-3.3.8-0.51.el5.x86_64.rpm
samba3x-winbind-devel-3.3.8-0.51.el5.i386.rpm
samba3x-winbind-devel-3.3.8-0.51.el5.x86_64.rpm
system-config-bind-4.0.3-4.el5.centos.noarch.rpm
ypbind-1.19-12.el5.x86_64.rpm
[root@zimbra CentOS]#
rpm -ivh bind-9.3.6-4.P1.el5_4.2.x86_64.rpm
warning: bind-9.3.6-4.P1.el5_4.2.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:bind ########################################### [100%]
[root@zimbra CentOS]#
rpm -ivh bind-chroot-9.3.6-4.P1.el5_4.2.x86_64.rpm
warning: bind-chroot-9.3.6-4.P1.el5_4.2.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:bind-chroot ########################################### [100%]
[root@zimbra CentOS]#
rpm -ivh bind-devel-9.3.6-4.P1.el5_4.2.x86_64.rpm
warning: bind-devel-9.3.6-4.P1.el5_4.2.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:bind-devel ########################################### [100%]
[root@zimbra CentOS]#
rpm -ivh bind-libbind-devel-9.3.6-4.P1.el5_4.2.x86_64.rpm
warning: bind-libbind-devel-9.3.6-4.P1.el5_4.2.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:bind-libbind-devel ########################################### [100%]
[root@zimbra CentOS]#
rpm -ivh bind-libs-9.3.6-4.P1.el5_4.2.x86_64.rpm
warning: bind-libs-9.3.6-4.P1.el5_4.2.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
package bind-libs-9.3.6-4.P1.el5_4.2.x86_64 is already installed
[root@zimbra CentOS]#
rpm -ivh bind-sdb-9.3.6-4.P1.el5_4.2.x86_64.rpm
warning: bind-sdb-9.3.6-4.P1.el5_4.2.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:bind-sdb ########################################### [100%]
[root@zimbra CentOS]#
rpm -ivh bind-utils-9.3.6-4.P1.el5_4.2.x86_64.rpm
warning: bind-utils-9.3.6-4.P1.el5_4.2.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
package bind-utils-9.3.6-4.P1.el5_4.2.x86_64 is already installed
[root@zimbra CentOS]#
rpm -ivh ypbind-1.19-12.el5.x86_64.rpm
warning: ypbind-1.19-12.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
package ypbind-1.19-12.el5.x86_64 is already installed
[root@zimbra CentOS]#
rpm -ivh system-config-bind-4.0.3-4.el5.centos.noarch.rpm
warning: system-config-bind-4.0.3-4.el5.centos.noarch.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:system-config-bind ########################################### [100%]
复制代码
安装caching-nameserver RPM软件包,以侧DNS配置目录及文件的安全:
[root@zimbra CentOS]#
ls | grep nameserver
caching-nameserver-9.3.6-4.P1.el5_4.2.x86_64.rpm
[root@zimbra CentOS]#
rpm -ivh caching-nameserver-9.3.6-4.P1.el5_4.2.x86_64.rpm
warning: caching-nameserver-9.3.6-4.P1.el5_4.2.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:caching-nameserver ########################################### [100%]
复制代码
安装compat-libstdc++ RPM软件包,支持Zimbra工作:
[root@zimbra CentOS]#
ls | grep compat-libstdc++
compat-libstdc++-296-2.96-138.i386.rpm
compat-libstdc++-33-3.2.3-61.i386.rpm
compat-libstdc++-33-3.2.3-61.x86_64.rpm
[root@zimbra CentOS]#
rpm -ivh compat-libstdc++-33-3.2.3-61.x86_64.rpm
warning: compat-libstdc++-33-3.2.3-61.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:compat-libstdc++-33 ########################################### [100%]
[root@zimbra CentOS]#
rpm -ivh compat-libstdc++-296-2.96-138.i386.rpm
warning: compat-libstdc++-296-2.96-138.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:compat-libstdc++-296 ########################################### [100%]
复制代码
[root@zimbra CentOS]# cd
复制代码
卸载光盘:
[root@zimbra ~]# umount /media/cdrom
复制代码
进入DNS解析文件配置目录:
[root@zimbra ~]#
cd /var/named/chroot/etc
复制代码
查看配置文件权限及属主属组等信息:
[root@zimbra etc]#
ls -al
total 48
drwxr-x--- 2 root named 4096 Mar 8 20:25 .
drwxr-x--- 5 root named 4096 Mar 8 20:07 ..
-rw-r--r-- 1 root root 405 Mar 8 18:59 localtime
-rw-r----- 1 root named 1442 Mar 8 20:25 named.caching-nameserver.conf
-rw-r----- 1 root named 955 Jan 21 2010 named.rfc1912.zones
-rw-r----- 1 root named 113 Mar 8 20:05 rndc.key
复制代码
编辑DNS解析配置文件:
[root@zimbra etc]#
vim named.caching-nameserver.conf
[root@zimbra ~]# less /var/named/chroot/etc/named.caching-nameserver.conf
//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named(8) DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//
options {
# listen-on port 53 { 127.0.0.1; };
# listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
// Those options should be used carefully because they disable port
// randomization
// query-source port 53;
// query-source-v6 port 53;
# allow-query { localhost; };
# allow-query-cache { localhost; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "surmount.net" IN {
type master;
file "surmount.net.zone";
allow-update {none;};
};
zone "0.16.172.in-addr.arpa" IN {
type master;
file "0.16.172.in-addr.arpa.zone";
allow-update {none;};
};
#view localhost_resolver {
# match-clients { localhost; };
# match-destinations { localhost; };
# recursion yes;
# include "/etc/named.rfc1912.zones";
#};
复制代码
查看配置文件权限及属主属组等信息:
[root@zimbra
~]#
cd /var/named/chroot/var/named
[root@zimbra named]# ls -al
total 88
drwxr-x--- 4 root named 4096 Mar 8 20:12 .
drwxr-x--- 6 root named 4096 Mar 8 20:07 ..
drwxrwx--- 2 named named 4096 Aug 26 2004 data
-rw-r----- 1 root named 198 Jan 21 2010 localdomain.zone
-rw-r----- 1 root named 195 Jan 21 2010 localhost.zone
-rw-r----- 1 root named 427 Jan 21 2010 named.broadcast
-rw-r----- 1 root named 1892 Jan 21 2010 named.ca
-rw-r----- 1 root named 424 Jan 21 2010 named.ip6.local
-rw-r----- 1 root named 426 Jan 21 2010 named.local
-rw-r----- 1 root named 427 Jan 21 2010 named.zero
drwxrwx--- 2 named named 4096 Jul 27 2004 slaves
复制代码
复制文件localhost.zone为surmount.net.zone,更改surmount.net.zone区域解析文件属性:
[root@zimbra named]#
cp localhost.zone surmount.net.zone
[root@zimbra named]# chown root.named surmount.net.zone
[root@zimbra named]# ls -al
total 96
drwxr-x--- 4 root named 4096 Mar 8 20:59 .
drwxr-x--- 6 root named 4096 Mar 8 20:07 ..
drwxrwx--- 2 named named 4096 Aug 26 2004 data
-rw-r----- 1 root named 198 Jan 21 2010 localdomain.zone
-rw-r----- 1 root named 457 Mar 8 20:55 localhost.zone
-rw-r----- 1 root named 427 Jan 21 2010 named.broadcast
-rw-r----- 1 root named 1892 Jan 21 2010 named.ca
-rw-r----- 1 root named 424 Jan 21 2010 named.ip6.local
-rw-r----- 1 root named 426 Jan 21 2010 named.local
-rw-r----- 1 root named 427 Jan 21 2010 named.zero
drwxrwx--- 2 named named 4096 Jul 27 2004 slaves
-rw-r----- 1 root named 440 Mar 8 20:59 surmount.net.zone
复制代码
编辑surmount.net.zone区域解析文件:
[root@zimbra named
]# vim surmount.net.zone
$TTL 86400
surmount.net. IN SOA zimbra.surmount.com. root.surmount.net. (
20110308 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
surmount.net. IN NS zimbra.surmount.net.
zimbra.surmount.net. IN A 172.16.0.25
surmount.net. IN MX 10 zimbra.surmount.net.
mail IN CNAME zimbra.surmount.net.
post IN CNAME zimbra.surmount.net.
jingpei IN CNAME zimbra.surmount.net.
复制代码
复制s
urmount.net.zone为0.16.172.in-addr.arpa.zone,将后者作为反向解析配置文件,更改0.16.172.in-addr.arpa.zone的文件属性:
[root@zimbra named]#
cp surmount.net.zone 0.16.172.in-addr.arpa.zone
root@zimbra named]#
chown root.named 0.16.172.in-addr.arpa.zone
[root@zimbra named]# ls -al
total 104
drwxr-x--- 4 root named 4096 Mar 8 21:37 .
drwxr-x--- 6 root named 4096 Mar 8 20:07 ..
-rw-r----- 1 root named 370 Mar 8 21:37 0.16.172.in-addr.arpa.zone
drwxrwx--- 2 named named 4096 Aug 26 2004 data
-rw-r----- 1 root named 198 Jan 21 2010 localdomain.zone
-rw-r----- 1 root named 457 Mar 8 20:55 localhost.zone
-rw-r----- 1 root named 427 Jan 21 2010 named.broadcast
-rw-r----- 1 root named 1892 Jan 21 2010 named.ca
-rw-r----- 1 root named 424 Jan 21 2010 named.ip6.local
-rw-r----- 1 root named 426 Jan 21 2010 named.local
-rw-r----- 1 root named 427 Jan 21 2010 named.zero
drwxrwx--- 2 named named 4096 Jul 27 2004 slaves
-rw-r----- 1 root named 440 Mar 8 20:59 surmount.net.zone
复制代码
编辑0.16.172.in-addr.arpa.zone反向解析文件:
[root@zimbra named]#
vim 0.16.172.in-addr.arpa.zone
$TTL 86400
@ IN SOA zimbra.surmount.com. root.surmount.net. (
20110308 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS zimbra.surmount.net.
@ IN MX 10 zimbra.surmount.net.
25 IN PTR zimbra.surmount.net.
25 IN PTR mail.surmount.net.
25 IN PTR post.surmount.net.
25 IN PTR jingpei.surmount.net.
复制代码
检查DNS主配置文件,检查正向及反向解析文件的正确性:
[root@zimbra ~]#
named-checkconf /var/named/chroot/etc/named.caching-nameserver.conf
[root@zimbra ~]# named-checkzone surmount.net /var/named/chroot/var/named/surmount.net.zone
zone surmount.net/IN: loaded serial 20110308
OK
[root@zimbra ~]#
named-checkzone surmount.net /var/named/chroot/var/named/0.16.172.in-addr.arpa.zone
zone surmount.net/IN: loaded serial 20110308
OK
复制代码
利用nslookup测试:也可以在客户端解析,但需要将客户端的DNS服务器配置为邮件服务器的IP:
[root@zimbra ~]# nslookup
> server
Default server: 172.16.0.25
Address: 172.16.0.25#53
> zimbra.surmount.net
Server: 172.16.0.25
Address: 172.16.0.25#53
Name: zimbra.surmount.net
Address: 172.16.0.25
> post.surmount.net
Server: 172.16.0.25
Address: 172.16.0.25#53
post.surmount.net canonical name = zimbra.surmount.net.
Name: zimbra.surmount.net
Address: 172.16.0.25
> set type=mx
> surmount.net
Server: 172.16.0.25
Address: 172.16.0.25#53
surmount.net mail exchanger = 10 zimbra.surmount.net.
> set type=ptr
> 172.16.0.25
Server: 172.16.0.25
Address: 172.16.0.25#53
25.0.16.172.in-addr.arpa name = post.surmount.net.
25.0.16.172.in-addr.arpa name = zimbra.surmount.net.
25.0.16.172.in-addr.arpa name = jingpei.surmount.net.
25.0.16.172.in-addr.arpa name = mail.surmount.net.
> set type=a
> jingpei.surmount.net
Server: 172.16.0.25
Address: 172.16.0.25#53
jingpei.surmount.net canonical name = zimbra.surmount.net.
Name: zimbra.surmount.net
Address: 172.16.0.25
> exit
复制代码
将named及network服务设置为开机启动,将sendmail服务停止:
[root@zimbra ~]# chkconfig named on
复制代码
查看系统停止及启动的服务:
[root@zimbra ~]# ls /etc/rc.d/rc3.d
K01dnsmasq K74nscd S08mcstrans S26acpid
K02avahi-dnsconfd K74ntpd S09isdn S26haldaemon
K02NetworkManager K85mdmpd S10network S26hidd
K02oddjobd K87multipathd S11auditd S28autofs
K05conman K88wpa_supplicant S12restorecond S50hplip
K05saslauthd K89dund S12syslog S55sshd
K05wdaemon K89netplugd S13cpuspeed S56cups
K10psacct K89pand S13irqbalance S56rawdevices
K10tcsd K89rdisc S13named S85gpm
K15httpd K91capi S13portmap S90crond
K20nfs K99readahead_later S14nfslock S90xfs
K24irda S00microcode_ctl S15mdmonitor S95anacron
K30sendmail S02lvm2-monitor S18rpcidmapd S95atd
K35vncserver S03sysstat S19rpcgssd S97yum-updatesd
K35winbind S04readahead_early S22messagebus S98avahi-daemon
K50netconsole S05kudzu S25bluetooth S99firstboot
K69rpcsvcgssd S08ip6tables S25netfs S99local
K73ypbind S08iptables S25pcscd S99smartd
关闭sendmai服务及停止sendmail服务
[root@zimbra ~]# Chkconfig sendmail off
[root@zimbra ~]# Service sendmail stop
复制代码
进入ZCS软件包的目录,解压ZCS tgz包:
[root@zimbra ~]# cd Desktop/
[root@zimbra Desktop]# ls
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845.tgz
[root@zimbra Desktop]#
tar zxvf zcs-6.0.10_GA_2692.RHEL5_64.20101215170845.tgz
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/packages/
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/packages/zimbra-apache-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/packages/zimbra-core-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/packages/zimbra-ldap-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/packages/zimbra-logger-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/packages/zimbra-memcached-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/packages/zimbra-mta-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/packages/zimbra-proxy-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/packages/zimbra-snmp-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/packages/zimbra-spell-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/packages/zimbra-store-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/bin/
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/bin/get_plat_tag.sh
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/bin/zmdbintegrityreport
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/data/
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/data/versions-init.sql
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/docs/
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/docs/YPL.txt
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/docs/zcl.txt
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/docs/zimbra_public_eula_2.1.txt
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/docs/en_US/
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/docs/en_US/admin.pdf
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/docs/en_US/Import_Wizard_Outlook.pdf
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/docs/en_US/MigrationWizard_Domino.pdf
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/docs/en_US/MigrationWizard.pdf
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/docs/en_US/OSmultiserverinstall.pdf
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/docs/en_US/quick_start.pdf
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/docs/en_US/RNZCSO_2005Beta.pdf
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/docs/en_US/User Instructions for ZCS Import Wizard.pdf
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/docs/en_US/ZCS_Toaster.pdf
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/docs/en_US/Zimbra iCalendar Migration Guide.pdf
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/docs/en_US/Zimbra_Release_Note.pdf
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/docs/en_US/Zimbra Schema.pdf
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/docs/en_US/ZWC User Guide_6_0.pdf
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/util/
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/util/modules/
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/util/modules/getconfig.sh
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/util/modules/packages.sh
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/util/modules/postinstall.sh
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/util/addUser.sh
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/util/globals.sh
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/util/utilfunc.sh
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/readme_source_en_US.txt
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/readme_binary_en_US.txt
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/install.sh
zcs-6.0.10_GA_2692.RHEL5_64.20101215170845/README.txt
复制代码
进入ZCS软件包目录,找到安装启动文件并查看帮助:
[root@zimbra Desktop]# cd zcs-6.0.10_GA_2692.RHEL5_64.20101215170845
[root@zimbra zcs-6.0.10_GA_2692.RHEL5_64.20101215170845]# ./install.sh --help
./install.sh [-r <file> -l <file> -u -s -c type -x -h] [defaultsfile]
-c|--cluster type Cluster install type active|standby.
-h|--help Usage
-l|--license <file> License file to install.
-r|--restore <file> Restore contents of <file> to localconfig
-s|--softwareonly Software only installation.
-u|--uninstall Uninstall ZCS
-x|--skipspacecheck Skip filesystem capacity checks.
--beta-support Allows installer to upgrade Network Edition Betas.
--platform-override Allows installer to continue on an unknown OS.
[defaultsfile] File containing default install values.
复制代码
在CentOS-5.5-64bit上安装ZCS For RHEL5的软件包,需要加特殊参数--platform-override:
[root@zimbra zcs-6.0.10_GA_2692.RHEL5_64.20101215170845]#
./install.sh --platform-override
Operations logged to /tmp/install.log.3602
Checking for existing installation...
zimbra-ldap...NOT FOUND
zimbra-logger...NOT FOUND
zimbra-mta...NOT FOUND
zimbra-snmp...NOT FOUND
zimbra-store...NOT FOUND
zimbra-apache...NOT FOUND
zimbra-spell...NOT FOUND
zimbra-convertd...NOT FOUND
zimbra-memcached...NOT FOUND
zimbra-proxy...NOT FOUND
zimbra-archiving...NOT FOUND
zimbra-cluster...NOT FOUND
zimbra-core...NOT FOUND
PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.
License Terms for the Zimbra Collaboration Suite:
http://www.zimbra.com/license/zimbra_public_eula_2.1.html
Do you agree with the terms of the software license agreement? [N] y
Checking for prerequisites...
FOUND: NPTL
FOUND: sudo-1.7.2p1-5
FOUND: libidn-0.6.5-1.1
libidn-0.6.5-1.1
FOUND: gmp-4.1.4-10
FOUND: /usr/lib64/libstdc++.so.6
Checking for suggested prerequisites...
FOUND: perl-5.8.8
FOUND: sysstat
Prerequisite check complete.
Checking for installable packages
Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell
Found zimbra-memcached
Found zimbra-proxy
Select the packages to install
复制代码
选择默认安装:
Install zimbra-ldap [Y]
Install zimbra-logger [Y]
Install zimbra-mta [Y]
Install zimbra-snmp [Y]
Install zimbra-store [Y]
Install zimbra-apache [Y]
Install zimbra-spell [Y]
Install zimbra-memcached [N]
Install zimbra-proxy [N]
Checking required space for zimbra-core
checking space for zimbra-store
Installing:
zimbra-core
zimbra-ldap
zimbra-logger
zimbra-mta
zimbra-snmp
zimbra-store
zimbra-apache
zimbra-spell
You appear to be installing packages on a platform different
than the platform for which they were built.
This platform is CentOS5_64
Packages found: RHEL5_64
This may or may not work.
Using packages for a platform in which they were not designed for
may result in an installation that is NOT usable. Your support
options may be limited if you choose to continue.
Install anyway? [N]
y
The system will be modified. Continue? [N]
yes
Removing /opt/zimbra
Removing zimbra crontab entry...done.
done.
Cleaning up zimbra init scripts...done.
Cleaning up /etc/ld.so.conf...done.
Cleaning up /etc/prelink.conf...done.
Cleaning up /etc/security/limits.conf...done.
Finished removing Zimbra Collaboration Suite.
Installing packages
zimbra-core......zimbra-core-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...done
zimbra-ldap......zimbra-ldap-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...done
zimbra-logger......zimbra-logger-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...done
zimbra-mta......zimbra-mta-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...done
zimbra-snmp......zimbra-snmp-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...done
zimbra-store......zimbra-store-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...done
zimbra-apache......zimbra-apache-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...done
zimbra-spell......zimbra-spell-6.0.10_GA_2692.RHEL5_64-20101215170845.x86_64.rpm...done
Operations logged to /tmp/zmsetup.03082011-230427.log
Installing LDAP configuration database...done.
Setting defaults...
DNS ERROR resolving MX for zimbra.surmount.net
It is suggested that the domain name have an MX record configured in DNS
Change domain name?[Yes]
yes
更改域名,主
机名zimbra.surmount.net,域名设置为surmount.net:
Create domain:
[zimbra.surmount.net] surmount.net
MX: zimbra.surmount.net (172.16.0.25)
Interface: 172.16.0.25
Interface: 127.0.0.1
done.
Checking for port conflicts
复制代码
Main menu
1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-store: Enabled
+Create Admin User: yes
+Admin user to create: admin@surmount.net
******* +Admin Password UNSET
+Enable automated spam training: yes
+Spam training user: spam.eovfzo7db@surmount.net
+Non-spam(Ham) training user: ham.w5affdc60@surmount.net
+Global Documents Account: wiki@surmount.net
+SMTP host: zimbra.surmount.net
+Web server HTTP port: 80
+Web server HTTPS port: 443
+Web server mode: http
+IMAP server port: 143
+IMAP server SSL port: 993
+POP server port: 110
+POP server SSL port: 995
+Use spell check server: yes
+Spell server URL: http://zimbra.surmount.net:7780/aspell.php
+Configure for use with mail proxy: FALSE
+Configure for use with web proxy: FALSE
+Enable version update checks: TRUE
+Enable version update notifications: TRUE
+Version update notification email: admin@surmount.net
+Version update source email: admin@surmount.net
4) zimbra-mta: Enabled
5) zimbra-snmp: Enabled
6) zimbra-logger: Enabled
7) zimbra-spell: Enabled
8) Default Class of Service Configuration:
r) Start servers after configuration yes
s) Save config to file
x) Expand menu
q) Quit
复制代码
设置网页管理端admin的登录密码:
Address unconfigured (**) items (? - help)
3
Store configuration
1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@surmount.net
** 4) Admin Password UNSET
5) Enable automated spam training: yes
6) Spam training user: spam.eovfzo7db@surmount.net
7) Non-spam(Ham) training user: ham.w5affdc60@surmount.net
8) Global Documents Account: wiki@surmount.net
9) SMTP host: zimbra.surmount.net
10) Web server HTTP port: 80
11) Web server HTTPS port: 443
12) Web server mode: http
13) IMAP server port: 143
14) IMAP server SSL port: 993
15) POP server port: 110
16) POP server SSL port: 995
17) Use spell check server: yes
18) Spell server URL: http://zimbra.surmount.net:7780/aspell.php
19) Configure for use with mail proxy: FALSE
20) Configure for use with web proxy: FALSE
21) Enable version update checks: TRUE
22) Enable version update notifications: TRUE
23) Version update notification email: admin@surmount.net
24) Version update source email: admin@surmount.net
Select, or 'r' for previous menu [r]
4
Password for admin@surmount.net (min 6 characters): [OUYQ0Ht8]
jingpei
Store configuration
1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@surmount.net
4) Admin Password set
5) Enable automated spam training: yes
6) Spam training user: spam.eovfzo7db@surmount.net
7) Non-spam(Ham) training user: ham.w5affdc60@surmount.net
8) Global Documents Account: wiki@surmount.net
9) SMTP host: zimbra.surmount.net
10) Web server HTTP port: 80
11) Web server HTTPS port: 443
12) Web server mode: http
13) IMAP server port: 143
14) IMAP server SSL port: 993
15) POP server port: 110
16) POP server SSL port: 995
17) Use spell check server: yes
18) Spell server URL: http://zimbra.surmount.net:7780/aspell.php
19) Configure for use with mail proxy: FALSE
20) Configure for use with web proxy: FALSE
21) Enable version update checks: TRUE
22) Enable version update notifications: TRUE
23) Version update notification email: admin@surmount.net
24) Version update source email: admin@surmount.net
复制代码
返回上层页面:
Select, or 'r' for previous menu [r]
r
Main menu
1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-store: Enabled
4) zimbra-mta: Enabled
5) zimbra-snmp: Enabled
6) zimbra-logger: Enabled
7) zimbra-spell: Enabled
8) Default Class of Service Configuration:
r) Start servers after configuration yes
s) Save config to file
x) Expand menu
q) Quit
*** CONFIGURATION COMPLETE - press 'a' to apply
复制代码
输入“a”以应用配置:
Select from menu, or press 'a' to apply config (? - help)
a
Save configuration data to a file? [Yes]
yes
Save config in file: [/opt/zimbra/config.11174] (enter)
Saving config in /opt/zimbra/config.11174...done.
The system will be modified - continue? [No]
yes
Operations logged to /tmp/zmsetup.03082011-230427.log
Setting local config values...done.
Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Creating SSL certificate...done.
Installing mailboxd SSL certificates...done.
Initializing ldap...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Creating server entry for zimbra.surmount.net...done.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on zimbra.surmount.net...done.
Adding zimbra.surmount.net to zimbraMailHostPool in default COS...done.
Installing webclient skins...
beach...done.
zmail...done.
lake...done.
yahoo...done.
hotrod...done.
bones...done.
pebble...done.
bare...done.
lemongrass...done.
sand...done.
waves...done.
oasis...done.
tree...done.
sky...done.
steel...done.
lavender...done.
twilight...done.
smoke...done.
Finished installing webclient skins.
Setting zimbraFeatureIMEnabled=FALSE...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting zimbraFeatureNotebookEnabled=TRUE...done.
Setting MTA auth host...done.
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on zimbra.surmount.net...done.
Creating domain surmount.net...done.
Setting default domain name...done.
Creating domain surmount.net...already exists.
Creating admin account admin@surmount.net...done.
Creating root alias...done.
Creating postmaster alias...done.
Creating user wiki@surmount.net...done.
Creating user spam.eovfzo7db@surmount.net...done.
Creating user ham.w5affdc60@surmount.net...done.
Setting spam training accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for zimbra.surmount.net...done.
Configuring SNMP...done.
Checking for default IM conference room...not present.
Initializing default IM conference room...done.
Setting up syslog.conf...done.
You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Suite.
The only information that will be transmitted is:
The VERSION of zcs installed (6.0.10_GA_2692_CentOS5_64)
The ADMIN EMAIL ADDRESS created (admin@surmount.net)
Notify Zimbra of your installation? [Yes]
no
Notification skipped
Starting servers...done.
Installing common zimlets...
com_zimbra_date...done.
com_zimbra_url...done.
com_zimbra_dnd...done.
com_zimbra_phone...done.
com_zimbra_adminversioncheck...done.
com_zimbra_bulkprovision...done.
com_zimbra_cert_manager...done.
com_zimbra_ymemoticons...done.
com_zimbra_email...done.
Finished installing common zimlets.
Initializing Documents...done.
Restarting mailboxd...done.
Setting up zimbra crontab...done.
Moving /tmp/zmsetup.03082011-230427.log to /opt/zimbra/log
Configuration complete - press return to exit
复制代码
安装完成,按任意键退出:
[root@zimbra zcs-6.0.10_GA_2692.RHEL5_64.20101215170845]# cd
复制代码
切换成zimbra用户,查看ZCS套件工作的状态:
[root@zimbra ~]#
su zimbra
[zimbra@zimbra root]$
zmcontrol status
Host zimbra.surmount.net
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Running
mta Running
snmp Running
spell Running
stats Running
复制代码
浏览器访问页面地址:管理员登陆页面:
https://zimbra.surmount.net:7071(需要DNS配置成功做解析支持)或
https://172.16.0.25:7071,帐户:
admin@surmount.net(因为测试环境为单域,所以可简为admin),密码:jingpei(安装时的设置)。
普通用户登陆页面: http://zimbra.surmount.net(需要DNS配置成功做解析支持)或 http://172.16.0.25,帐户: test@surmount.net(用管理员登陆后建立),密码:test(用管理员登陆后指定普通帐户的初始密码,普通用户通过Web端成功登陆后,可点击“首选项”,然后变更密码。) 如果网页管理端无法访问邮件服务器,可以考虑配置iptables或是停止iptables服务:
[zimbra@zimbra root]$ exit
exit
复制代码
[root@zimbra ~]#
iptables -xvnL
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
21764 9288824 RH-Firewall-1-INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 RH-Firewall-1-INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 20500 packets, 9224253 bytes)
pkts bytes target prot opt in out source destination
Chain RH-Firewall-1-INPUT (2 references)
pkts bytes target prot opt in out source destination
18126 8984939 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmp type 255
0 0 ACCEPT esp -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT ah -- * * 0.0.0.0/0 0.0.0.0/0
13 1994 ACCEPT udp -- * * 0.0.0.0/0 224.0.0.251 udp dpt:5353
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:631
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:631
2224 147378 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
3 188 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
1398 154325 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
复制代码
[root@zimbra ~]#
service iptables stop
复制代码
[root@zimbra ~]#
cat /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
复制代码
|
转载于:https://blog.51cto.com/231373/682776