tengine安装及支持php解析
2018-04-09 00:00
281 查看
摘要: 搭建解析php的tengine服务
【tengine安装】
step1:download 文件到/usr/local/src目录下
wget http://tengine.taobao.org/download/tengine-2.1.0.tar.gz
wget http://www.canonware.com/download/jemalloc/jemalloc-3.4.0.tar.bz2
wget https://www.openssl.org/source/old/1.0.2/openssl-1.0.2d.tar.gz
wget http://prdownloads.sourceforge.net/libpng/zlib-1.2.8.tar.gz?download
step2:bz2解压
tar -zxvf tengine-2.1.0.tar.gz
tar -jxvf jemalloc-3.4.0.tar.bz2
tar -zxvf openssl-1.0.2d.tar.gz
tar -zxvf zlib-1.2.8.tar.gz
step3:编译安装参数
./configure --prefix=/web/webserver/tengine \
--dso-path=/web/webserver/tengine/dsoDir \
--dso-tool-path=/web/webserver/tengine/sbin \
--with-jemalloc --with-jemalloc=/usr/local/src/jemalloc-3.4.0 \
--with-openssl=/usr/local/src/openssl-1.0.2d \
--with-zlib=/usr/local/src/zlib-1.2.8 \
--with-http_memcached_module=shared \
--with-http_sub_module=shared \
--with-http_empty_gif_module=shared \
--with-http_limit_req_module=shared
step4:安装
$ ./configure
$ make
$ sudo make install
ps:参考网址
1、http://tengine.taobao.org/
2、http://www.canonware.com/pipermail/jemalloc-announce/2013-June/000011.html
3、https://www.openssl.org/source/old/1.0.2/
4、http://www.zlib.net/
【php安装】
前提:支持php访问sqlserver && mysql数据库。
step1:wget
wget http://php.net/get/php-5.5.38.tar.gz
wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-patched.tar.gz
step2:解压
tar -zxvf php-5.5.38.tar.gz
step3:编译安装参数
./configure
--prefix=/usr/local/php-fpm
--with-config-file-path=/usr/local/php-fpm/etc
--with-mysql=/usr
--with-pdo-mysql=/usr
--enable-fpm
--with-zlib
--enable-mbstring
--with-mcrypt
--with-mssql=/usr/local/src/php/freetds-1.00.14
--with-pdo-dblib=/usr/local/src/php/freetds-1.00.14
--with-mysqli=/usr/bin/mysql_config
step4:检查php配置参数
/usr/local/php-fpm/bin/php --info|grep configure
ps:参考网址
http://php.net/downloads.php
http://www.freetds.org/
【tengine安装】
step1:download 文件到/usr/local/src目录下
wget http://tengine.taobao.org/download/tengine-2.1.0.tar.gz
wget http://www.canonware.com/download/jemalloc/jemalloc-3.4.0.tar.bz2
wget https://www.openssl.org/source/old/1.0.2/openssl-1.0.2d.tar.gz
wget http://prdownloads.sourceforge.net/libpng/zlib-1.2.8.tar.gz?download
step2:bz2解压
tar -zxvf tengine-2.1.0.tar.gz
tar -jxvf jemalloc-3.4.0.tar.bz2
tar -zxvf openssl-1.0.2d.tar.gz
tar -zxvf zlib-1.2.8.tar.gz
step3:编译安装参数
./configure --prefix=/web/webserver/tengine \
--dso-path=/web/webserver/tengine/dsoDir \
--dso-tool-path=/web/webserver/tengine/sbin \
--with-jemalloc --with-jemalloc=/usr/local/src/jemalloc-3.4.0 \
--with-openssl=/usr/local/src/openssl-1.0.2d \
--with-zlib=/usr/local/src/zlib-1.2.8 \
--with-http_memcached_module=shared \
--with-http_sub_module=shared \
--with-http_empty_gif_module=shared \
--with-http_limit_req_module=shared
step4:安装
$ ./configure
$ make
$ sudo make install
ps:参考网址
1、http://tengine.taobao.org/
2、http://www.canonware.com/pipermail/jemalloc-announce/2013-June/000011.html
3、https://www.openssl.org/source/old/1.0.2/
4、http://www.zlib.net/
【php安装】
前提:支持php访问sqlserver && mysql数据库。
step1:wget
wget http://php.net/get/php-5.5.38.tar.gz
wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-patched.tar.gz
step2:解压
tar -zxvf php-5.5.38.tar.gz
step3:编译安装参数
./configure
--prefix=/usr/local/php-fpm
--with-config-file-path=/usr/local/php-fpm/etc
--with-mysql=/usr
--with-pdo-mysql=/usr
--enable-fpm
--with-zlib
--enable-mbstring
--with-mcrypt
--with-mssql=/usr/local/src/php/freetds-1.00.14
--with-pdo-dblib=/usr/local/src/php/freetds-1.00.14
--with-mysqli=/usr/bin/mysql_config
step4:检查php配置参数
/usr/local/php-fpm/bin/php --info|grep configure
ps:参考网址
http://php.net/downloads.php
http://www.freetds.org/
相关文章推荐
- centos6.5为tengine安装php 5.6支持
- centos 5.2自动安装的php不支持mysql?
- 配置IIS支持PHP,首先得安装PHP
- PHP安装为Apache的DSO的具体方法解析
- centos中rabbitmq的安装及php支持
- CentOS5.4 安装php5.2.x 和 ZendOptimizer-3.3.9的方法,方便支持phpMyAdmin-3.2.2
- (转)IIS7(Win7)下最简单最强安装多版本PHP支持环境
- linux+php5.5+nginx+支持redis安装部署
- 关于ubuntu下安装完PHP+Apache后,无法解析php的解决方案
- Nginx安装、默认虚拟主机、用户认证、nginx中PHP解析
- 安装Nginx与使用PHP5(和PHP-FPM Nginx)和MySQL在 CentOS支持6.0的支持
- Lnmp环境下nginx配置虚拟主机新手教程(支持解析PHP脚本)
- 安装php的时候没有mysql支持的后续安装
- Memcached安装并启用PHP扩展支持
- php 5.6 安装opcache 支持
- Ubuntu安装apache2无法解析php
- Linux下安装php环境并且配置Nginx支持php-fpm模块
- debian(wheezy)安装rabbitMQ,php-amqp来支持消息队列.
- memcache安装及php的memcache支持
- PHP5跟apache2.0安装不能解析PHP代码的解决办法