sudo apt-get install filezilla vim scim autogen leafpad intltool grun alien rpm p7zip-full rar virtualbox-ose-qt chromium-browser meld gstm chmsee cifs-utils curl g++ curl libssl-dev apache2-utils git-core
sudo apt-get install php-apc php5-dev php5-fpm nginx mysql-server mysql-client unzip make gcc g++ automake libtool libmysqlclient15-dev libexpat1-dev libpcrecpp0 zlib1g-dev libgd2-xpm libgd2-xpm-dev libxml2 libxml2-dev libxslt-dev libgd2-xpm libgd2-xpm-dev geoip-database libgeoip-dev libpcre3 libpcre3-dev
sudo apt-get install php5-mysql php5-curl php5-gd php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-json
lihuanchun 2015/5/26 14:16:36
# nginx 安装concat 模块
$ nginx -v
----------------------------------
nginx version: nginx/1.1.19
----------------------------------
cd /tmp
wget http://sysoev.ru/nginx/nginx-1.1.19.tar.gz
tar -zxvf nginx-1.1.19.tar.gz
cd nginx-1.1.19
sudo chmod -R 777 /var/lib/nginx/
svn checkout http://code.taobao.org/svn/nginx_concat_module/trunk/ /var/lib/nginx/concat
nginx -V
----------------------------------
nginx version: nginx/1.1.19
TLS SNI support enabled
configure arguments: --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: In function 'ngx_ssl_create':
http://trac.nginx.org/nginx/changeset/a73678f5f96ffead0b616b2c03dfcfd5445d443b/nginx
make
sudo apt-get remove nginx nginx-full nginx-common
sudo make install
ln -s /etc/nginx/sbin/nginx /usr/sbin/nginx
sudo /etc/init.d/php5-fpm start
sudo /etc/init.d/nginx restart
分享到:
相关推荐
Linux 下 Nginx+PHP+MySQL 环境配置详解 在 Linux 平台下配置 Nginx 服务器和 PHP 环境是非常重要的,因为 Nginx 是一个高性能的 HTTP 和反向代理服务器,同时还是 IMAP/POP3/SMTP 代理服务器。下面我们将详细介绍...
### Linux Nginx MySQL PHP (LNMP) 环境搭建详细步骤 #### 一、基础知识简介 在深入了解LNMP的安装配置之前,我们先简要回顾一下这四个组件的基本概念: - **Linux**:一个开源的操作系统,是服务器领域的主流选择...
主要采用阿里云服务器Centos7 版本: linux 安装nginx+php+mysql nginx整合php、mysql,设置防火墙,mysql设置远程访问和权限,Navicat for MySQL远程连接linux mysql
"Linux+Nginx+PHP+MySQL环境配置指南" 本指南将指导您如何安装和配置 Linux+Nginx+PHP+MySQL 环境,以便于构建一个功能完善的 Web 服务器。 安装 Red Hat Linux 在开始安装 Linux 之前,需要选择语言和键盘布局。...
在Linux环境下搭建MySQL+PHP+nginx的服务器是一个常见的任务,尤其对于Web开发人员来说,这一组合提供了稳定且高效的Web服务。以下将详细讲解这个过程,包括Linux基础、VMware虚拟机的安装、Linux镜像的配置以及...
linux nginx mysql php 安装脚本,包括资源下载和安装
### Web环境搭建:Linux+Nginx+PHP+MySQL+Redis #### 一、环境概述与推荐版本 在构建一个高效且稳定的商城系统时,选择合适的Web环境至关重要。本指南将介绍一套广泛应用于电商平台的技术栈——**Ubuntu + PHP + ...
Linux + Apache(Nginx) + MySQL + PHP,简称LAMP或LNMP,是两种常见的Web服务器架构,分别基于Apache和Nginx作为Web服务器。这两种架构都是为了搭建动态网站和Web应用程序,支持高并发和高性能。以下是它们的配置...
本篇将详细讲解如何在Linux环境下配置Nginx作为Web服务器,PHP作为后端处理语言,以及MySQL作为数据库系统,构建一个强大的LAMP(Linux、Apache、MySQL、PHP)替代架构——LNMP(Linux、Nginx、MySQL、PHP)。...
### Linux 2.6平台下Nginx-PHP-Mysql安装手册 #### 1. 升级系统库 在开始安装Nginx、PHP和MySQL之前,首先要确保系统的软件包是最新的。这可以通过运行以下命令来实现: ```bash yum -y install yum-...
在IT领域,Linux、Nginx、MySQL和PHP(简称LNMP)是构建高效、稳定且可扩展的Web服务的常见组合。这个组合通常用于搭建动态网站和应用程序,因为它们各自都有独特的优点和功能。 **Linux**:作为操作系统,Linux以...
本篇将详细阐述如何在Linux环境下配置LNMP(Linux, Nginx, MySQL, PHP)环境,帮助你掌握这一关键技能。 首先,我们来了解Nginx的基本概念。Nginx是由俄罗斯Rambler.ru站点开发的高性能HTTP和反向代理服务器,同时...
### Linux (CentOS5) 下 MySQL + PHP + Nginx 的搭建详解 #### 一、基础知识与环境准备 ##### 1. VMware的安装与使用 - **安装过程**: - 安装 VMware Workstation v6.0.0.45731 软件。 - 设置虚拟机: - 打开 ...
在Linux系统中搭建一个基于MySQL、PHP和Nginx的环境是常见的Web开发配置,这种组合通常被称为LAMP(Linux, Apache, MySQL, PHP)架构,但在本例中使用的是Nginx代替Apache,所以是LNMP(Linux, Nginx, MySQL, PHP)...
LNMP(Linux+Nginx+MySQL+PHP)服务器环境配置是一项关键的技术,广泛应用于现代Web开发领域,尤其在构建高性能、高稳定性的网站时。这一组合利用Linux作为操作系统基础,Nginx作为Web服务器,MySQL作为数据库管理...
LNMP一键安装包是一个用Linux Shell编写的可以为CentOS/RadHat/Fedora、Debian/Ubuntu/Raspbian VPS(VDS)或独立主机安装LNMP(Nginx/MySQL/PHP)、LNMPA(Nginx/MySQL/PHP/Apache)、LAMP(Apache/MySQL/PHP)生产环境的...
### Linux安装nginx/mysql/php/zabbix知识点详解 #### 环境搭建概述 本文将详细介绍如何在CentOS 7.4.1708上手动搭建一个包含Nginx、MySQL、PHP以及Zabbix的环境。这四个组件分别代表了Web服务器、数据库服务器、...
### Linux+Nginx+Mysql+Php安装教程 #### Linux 安装步骤详解 ##### 1. 开始安装过程 - **选择安装类型**:在安装初始界面选择 "Install or upgrade an existing system",系统将自动运行后续安装流程。 ##### 2...