因爲學習的需要,所以在原有lnpp的部署的基礎上加入了mysql ,可能lnmpp的使用上會更靈活點 ...
mysql 的部分參考的一下的網頁:
http://blog.csdn.net/qzier_go/article/details/7325254
建立在lnpp的腳本上:
http://blog.csdn.net/qzier_go/article/details/7462053
這裏就不貼代碼了,項目放在github上,同時加入了啓動腳本 .
Desc: lnmpp=linux + nginx + mysql + php + postgresql Detail: PHP_VERSION=php-5.4.0 PG_VERSION=postgresql-9.1.3 NGINX_VERSION=nginx-1.0.15 MYSQL_VERSION=mysql-5.5.21 Usage: #sh lnmpp.sh #./lnmpp_start {start|stop|reload} Contact: email:[email protected] qq group:213572677
php 編譯選項
'./configure' '--prefix=/tmp/lnmpp/lnmpp-0.01/php/php-5.4.0' '--with-config-file-path=/tmp/lnmpp/lnmpp-0.01/php/php-5.4.0/etc/' '--with-iconv=/tmp/lnmpp/lnmpp-0.01/php/php-5.4.0/3rdlibs/libiconv-1.14' '--with-pcre-dir=/tmp/lnmpp/lnmpp-0.01/php/php-5.4.0/3rdlibs/pcre-8.21' '--with-pgsql=/tmp/lnmpp/lnmpp-0.01/pgsql/postgresql-9.1.3' '--with-pdo-pgsql=/tmp/lnmpp/lnmpp-0.01/pgsql/postgresql-9.1.3' '--with-mysql=/tmp/lnmpp/lnmpp-0.01/mysql/mysql-5.5.21' '--with-pdo-mysql=/tmp/lnmpp/lnmpp-0.01/mysql/mysql-5.5.21' '--enable-fpm' '--with-pear' '--with-gd' '--enable-gd-native-ttf' '--with-freetype' '--with-zlib' '--enable-mbstring' '--with-curl' '--with-openssl' '--with-mhash=/tmp/lnmpp/lnmpp-0.01/php/php-5.4.0/3rdlibs/mhash-0.9.9.9' '--with-mcrypt=/tmp/lnmpp/lnmpp-0.01/php/php-5.4.0/3rdlibs/mcrypt-2.6.8