Apache 2.4.2 编译常见错误解决方式

尝试了一把从2005年以来第一次重大更新的新版本apache
不仅加入了云计算的基因 更大幅提升了性能
I/O读写和内存占用优化程度比较大
主要是增加了一个enevt模式 测试效果不错

实际我测试的 单纯的编译后静态文件和nginx的处理性能
确实已经相差不大
测试是使用ab测试的 单台nginx和阿帕奇测试后对比数据
获得的结果 下次进行系统的测试在发测试数据
暂时只是测试了jpg图片 和html静态的文件 数据可能没代表性

下面把编译的时候 常见的错误贴下
rotatelogs.o: In function post_rotate':
rotatelogs.c:(.text+0x5ed): undefined reference to
apr_file_link’
collect2: ld returned 1 exit status
make[2]: *** [rotatelogs] Error 1
make[2]: Leaving directory /root/src/httpd-2.4.2/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
/root/src/httpd-2.4.2/support’
make: *** [all-recursive] Error 1

这些是因为没apr的包
有2个解决方式
第一种解决办法
yum remove “apr*”
wget http://ftp.jaist.ac.jp/pub/apache/apr/apr-1.4.6.tar.gz
tar xzf apr-1.4.6.tar.gz
cd apr-1.4.6
./configure ; make ; make install
wget http://ftp.jaist.ac.jp/pub/apache/apr/apr-util-1.4.1.tar.gz
tar zxvf apr-util-1.4.1.tar.gz
cd apr-util-1.4.1
./configure –with-apr=/usr/local/apr
yum install -y pcre-devel lua-devel libxml2-devel

第二种解决办法
下载arp的包以后 cp到httpd的文件夹
cp -r apr-1.4.6 httpd-2.4.2/srclib/apr
cp -r apr-util-1.4.1 httpd-2.4.2/srclib/apr-util

就可以解决了

第二个常见的错误 这种只有mini安装会出现 一般大部分菜鸟都不会安装devel的包

checking for OpenSSL version >= 0.9.7… FAILED
configure: WARNING: OpenSSL version is too old
no
checking whether to enable mod_ssl… configure: error: mod_ssl has been requested but can not be built due to prerequisite failures

解决办法
yum install openssl-devel
yum update openssl

近期准备把所有服务器都升级到httpd 2.4.2 获得更好的性能

相关:

  • apache 2 4 2
  • apache2 4 2
  • undefined reference to `apr_file_link
  • configure: WARNING: OpenSSL version is too old
  • checking for OpenSSL version >= 0 9 7 FAILED
  • rotatelogs c:( text 0x5ed): undefined reference to `apr_file_link
  • mod_ssl has been requested but can not be built due to prerequisite failures
  • apache undefined reference to `apr_file_link
  • rotatelogs o: In function `post_rotate:
  • apache 2 4 2 编译

测试MYSQL负载 生成MYSQL测试数据的方式

通常我们使用mysql数据库服务器 以及mysql集群的时候
需要进行mysql性能以及压力测试
这个时候 我们不能使用生成环境
只能生成一批数据进行测试

本教程就是教你如何生成测试数据

测试约定
MySQL: 版本 5.1.xx Community Server
数据库: dbTest
数据表: test_data

首先 登录

mysql -uroot -p

建立数据库和表

CREATE DATABASE dbTest;
USE dbTest;
CREATE TABLE test_data (
a INT(10) NULL,
b INT(10) NULL,
c INT(10) NULL
)
ENGINE=InnoDB;

生成10万条记录 单次随机插入1000条

DELIMITER //
CREATE PROCEDURE GenerateFakeData()
BEGIN
DECLARE i INT DEFAULT 1;
WHILE i <= 100000 DO INSERT INTO tbl_data1 (a,b,c) VALUES ((SELECT floor(rand() * 1000) AS randNum), (SELECT floor(rand() * 1000) AS randNum),(SELECT floor(rand() * 1000) AS randNum)); SET i = i + 1; END WHILE; END // DELIMITER ;

USE dbTest;
CALL GenerateFakeData();

调用

最后我们进行查询测试

SELECT * FROM dbTest.tbl_data1 LIMIT 1,10;

查询10条记录

+——+——+——+
| a | b | c |
+——+——+——+
| 521 | 662 | 748 |
| 753 | 523 | 356 |
| 212 | 994 | 334 |
| 689 | 441 | 139 |
| 374 | 453 | 145 |
| 364 | 386 | 837 |
| 30 | 637 | 96 |
| 571 | 569 | 129 |
| 940 | 312 | 741 |
| 770 | 628 | 828 |
+——+——+——+
10 rows in set (0.00 sec)

是不是有数据库了?

相关:

  • mysql 生成测试数据
  • mysql生成测试数据

WHMCS v5.1 版本 更新内容

其实这次更新看起来没什么大动作
只是修改了一些细节,比如业务处理和管理员的操作

我们这里简单罗列下
1. 管理员订购处理的流程
更新了一些简单的操作,后台手工添加产品给客户的时候,可以使用折扣代码并且域名也可以自动处理了
2. 订单处理
订单处理更加自由了,可以自定义订单状态
3. 客户中心
增加了重要的备注选项,这样可以让客服人员更快速的处理客户问题
4. 定制订单
小的修改,关于日期的
5. 账户余额和退款
更新了扣除账户余额的概述和摘要,之前不是显示0吗?现在不会了
6. 产品促销管理
好像是全部重写了
7. 支持管理
修改了技术支持就是那个工单系统的一些配置和设置.
8. 报告
管理中心可以查看报告,估计是增加了一些新的包括选项

WHMCS在业务流程和逻辑上做的还是比较好的
就我们自己都购买了4份授权在使用,稳定和安全性做的比较靠谱

主要的可以查看官方博客说明
http://blog.whmcs.com/?t=46568

新版本发布后,我们的客户可以第一时间使用我们更新的语言包进行升级到最新版本使用

相关:

  • whmcs 5 1
  • cottondmk
  • daydm5
  • drawn1fi
  • existnps
  • rushj2k
  • whmcs5 1

部署 Zimbra Collaboration Suite 最新版 到 CentOS 5.x (64Bit)

部署 Zimbra Collaboration Suite 最新版 到 CentOS 5.x (64Bit)

因有个客户需求购买我们的服务器,部署开源的Zimbra Collaboration Suite邮件系统 我们为客户提供完整的解决方案

我们写下安装配置记录,便于其他技术人员参考我们的操作流程
节约时间

版本约定
操作系统: Centos 5.8 (64位)
软件版本: Zimbra Collaboration Suite 7.1.4

第一步 操作系统安装完成后
首先设置好网络
因为网络我们是使用网络iso安装的 需要先设置 这里就不演示了
操作系统安装完成后
先设置hostname下面的
编辑 vi /etc/sysconfig/network

NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=mail.dns.net #你的主域名

这个很重要 需要做IP的双向反向解析
否则很容易被拒收和发到对方垃圾邮件箱里

在线编辑本地的ip指向 这个其实可以不设置的
但是商业环境建议设置

vi /etc/hosts
127.0.0.1 localhost.localdomain localhost
你的外网IP mail.dns.net mail

安装依赖包
yum install -y sysstat.x86.64 perl.x86_64 sqlite.x86.64
注意如果是使用的64位系统,建议安装软件包的时候 指定下64位版本
否则会提示依赖包错误 无法安装其他软件 或者软件安装不上的错误

然后去官方下载软件
http://www.zimbra.com/downloads/os-downloads.html
我们使用centos5的系统
http://files2.zimbra.com/downloads/7.1.4_GA/zcs-7.1.4_GA_2555.RHEL5_64.20120105094627.tgz
下载这个就可以了

cd /opt
wget -c http://files2.zimbra.com/downloads/7.1.4_GA/zcs-7.1.4_GA_2555.RHEL5_64.20120105094627.tgz

tar -zxvf zcs-7.1.4_GA_2555.RHEL5_64.20120105094627.tgz
cd zcs-7.1.4_GA_2555.RHEL5_64.20120105094627
./install.sh –platform-override

因为我们下载的redhat版本 但是实际上系统是centos
版本检查过不掉 使用需要重写平台的参数 –platform-override

然后开始安装过程
Do you agree with the terms of the software license agreement? [N] y

按需选择
Select the packages to install
Install zimbra-ldap [Y]
Install zimbra-logger [Y]
Install zimbra-mta [Y]
Install zimbra-snmp [Y]
Install zimbra-store [Y]
Install zimbra-apache [Y]
Install zimbra-spell [Y]
Install zimbra-memcached [N]
Install zimbra-proxy [N]

会提示平台问题
You appear to be installing packages on a platform different
than the platform for which they were built.

This platform is CentOS5_64
Packages found: RHEL5_64
This may or may not work.

Using packages for a platform in which they were not designed for
may result in an installation that is NOT usable. Your support
options may be limited if you choose to continue.

Install anyway? [N] y
The system will be modified. Continue? [N] y

都选择Y = YES的意思

最后
Main menu

1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-store: Enabled
+Create Admin User: yes
+Admin user to create: admin@mail.dndns.net
******* +Admin Password UNSET
+Anti-virus quarantine user: virus-quarantine.kzpbrsgbx7@mail.dndns.net
+Enable automated spam training: yes
+Spam training user: spam.sd5fsqtdzi@mail.dndns.net
+Non-spam(Ham) training user: ham.2qun60wc4@mail.dndns.net
+SMTP host: mail.dndns.net
+Web server HTTP port: 80
+Web server HTTPS port: 443
+Web server mode: http
+IMAP server port: 143
+IMAP server SSL port: 993
+POP server port: 110
+POP server SSL port: 995
+Use spell check server: yes
+Spell server URL: http://mail.dndns.net:7780/aspell.php
+Configure for use with mail proxy: FALSE
+Configure for use with web proxy: FALSE
+Enable version update checks: TRUE
+Enable version update notifications: TRUE
+Version update notification email: admin@mail.dndns.net
+Version update source email: admin@mail.dndns.net

4) zimbra-mta: Enabled
5) zimbra-snmp: Enabled
6) zimbra-logger: Enabled
7) zimbra-spell: Enabled
8) Default Class of Service Configuration:
r) Start servers after configuration yes
s) Save config to file
x) Expand menu
q) Quit

Address unconfigured (**) items (? – help) 3

输入4 设置下admin的密码.

Store configuration

1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@mail.dndns.net
** 4) Admin Password UNSET
5) Anti-virus quarantine user: virus-quarantine.kzpbrsgbx7@mail.dndns.net
6) Enable automated spam training: yes
7) Spam training user: spam.sd5fsqtdzi@mail.dndns.net
8) Non-spam(Ham) training user: ham.2qun60wc4@mail.dndns.net
9) SMTP host: mail.dndns.net
10) Web server HTTP port: 80
11) Web server HTTPS port: 443
12) Web server mode: http
13) IMAP server port: 143
14) IMAP server SSL port: 993
15) POP server port: 110
16) POP server SSL port: 995
17) Use spell check server: yes
18) Spell server URL: http://mail.dndns.net:7780/aspell.php
19) Configure for use with mail proxy: FALSE
20) Configure for use with web proxy: FALSE
21) Enable version update checks: TRUE
22) Enable version update notifications: TRUE
23) Version update notification email: admin@mail.dndns.net
24) Version update source email: admin@mail.dndns.net

Select, or ‘r’ for previous menu [r] 4

Password for admin@mail.dndns.net (min 6 characters): [7M_lgfdx3B] secret

Then press r to return to the main menu.

Store configuration

1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@mail.dndns.net
4) Admin Password set
5) Anti-virus quarantine user: virus-quarantine.kzpbrsgbx7@mail.dndns.net
6) Enable automated spam training: yes
7) Spam training user: spam.sd5fsqtdzi@mail.dndns.net
8) Non-spam(Ham) training user: ham.2qun60wc4@mail.dndns.net
9) SMTP host: mail.dndns.net
10) Web server HTTP port: 80
11) Web server HTTPS port: 443
12) Web server mode: http
13) IMAP server port: 143
14) IMAP server SSL port: 993
15) POP server port: 110
16) POP server SSL port: 995
17) Use spell check server: yes
18) Spell server URL: http://mail.dndns.net:7780/aspell.php
19) Configure for use with mail proxy: FALSE
20) Configure for use with web proxy: FALSE
21) Enable version update checks: TRUE
22) Enable version update notifications: TRUE
23) Version update notification email: admin@mail.dndns.net
24) Version update source email: admin@mail.dndns.net

Select, or ‘r’ for previous menu [r] r

And press a to apply the config. Afterwards, save the configuration data.

Main menu

1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-store: Enabled
4) zimbra-mta: Enabled
5) zimbra-snmp: Enabled
6) zimbra-logger: Enabled
7) zimbra-spell: Enabled
8) Default Class of Service Configuration:
r) Start servers after configuration yes
s) Save config to file
x) Expand menu
q) Quit

*** CONFIGURATION COMPLETE – press ‘a’ to apply
Select from menu, or press ‘a’ to apply config (? – help) a
Save configuration data to a file? [Yes]
Save config in file: [/opt/zimbra/config.11722]
Saving config in /opt/zimbra/config.11722…done.
The system will be modified – continue? [No] y

需要等待处理完成

Operations logged to /tmp/zmsetup.04042012-131235.log
Setting local config values…done.
Setting up CA…done.
Deploying CA to /opt/zimbra/conf/ca …done.
Creating SSL certificate…done.
Installing mailboxd SSL certificates…done.
Initializing ldap…done.
Setting replication password…done.
Setting Postfix password…done.
Setting amavis password…done.
Setting nginx password…done.
Creating server entry for mail.dndns.net…done.
Saving CA in ldap …done.
Saving SSL Certificate in ldap …done.
Setting spell check URL…done.
Setting service ports on mail.dndns.net…done.
Adding zimbratest.example.com to zimbraMailHostPool in default COS…done.
Installing webclient skins…
steel…done.
twilight…done.
pebble…done.
bare…done.
lemongrass…done.
beach…done.
sand…done.
sky…done.
carbon…done.
smoke…done.
lavender…done.
tree…done.
waves…done.
lake…done.
oasis…done.
bones…done.
hotrod…done.
Finished installing webclient skins.
Setting zimbraFeatureTasksEnabled=TRUE…done.
Setting zimbraFeatureBriefcasesEnabled=TRUE…done.
Setting MTA auth host…done.
Setting TimeZone Preference…done.
Initializing mta config…done.
Setting services on mail.dndns.net…done.
Creating domain mail.dndns.net…done.
Setting default domain name…done.
Creating domain mail.dndns.net…already exists.
Creating admin account admin@mail.dndns.net…done.
Creating root alias…done.
Creating postmaster alias…done.
Creating user spam.sd5fsqtdzi@mail.dndns.net…done.
Creating user ham.2qun60wc4@mail.dndns.net…done.
Creating user virus-quarantine.kzpbrsgbx7@mail.dndns.net…done.
Setting spam training and Anti-virus quarantine accounts…done.
Initializing store sql database…done.
Setting zimbraSmtpHostname for mail.dndns.net…done.
Configuring SNMP…done.
Checking for default IM conference room…not present.
Initializing default IM conference room…done.
Setting up syslog.conf…done.

You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Suite.
The only information that will be transmitted is:
The VERSION of zcs installed (7.1.4_GA_3105_CentOS5_64)
The ADMIN EMAIL ADDRESS created (admin@mail.dndns.net)

Notify Zimbra of your installation? [Yes] no
Notification skipped
Starting servers…done.
Installing common zimlets…
com_zimbra_bulkprovision…done.
com_zimbra_phone…done.
com_zimbra_attachmail…done.
com_zimbra_linkedin…done.
com_zimbra_srchhighlighter…done.
com_zimbra_attachcontacts…done.
com_zimbra_adminversioncheck…done.
com_zimbra_url…done.
com_zimbra_cert_manager…done.
com_zimbra_date…done.
com_zimbra_email…done.
com_zimbra_webex…done.
com_zimbra_dnd…done.
com_zimbra_social…done.
Finished installing common zimlets.
Restarting mailboxd…done.
Setting up zimbra crontab…done.

Moving /tmp/zmsetup.04042012-131235.log to /opt/zimbra/log

Configuration complete – press return to exit
完成 确认回车即可

登录后 可以看到界面为

Zimbra Collaboration Suite

Posts navigation

1 2 3 22 23 24 25 26 27 28 31 32 33
Scroll to top