zoukankan      html  css  js  c++  java
  • rmp 安装LNMP环境

    系统环境:

    • CentOS 6.6

    下载 PHP 源码包

    # wget http://cn2.php.net/distributions/php-5.6.0.tar.xz
    # xz -d php-5.6.0.tar.xz
    # tar xf php-5.6.0.tar -C /usr/local/src/
    

     安装依赖

    # yum install gcc bison bison-devel zlib-devel libmcrypt-devel mcrypt mhash-devel openssl-devel libxml2-devel libcurl-devel bzip2-devel readline-devel libedit-devel sqlite-devel
    

     创建 www 用户

    # groupadd www
    # useradd -g www -s /sbin/nologin -M www
    

     编译安装

    # cd /usr/local/src/php-5.6.0/
    
    # ./configure 
    --prefix=/usr/local/php56 
    --with-config-file-path=/usr/local/php56/etc 
    --enable-inline-optimization 
    --disable-debug 
    --disable-rpath 
    --enable-shared 
    --enable-opcache 
    --enable-fpm 
    --with-fpm-user=www 
    --with-fpm-group=www 
    --with-mysql=mysqlnd 
    --with-mysqli=mysqlnd 
    --with-pdo-mysql=mysqlnd 
    --with-gettext 
    --enable-mbstring 
    --with-iconv 
    --with-mcrypt 
    --with-mhash 
    --with-openssl 
    --enable-bcmath 
    --enable-soap 
    --with-libxml-dir 
    --enable-pcntl 
    --enable-shmop 
    --enable-sysvmsg 
    --enable-sysvsem 
    --enable-sysvshm 
    --enable-sockets 
    --with-curl 
    --with-zlib 
    --enable-zip 
    --with-bz2 
    --with-readline
    
     
  • 相关阅读:
    画图软件
    万用表
    传导发射
    MOT
    Docker
    第十二章、私营部门和第三部门中的采购
    第十一章、公共部门中的采购
    第十章、部门与行业环境
    第九章、信息与通信技术系统
    第八章、组织的采购职能
  • 原文地址:https://www.cnblogs.com/fenle/p/4782286.html
Copyright © 2011-2022 走看看