./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那一部分怎麼編譯啊?
给我你的怀抱2017-05-16 13:03:41
Mysql正常安裝就行,php安裝mysql擴展,`--with-mysql=/usr/local/mysql
--with-mysqli=/usr/local/mysql/bin/mysql_config`具體教程網上很多很多,樓主一步步按照教程來就可以,寫的一般都挺詳細的。
附網址:
http://www.jb51.net/article/9...