花了一天的时间,裁减了 CentOS 5.2(x86_64),并且将 iRedMail-0.3-beta2
整合进去了,美其名曰:iRedOS。
iRedOS-0.1-beta1.x86_64.iso 文件大小为 407M,目前只提供了 x86_64 版本,
32 位的版本将在这几天内提供。
得益于 iRedMail 的"模块化设计"和灵活性,整合相当顺利。
希望大家帮忙测试,有任何问题、建议,都可以在论坛里提:
- http://www.iredmail.org/bbs/
如果发现安装好的邮件系统有问题,请将系统上的 /root/iredmail.log 文件
发送给我,以帮助我分析和解决问题。
关于 iRedOS-0.1-beta1.x86_64.iso 的说明,请参考 README 文件的说明:
- http://www.iredmail.org/yum/iRedOS/iRedOS.README
以下是该文件的引用:
* iRedOS 所做的工作只是剔除不需要的软件包,加入 iRedMail 所需要的 RPM
包,仅此而已。未曾对任何 CentOS 自带的 RPM 包做修改。
iRedOS-0.1 基于以下套件制作而成:
- CentOS: 5.2
- iRedMail: 0.3-beta2
* 涉及的所有用户的密码都是:passwd
* 同时启用了两种 WebMail:
- SquirrelMail:
+ http://IP/mail/
+ http://IP/webmail/
- Roundcubemail: http://IP/roundcube/
* 默认添加的虚拟域:
- example.com
* 默认添加了两个虚拟用户:
- postm...@example.com,默认是整个邮件系统的管理员,不只是单个域
- w...@example.com,普通用户
* 添加、删除、管理虚拟域与虚拟用户可以通过 PostfixAdmin 进行管理:
- URL: http://ip/postfixadmin/
- 管理员账号:postm...@example.com
* MySQL 数据库管理员账号:root
* 虚拟域的 MySQL 数据库管理员账号:vmailadmin
* MySQL 数据库可以通过 phpMyAdmin 进行管理:
- URL: http://ip/phpmyadmin/
- 管理员账号:
+ root
+ vmailadmin
如果您是在虚拟机里做测试,可以有更简单的方法:
* 在启动安装进程的 'boot:' 提示符下输入:
boot: linux ks=cdrom:/iredmail.cfg.testonly
可以很快完成安装。注意:iredmail.cfg.testonly 这个 kickstart 文件里定义
了分配给虚拟机 8G 的磁盘空间,其中 512M 为 Swap 分区,其余为 / 分区。
root 密码为:redhat。
希望大家会喜欢这个 iRedOS。
--
Best Regards.
Zhang Huangbin
- iRedMail: Mail Server Solution for Red Hat(R) Enterprise Linux & CentOS 5.x:
http://iRedMail.googlecode.com/
--
/*
*@author: chen xueqin
*@email: robb...@gmail.com
*@see: http://robbie.bokee.com
*@see: http://groups.google.com/group/fzlug
*@love: freedom,tux,open source
*/
Given an array
In PHP:
$ list = array('apple'=>300, 'orange'=>150, 'banana'=>100,
'mango'=>330)
In Perl:
%list = ( 'apple'=>300, 'orange'=>150, 'banana'=>100, 'mango'=>330 ) ;
In C++:
typdef map< string, int, less<string>> array_type ;
array_type m;
m.insert(array_type::value_type("apple", 300));
m.insert(array_type::value_type("orange", 150));
m.insert(array_type::value_type("banana", 100));
m.insert(array_type::value_type("mango", 330));
Please choose one language above and write a program to sort the array
by the order of key and value respectively with your own sorting
algorithm. Please don't use the sorting functions provided by language.