先添加国内yum源
然后导入KEY
# rpm --import
[url]http://mirror.be10.com/centos/4/os/i386/RPM-GPG-KEY-centos4[/url]
# rpm --import /usr/share/doc/centos-release-4/RPM-GPG-KEY >> /dev/null
# rpm --import /usr/share/doc/centos-release-4/RPM-GPG-KEY >> /dev/null
然后升级系统
yum -y update
速度很快
接下来检查系统包为了确保安装没问题
安装以下包
# yum -y -t install gmp-devel ntp fetchmail perl-libwww-perl perl-HTML-Parser bind bind-devel lynx expect-devel php-devel bzip2-devel elinks fontconfig-devel glib-devel gnome-desktop gtk+-devel imlib libungif mod_auth_mysql mod_perl mod_python MyODBC php-odbc startup-notification telnet-server crontabs expect freetype freetype-devel gd gd-devel gdbm gdbm-devel httpd httpd-devel libjpeg libjpeg-devel libpng libpng-devel mod_ssl mrtg mysql mysql-devel mysql-server openssl openssl-devel perl pam-devel php php-mysql php-imap zlib-devel wget perl-suidperl perl-Time-HiRes perl-Digest-SHA1 php-ldap rpm-build gcc gcc-c++ automake autoconf
reboot
启动httpd和mysqld服务
# /etc/rc.d/init.d/httpd start
# /etc/rc.d/init.d/mysqld start
设置MySQL数据库密码
# /etc/rc.d/init.d/mysqld start
设置MySQL数据库密码
# mysqladmin -u root password 123456
1.下载需要的软件包
Part 1 - Download the Software
mkdir /downloads
cd /downloads
tar zxvf qmailrocks.tar.gz
2安装Qmail
Part 2 - Installing Qmail Itself
执行安装脚本(创建qmail用户等)
/downloads/qmailrocks/scripts/install/qmr_install_linux-s1.script
给qmail打补丁
/downloads/qmailrocks/scripts/util/qmail_big_patches.script
安装qmail
cd /usr/src/qmail/qmail-1.03
make man && make setup check
./config-fast your_fqdn_hostname
(ex: ./config-fast mail.mydomain.com)
建立证书
make cert
chown -R vpopmail:qmail /var/qmail/control/clientcert.pem /var/qmail/control/servercert.pem
安装ucspi-tcp
cd /usr/src/qmail/ucspi-tcp-0.88/
patch < /downloads/qmailrocks/patches/ucspi-tcp-0.88.errno.patch
make && make setup check
安装daemontools
cd /package/admin/daemontools-0.76/src
patch < /downloads/qmailrocks/patches/daemontools-0.76.errno.patch
cd /package/admin/daemontools-0.76
package/install
转载于:https://blog.51cto.com/coolerfeng/76513