怎么搭建PHP7+MySQL5.7+Nginx1.9. on Ubuntu 14.04环境-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

怎么搭建PHP7+MySQL5.7+Nginx1.9. on Ubuntu 14.04环境

蛮大人123 2016-02-08 16:43:29 2951

php升级到了7.0版本,据说很牛叉,比如性能较5.6提升两倍,内存占用低之类的,后来又看微博上说等到7.0.1才稳定。怎么搭建怎么搭建PHP7+MySQL5.7+Nginx1.9. on Ubuntu 14.04环境

Ubuntu PHP
分享到
取消 提交回答
全部回答(1)
  • 蛮大人123
    2019-07-17 18:39:48
    环境:1核1G主机实例:

    OS:ubuntu 14.04.3
    Nginx 1.9.9
    PHP 7.0.1
    MySQL 5.7.10

    Nginx1.9.9下载签名密钥

    wget http://nginx.org/keys/nginx_signing.key
    apt-key add nginx_signing.key

    添加nginx源

    echo "deb http://nginx.org/packages/mainline/ubuntu/ trusty nginx" >> /etc/apt/sources.list
    echo "deb-src http://nginx.org/packages/ubuntu/ trusty nginx" >> /etc/apt/sources.list

    安装nginx

    apt-get update
    apt-get install nginx

    PHP7.0.1

    apt-get install python-software-properties
    add-apt-repository ppa:ondrej/php-7.0
    apt-get install php7.0-fpm

    做一些配置:

    vi /etc/php/7.0/fpm/php.ini #将cgi.fix_pathinfo=1这一行去掉注释,将1改为0。

    dpkg -i mysql-apt-config_xx_all.deb
    apt-get update
    apt-get install mysql-server

    依赖环境:

    sudo apt-get install php7.0-cli php7.0-common php7.0-curl php7.0-gd php7.0-mysql libxml2 libxml2-dev build-essential openssl libssl-dev libcurl4-gnutls-dev libjpeg-dev libpng-dev libmcrypt-dev libreadline6 libreadline6-dev libgd-dev libxslt-dev
    原文链接:http://www.zhouyalin.com/2016/01/04/php7mysql5-7nginx1-8-on-ubuntu.html

    0 0
开发与运维
使用钉钉扫一扫加入圈子
+ 订阅

集结各类场景实战经验,助你开发运维畅行无忧

推荐文章
相似问题