您的位置:首页 > 编程语言 > PHP开发

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/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: