nginx-php-fpm

2018-06-22 05:31:50来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

思动博客

https://www.cnblogs.com/jecyhw/p/5504855.html
http://blog.csdn.net/god_for/article/details/50500342

mkdir /data/php7

./configure --prefix=/data/php7 \
--with-curl \
--with-freetype-dir \
--with-gd \
--with-gettext \
--with-iconv-dir \
--with-kerberos \
--with-libdir=lib64 \
--with-libxml-dir \
--with-mysqli \
--with-openssl \
--with-pcre-regex \
--with-pdo-mysql \
--with-pdo-sqlite \
--with-pear \
--with-png-dir \
--with-xmlrpc \
--with-xsl \
--with-zlib \
--enable-fpm \
--enable-bcmath \
--enable-libxml \
--enable-inline-optimization \
--enable-gd-native-ttf \
--enable-mbregex \
--enable-mbstring \
--enable-opcache \
--enable-pcntl \
--enable-shmop \
--enable-soap \
--enable-sockets \
--enable-sysvsem \
--enable-xml \
--enable-zip \
--disable-fileinfo

 

yum -y install libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel mysql pcre-devel

# yum -y install curl-devel
# yum -y install libxslt-devel

make

make install

server {
listen 80;
server_name test.php.com;
access_log /data/testnginx/logs/test.php.com.access.log;
error_log /data/testnginx/logs/test.php.com.error.log info;

root /data/php7/www;
index index.html index.htm;
location ~ \.php$ {
root /data/php7/www; #指定php的根目录
fastcgi_pass 127.0.0.1:6000;#php-fpm的默认端口是9000
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}

 

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:php图片合成(多张图片合成一张)

下一篇:php之cURL惯用