nginx - 搭建lnmp环境,外接mysql,我的php应该怎么编译?

查看:88
本文介绍了nginx - 搭建lnmp环境,外接mysql,我的php应该怎么编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

./configure --enable-opcache --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-mbstring=all --with-pdo-mysql --enable-sockets --enable-mbstring --enable-fpm --with-curl --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --enable-xml --with-gd --with-mcrypt --with-libxml-dir=/usr --enable-xml --with-openssl --with-iconv=/usr/local/iconv

在我的环境中没有安装mysql,外接阿里云数据库

mysql那一部分怎么编译啊?

解决方案

既然使用阿里的rds,只需要安装Php的mysqli扩展,连接mysql的时候使用阿里提供的地址就可以了。不需要单独安装Mysql了

这篇关于nginx - 搭建lnmp环境,外接mysql,我的php应该怎么编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆