使用现有的MySQL在服务器上安装iRedMail

是否有可能在现有的MySQL数据库服务器上安装iRedMail?

当我安装iRedMail时会发生什么,它会删除我的所有数据库,或者跳过MySQL安装并使用现有的服务器实例?

通常它会保持你的数据库。 从iRedmail网站 :

How to Use Exist MySQL Server If you already have MySQL server running in your local net, you can use it to store virtual domains and users. *********************************************************** **** WARNING: BACKUP ALL DATA BEFORE WE GO FURTHER. **** *********************************************************** Configure iRedMail as above, but when it ask 'Contine? [Y|n]', choose no to continue: Configuration completed. ************************************************************************* **************************** WARNNING *********************************** ************************************************************************* * * * Please do remember to *REMOVE* configuration file after installation * * completed successfully. * * * * * /root/iRedMail-xyz/config # <- config file location * * ************************************************************************* <<< iRedMail >>> Continue? [Y|n] # <-- Type 'n' or 'N' here to exit installation <<< iRedMail >>> Canceled, Exit. Edit 'iRedMail-xyz/conf/mysql', find these variables: export MYSQL_FRESH_INSTALLATION='YES' export MYSQL_SERVER='127.0.0.1' export MYSQL_PORT='3306' export MYSQL_SOCKET='/var/lib/mysql/mysql.sock' export MYSQL_ROOT_USER='root' export MYSQL_ROOT_PASSWD='passwd' Use your exist MySQL server info here: export MYSQL_FRESH_INSTALLATION='NO' # <- Set to 'NO' so that iRedMail won't install mysql-server. export MYSQL_SERVER='192.168.122.249' # <- MySQL server address. export MYSQL_PORT='3306' # <- MySQL server port. export MYSQL_SOCKET='/var/lib/mysql/mysql.sock' export MYSQL_ROOT_USER='root' # <- MySQL root user, iRedMail will use it to import some databases. export MYSQL_ROOT_PASSWD='secret' # <- MySQL root user's password. If your Apache and PHP are not installed in standard directory, you should edit 'conf/httpd' to change them: # # HTTPD_SERVERROOT: Apache server root, default is # - /var/www (RHEL/CentOS) # - /usr/share/apache2 (Debian) # HTTPD_DOCUMENTROOT: Document root, default is # - /var/www/html (RHEL/CentOS) # - /var/www/default-site (Debian) # export HTTPD_SERVERROOT='/var/www' export HTTPD_DOCUMENTROOT="${HTTPD_SERVERROOT}/html/" export HTTPD_CONF="/etc/httpd/conf/httpd.conf" export HTTPD_CONF_DIR="/etc/httpd/conf.d" export PHP_MODULES_DIR="${HTTPD_SERVERROOT}/lib/php/modules/" export HTTPD_SSL_CONF="${HTTPD_CONF_DIR}/ssl.conf" # ---- PHP ---- export PHP_INI='/etc/php.ini' If you already have all Apache+PHP+MySQL related binary packages installed, you must tell iRedMail not to install them in conf/global: export USE_EXIST_AMP='YES' If you just want iRedMail not to install MySQL related binary packages, you must edit 'functions/packages.sh', remove mysql related packages. Such as php-mysql, mysql-server, mysql, mysql-client, etc. OK, re-execute the main script: # bash iRedMail.sh <<< iRedMail >>> Check configuration file: /root/iRedMail-xyz/config... Found. <<< Question >>> Use it for mail server setting? [y|N]y # <- Type 'y' or 'Y' here <<< iRedMail >>> Use configuration file: /root/iRedMail-xyz/config for mail server setting. ... How to use mbox format Although maildir is recommended (more popular, better performance) and default mailbox format, but iRedMail also support mbox format. Modify 'iRedMail-xyz/conf/global', change 'HOME_MAILBOX' to 'mbox' before you start iRedMail installation: # Maildir format: mbox, Maildir. HOME_MAILBOX='mbox' Start iRedMail installation now.