正确方法要先配置你得服务器。
1.sudo passwd root
su
root登陆
2.apt-get install ssh openssh-server
装个ssh 不过建议在装之前先换个快一点的源 别忘了apt-get update哦。
这个时候可以用Putty连进服务器了,这样命令都可以复制
3.vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.9.34
netmask 255.255.255.0
network 192.168.9.0
broadcast 192.168.9.255
gateway 192.168.9.1
这个东西改成我这样,很好改 ifconfig看一下就可以了,就是给服务器一个固定模式的IP
然后 /etc/init.d/networking restart
5.vi /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.9.34 mail.ej5800.com mail
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
加一行就是192那行,DNS随便设置就可以
6.echo mail.ej5800.com > /etc/hostname
5跟6的DNS要一样啊,这是安装前准备的关键。
7.reboot
8.hostname
hostname -f
看一下 这两个回显是不是都是你设置的DNS,是你就OK了。
9.rm -f /bin/sh
ln -s /bin/bash /bin/sh
务必执行,否则安装会出错 官方有提到。
10.apt-get install curl fetchmail libpcre3 libgmp3c2 libexpat1 libxml2 libtie-ixhash-perl
我刚才说了 弄个快一点的源,要不在这里会很郁闷。
11.这个时候把Zimbra那个超级大的压缩包传你服务器上,然后解压
12.如果apt-get完了,进入你解压好的文件夹,执行 ./install.sh
应该还会报两个missing 具体是什么我忘了 这时候终止掉安装 同样用apt-get 一下那两个missing的东西 再执行./install.sh就可以安装了。
13.如果没有意外 检测程序所有都通过了 这时候记得一路YES下去。。。当看到有个叫zimbra-store的东西她前面标号应该是2的时候 你按下2 回车 里面有个密码设置 设置下密码 就OK了 设置完后 r回车 返回主菜单 a回车完成配置这时候去喝水撒尿抽烟吧
过个10来分钟
看到如下提示Notify Zimbra of your installation? [Yes]
YES一下 或者NO都可以
Configuration complete - press return to exit
然后能看到这个了 OK 安装成功。
访问webclient
http://ip 即可
访问webserver管理
https://ip:7071 注意是https
在ssh关闭开启服务
su - zimbra
zmconrtrol status 看运行状态
zmconrtrol stop 停止服务