【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/
转载于:https://my.oschina.net/guiguketang/blog/1791660