一、准备工作
1、必须必须必须安装JDK(最好是1.6以上版本,别忘了配置好环境变量JAVA_HOME),因为James是纯Java写的,没有安装JDK那么James铁定跑不起来
2、James 启动时,SMTP服务默认占用25端口,POP3服务默认占用110 端口,NNTP 服务默认占用119端口, 请确保这些端口未被占用,可使用 "netstat -tunlp" 查看端口使用情况
2、安装Mysql5.5(CentOS自带的5.1版先卸载),因为James提供多种邮件存储方式,其中一种是数据库(也是本文所用的存储方式)
3、下载 apache-james-2.3.2.tar.gz 或 apache-james-2.3.2.zip 安装包,可先下好再传到远程CentOS服务器上(本文使用的是腾讯云服务器)
二、安装James2.3.2
1、正式安装之前,请先切换到 root 用户(官网是这么建议的,不切换的话后面会有很多权限问题):
2、进入apache-james-2.3.2.tar.gz 或 apache-james-2.3.2.zip所在目录,解压安装包(.tar.gz使用 tar -zxvfapache-james-2.3.2.tar.gz,.zip使用 unzip apache-james-2.3.2.zip):
3、解压后得到james-2.3.2目录,进入该目录下的bin目录中,给run.sh和phoenix.sh添加可执行权限:
<