zoukankan      html  css  js  c++  java
  • Linux环境PHP7安装

    解压安装
    # tar zxvf php-7.0.2.tar.gz
    # cd php-7.0.2
    首先查看安装帮助
    # ./configure   --help
    # ./configure --prefix=/usr/local/php
    --with-apxs2=/usr/local/apache/bin/apxs 
     --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

    如果配置错误,需要安装需要的模块,直接yum一并安装依赖库

    # yum -y install libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel MySQL pcre-devel

    编译安装
    # make &&  make install
    配置文件
    # cp php.ini-development /usr/local/php/lib/php.ini
    # cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf
    # cp /usr/local/php/etc/php-fpm.d/www.conf.default /usr/local/php/etc/php-fpm.d/www.conf
    # cp -R ./sapi/fpm/php-fpm /etc/init.d/php-fpm
    启动
    #  /etc/init.d/php-fpm
    # service httpd restart
  • 相关阅读:
    2031 HDOJ 进制转换
    计算机视觉实验之直方图均衡化和对数变换
    sublime text3创建文件时生成头部注释
    浏览器调试出错
    css世界-读书笔记
    redis中Bitmaps位图应用场景
    redis中hyperloglog基数统计
    redis中Zset有序集合类型常用命令
    redis中set集合类型常用命令
    redis中hash哈希类型常用命令
  • 原文地址:https://www.cnblogs.com/yangwenxin/p/6653450.html
Copyright © 2011-2022 走看看