linux php mysql nginx
sudoapt-getinstallfilezillavimscimautogenleafpadintltoolgrunalienrpmp7zip-fullrarvirtualbox-ose-qtchromium-browsermeldgstmchmseecifs-utilscurlg++curllibssl-devapache2-utilsgit-core
sudoapt-getinstallphp-apcphp5-devphp5-fpmnginxmysql-servermysql-clientunzipmakegccg++automakelibtoollibmysqlclient15-devlibexpat1-devlibpcrecpp0zlib1g-devlibgd2-xpmlibgd2-xpm-devlibxml2libxml2-devlibxslt-devlibgd2-xpmlibgd2-xpm-devgeoip-databaselibgeoip-devlibpcre3libpcre3-dev
sudoapt-getinstallphp5-mysqlphp5-curlphp5-gdphp5-imagickphp5-imapphp5-mcryptphp5-memcachephp5-mhashphp5-mingphp5-psphp5-pspellphp5-recodephp5-snmpphp5-sqlitephp5-tidyphp5-xmlrpcphp5-xslphp5-json
lihuanchun2015/5/2614:16:36
#nginx安装concat模块
$nginx-v
----------------------------------
nginxversion:nginx/1.1.19
----------------------------------
cd/tmp
wgethttp://sysoev.ru/nginx/nginx-1.1.19.tar.gz
tar-zxvfnginx-1.1.19.tar.gz
cdnginx-1.1.19
sudochmod-R777/var/lib/nginx/
svncheckouthttp://code.taobao.org/svn/nginx_concat_module/trunk//var/lib/nginx/concat
nginx-V
----------------------------------
nginxversion:nginx/1.1.19
TLSSNIsupportenabled
configurearguments:--prefix=/etc/nginx--conf-path=/etc/nginx/nginx.conf--error-log-path=/var/log/nginx/error.log--http-client-body-temp-path=/var/lib/nginx/body--http-fastcgi-temp-path=/var/lib/nginx/fastcgi--http-log-path=/var/log/nginx/access.log--http-proxy-temp-path=/var/lib/nginx/proxy--http-scgi-temp-path=/var/lib/nginx/scgi--http-uwsgi-temp-path=/var/lib/nginx/uwsgi--lock-path=/var/lock/nginx.lock--pid-path=/var/run/nginx.pid--with-debug--with-http_addition_module--with-http_dav_module--with-http_geoip_module--with-http_gzip_static_module--with-http_image_filter_module--with-http_realip_module--with-http_stub_status_module--with-http_ssl_module--with-http_sub_module--with-http_xslt_module--with-ipv6--with-sha1=/usr/include/openssl--with-md5=/usr/include/openssl--with-mail--with-mail_ssl_module--add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-auth-pam--add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-echo--add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-upstream-fair--add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-dav-ext-module
----------------------------------
./configure--prefix=/etc/nginx--conf-path=/etc/nginx/nginx.conf--error-log-path=/var/log/nginx/error.log--http-client-body-temp-path=/var/lib/nginx/body--http-fastcgi-temp-path=/var/lib/nginx/fastcgi--http-log-path=/var/log/nginx/access.log--http-proxy-temp-path=/var/lib/nginx/proxy--http-scgi-temp-path=/var/lib/nginx/scgi--http-uwsgi-temp-path=/var/lib/nginx/uwsgi--lock-path=/var/lock/nginx.lock--pid-path=/var/run/nginx.pid--with-debug--with-http_addition_module--with-http_dav_module--with-http_geoip_module--with-http_gzip_static_module--with-http_image_filter_module--with-http_realip_module--with-http_stub_status_module--with-http_ssl_module--with-http_sub_module--with-http_xslt_module--with-ipv6--with-sha1=/usr/include/openssl--with-md5=/usr/include/openssl--with-mail--with-mail_ssl_module--add-module=/var/lib/nginx/concat
注意:
如果报错src/event/ngx_event_openssl.c:Infunction'ngx_ssl_create':
http://trac.nginx.org/nginx/changeset/a73678f5f96ffead0b616b2c03dfcfd5445d443b/nginx
make
sudoapt-getremovenginxnginx-fullnginx-common
sudomakeinstall
ln-s/etc/nginx/sbin/nginx/usr/sbin/nginx
sudo/etc/init.d/php5-fpmstart
sudo/etc/init.d/nginxrestart