安装Zimbra

  • A+
所属分类:web应用

环境:

[root@mail tmp]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.6 (Tikanga)
设置主机名
[root@mail tmp]# cat /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
118.194.161.116 mail.mailtest.tk mail
下载OPERNSOURECE

http://www.zimbra.com/downloads/os-downloads.html 接近600M

解压缩到/opt/zimbra

执行
# ./install.sh

在安装过程中

可能出现过问题归类

1、perl安装错误,报一下的错误:

Restoring existing configuration file from /opt/zimbra/.saveconfig/localconfig.xml...done
Errno architecture (i386-linux-thread-multi-2.6.9-67.0.7.elsmp)
does not match executable architecture (x86_64-linux-thread-multi-2.6.18-53.el5)
at /usr/lib/perl5/vendor_perl/5.8.8/Errno.pm line 11.
Compilation failed in require at /opt/zimbra/zimbramon/lib/x86_64-linux-thread-multi/IO/Socket.pm line 17.
BEGIN failed--compilation aborted at /opt/zimbra/zimbramon/lib/x86_64-linux-thread-multi/IO/Socket.pm line 17.
Compilation failed in require at /opt/zimbra/zimbramon/lib/Net/LDAP.pm line 8.
BEGIN failed--compilation aborted at /opt/zimbra/zimbramon/lib/Net/LDAP.pm line 8.
Compilation failed in require at /opt/zimbra/libexec/zmsetup.pl line 23.
BEGIN failed--compilation aborted at /opt/zimbra/libexec/zmsetup.pl line 23.
解决办法:卸载所有perl包,只安装perl_x86.64

2、mysql启动失败,报以下两个错误,可能还有更多,但是安装过程中遇到的是这两种

(1)、
Do you want to verify message store database integrity? [Y] y
Verifying integrity of message store databases. This may take a while.
Starting mysqld...failed.
/opt/zimbra/mysql/bin/mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/opt/zimbra/db/mysql.sock' (2) when trying to connect
No errors found
command failed

(2)、
Verifying integrity of message store databases. This may take a while.
Error: assertion '-r /opt/zimbra/conf/my.cnf' failed
Could not open required defaults file: /opt/zimbra/conf/my.cnf
Fatal error in defaults handling. Program aborted
No errors found
command failed
解决办法:

1、卸载#./install.sh -u
2、删除所有的相关东西,包括/etc/passwd中的zimbra和mysql用户
3、重新安装#./install.sh
配置DNS

 

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@mailtest.tk
******* +Admin Password UNSET
+Anti-virus quarantine user: virus-quarantine.kcr3e4npu@mailtest.tk
+Enable automated spam training: yes
+Spam training user: spam.oozreobghv@mailtest.tk
+Non-spam(Ham) training user: ham.zmuvl8if5c@mailtest.tk
+SMTP host: mail.mailtest.tk
+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://mail.mailtest.tk: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@mailtest.tk
+Version update source email: admin@mailtest.tk

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

Address unconfigured (**) items (? - help) 3
Store configuration

1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@mailtest.tk
** 4) Admin Password UNSET
5) Anti-virus quarantine user: virus-quarantine.kcr3e4npu@mailtest.tk
6) Enable automated spam training: yes
7) Spam training user: spam.oozreobghv@mailtest.tk
8) Non-spam(Ham) training user: ham.zmuvl8if5c@mailtest.tk
9) SMTP host: mail.mailtest.tk
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://mail.mailtest.tk: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@mailtest.tk
24) Version update source email: admin@mailtest.tk

Select, or 'r' for previous menu [r] 4

Password for admin@mailtest.tk (min 6 characters): [oL5KGrC1m] portalportal

Store configuration

1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@mailtest.tk
4) Admin Password set
5) Anti-virus quarantine user: virus-quarantine.kcr3e4npu@mailtest.tk
6) Enable automated spam training: yes
7) Spam training user: spam.oozreobghv@mailtest.tk
8) Non-spam(Ham) training user: ham.zmuvl8if5c@mailtest.tk
9) SMTP host: mail.mailtest.tk
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://mail.mailtest.tk: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@mailtest.tk
24) Version update source email: admin@mailtest.tk

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
Select from menu, or press 'a' to apply config (? - help) q
Quit without applying changes? [No] no

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
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.15326]
Saving config in /opt/zimbra/config.15326...done.
The system will be modified - continue? [No] yes
Operations logged to /tmp/zmsetup.07092012-142215.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 mail.mailtest.tk...done.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on mail.mailtest.tk...done.
Adding mail.mailtest.tk to zimbraMailHostPool in default COS...done.
Installing webclient skins...
bare...done.
lavender...done.
beach...done.
waves...done.
tree...done.
smoke...done.
twilight...done.
sand...done.
steel...done.
hotrod...done.
carbon...done.
sky...done.
pebble...done.
bones...done.
lake...done.
lemongrass...done.
oasis...done.
Finished installing webclient skins.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting MTA auth host...done.
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on mail.mailtest.tk...done.
Creating domain mailtest.tk...done.
Setting default domain name...done.
Creating domain mailtest.tk...already exists.
Creating admin account admin@mailtest.tk...done.
Creating root alias...done.
Creating postmaster alias...done.
Creating user spam.oozreobghv@mailtest.tk...done.
Creating user ham.zmuvl8if5c@mailtest.tk...done.
Creating user virus-quarantine.kcr3e4npu@mailtest.tk...done.
Setting spam training and Anti-virus quarantine accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for mail.mailtest.tk...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 (7.2.0_GA_2669_RHEL5_64)
The ADMIN EMAIL ADDRESS created (admin@mailtest.tk)

Notify Zimbra of your installation? [Yes] yes
Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=7.2.0_GA_2669_RHEL5_64&MAIL=admin@mailtest.tk

Notification complete

Starting servers...done.
Installing common zimlets...
com_zimbra_phone...done.
com_zimbra_attachmail...done.
com_zimbra_cert_manager...done.
com_zimbra_url...done.
com_zimbra_social...done.
com_zimbra_email...done.
com_zimbra_bulkprovision...done.
com_zimbra_adminversioncheck...done.
com_zimbra_webex...done.
com_zimbra_attachcontacts...done.
com_zimbra_date...done.
com_zimbra_srchhighlighter...done.
com_zimbra_linkedin...done.
com_zimbra_dnd...done.
Finished installing common zimlets.
Restarting mailboxd...done.
Setting up zimbra crontab...done.
Moving /tmp/zmsetup.07092012-142215.log to /opt/zimbra/log
Configuration complete - press return to exit
在浏览器中输入:

http://mail.mailtest.tk

 

weinxin
微信公众号
扫一扫关注运维生存时间公众号,获取最新技术文章~

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: