栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > PHP

ubuntu下安装nginx php mysql

PHP 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

ubuntu下安装nginx php mysql

以下操作是在root下进行(为了方便自己使用

1、安装nginx 

  a)下载nginx、pcre、openssl、zlib库后,直接解压到/usr/local目录下。

  b)进入zlib目录后,执行chmod +x ./configure

    ./configure;

    make;make install

  c)进入nginx目录

   第一步:./configure --prefix=/usr/local/nginx --with-openssl=/usr/local/openssl --with-pcre=/usr/local/pcre --with-zlib=/usr/local/zlib-1.2.8 --user=www --group=www --with-http_ssl_module

   第二步:make ;make install

2、安装mysql

   安装文件为:mysql-server_5.6.27-1ubuntu15.04_amd64.deb-bundle.tar,解压文件到Downloads目录下的mysql目录

  a)apt-get install libaio1 libaio1-dev

  b)dpkg -i mysql-common_5.6.27-1ubuntu15.04_amd64.deb mysql-community-server_5.6.27-1ubuntu15.04_amd64.deb mysql-community-client_5.6.27-1ubuntu15.04_amd64.deb


3、安装php

 './configure' '--prefix=/usr/local/php' '--enable-fpm' '--enable-mysqlnd' '--with-mysql=/usr' '--with-pcre-dir=/usr/local/pcre' '--with-pdo-mysql=/usr' '--with-zlib-dir=/usr/local/zlib-1.2.8/' 

  

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/228654.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号