环境:Debian 8 64位,mysql 5.7,iRedMail 0.9.7
过程:
1. wget https://dev.mysql.com/get/mysql-apt-config_0.8.8-1_all.deb 下载mysql的apt安装源文件
2. dpkg -i mysql-apt-config_0.8.8-1_all.deb 安装mysql的apt安装源文件
3. vi /etc/apt/sources.list.d/mysql.list 可以查看或调整这个apt安装源文件里的内容
4. apt-get update 更新安装源
5. apt-get install mysql-server 安装 mysql 5.7
6. 安装好mysql 5.7后,加以下参数来启动安装 iRedMail (假如mysql的root用户密码是 aqtest38)
- USE_EXISTING_MYSQL='YES' \
- MYSQL_SERVER_ADDRESS='127.0.0.1' \
- MYSQL_SERVER_PORT='3306' \
- MYSQL_ROOT_USER='root' \
- MYSQL_ROOT_PASSWD='aqtest38' \
- MYSQL_GRANT_HOST='localhost' \
- IREDMAIL_MIRROR='http://173.254.22.21' \
- bash iRedMail.sh
![](http://bbs.aliyun.com/attachment/Fid_239/239_1477160476054779_627b947d39627d2.png?16)
![](http://bbs.aliyun.com/attachment/Fid_239/239_1477160476054779_23faa7c59bd71dd.png?23)
![](http://bbs.aliyun.com/attachment/Fid_239/239_1477160476054779_d1c91d86201d0f1.png?11)
7. 安装后,在浏览器里测试,可以登录到webmail
![](http://bbs.aliyun.com/attachment/Fid_239/239_1477160476054779_081dbd4a0e4253c.png?43)
参考:
https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/
http://www.iredmail.org/docs/install.iredmail.with.remote.mysql.server.html