Chinaunix首页 | 论坛 | 博客
  • 博客访问: 78539
  • 博文数量: 29
  • 博客积分: 2040
  • 博客等级: 大尉
  • 技术积分: 305
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-21 22:25
文章分类
文章存档

2011年(1)

2010年(13)

2009年(11)

2008年(4)

我的朋友

分类: LINUX

2009-08-25 00:10:13

软件版本列表:
    1. CentOS-5.3 x86_64
    2. nginx-0.7.61
    3. mysql-5.1.36
    4. php-5.2.10 (当前最新版为5.3.0, 但当前没有适用的zend_optimizer)
    5. zend_optimizer-3.3.4
 
软件安装:
    1. CentOS-5.3安装
       另参见:
 
 
    2. nginx编译安装命令
创建nginx用户组:

#groupadd www
#useradd -g www -s /bin/bash www

 

#tar xvf nginx-0.7.61.tar.gz
#cd nginx-0.7.61
#./configure 
  --prefix=/usr 
  --sbin-path=/usr/sbin/nginx 
  --conf-path=/etc/nginx/nginx.conf 
  --error-log-path=/var/log/nginx/error.log 
  --pid-path=/var/run/nginx/nginx.pid 
  --lock-path=/var/lock/nginx.lock 
  --user=www 
  --group=www 
  --with-http_ssl_module 
  --with-http_flv_module 
  --with-http_gzip_static_module 
  --http-log-path=/var/log/nginx/access.log 
  --http-client-body-temp-path=/var/tmp/nginx/client/ 
  --http-proxy-temp-path=/var/tmp/nginx/proxy/ 
  --http-fastcgi-temp-path=/var/tmp/nginx/fcgi/
#make && make install

 
 
    3. mysql编译安装命令
       --php编译要用到mysql的mysql.h文件,所以mysql要先安装
       --rpm方式安装的mysql也样没有mysql.h文件,需要安装额外的软件包:文件名记不住
 

#tar xvf mysql-5.1.36
#cd mysql-5.1.36
#./configure --prefix=/usr/local/mysql-5.1.36 
 --localstatedir=/var/lib/mysql 
 -with-comment=Source 
 --with-server-suffix=-Community 
 --with-mysqld-user=mysql 
 --without-debug 
 --with-big-tables 
 --with-charset=utf8 
 --with-collation=utf8_unicode_ci 
 --with-extra-charsets=all 
 --with-pthread 
 --enable-static 
 --enable-thread-safe-client 
 --with-client-ldflags=-all-static 
 --with-mysqld-ldflags=-all-static 
 --enable-assembler 
 --with-plugins=innobase,myisam
#make && make install

 
 
    4. php编译安装命令
 

#tar xvf php-5.2.10
#cd php-5.2.10
#./configure --prefix=/usr/local/php-5.2.10 
 --with-mysql=/usr/local/mysql-5.1.36 
 --enable-pdo 
 --with-pdo-mysql=/usr/local/mysql-5.1.36 
 --with-zlib-dir 
 --with-freetype-dir=/usr 
 --with-jpeg-dir=/usr 
 --with-png-dir=/usr 
 --with-mcrypt=/usr 
 --enable-gd-native-ttf 
 --with-gd 
 --enable-track-vars 
 --enable-ftp 
 --with-iconv 
 --with-gettext 
 --with-curl 
 --enable-fastcgi 
 --with-openssl 
 --enable-zend-multibyte 
 --enable-inline-optimization 
 --enable-mbstring
#make && make test

 
 
    5. zend_optimizer安装
       从官网上下载二进制软件包, 执行install文件, 根据提示即可完成安装.
 
阅读(1193) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~