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的环境
Linux nginx mysql php LNMP安装配置详细步骤
纯手工搭建Linux Nginx MySQL PHP WEB服务器
主要采用阿里云服务器Centos7 版本: linux 安装nginx+php+mysql nginx整合php、mysql,设置防火墙,mysql设置远程访问和权限,Navicat for MySQL远程连接linux mysql
linux nginx mysql php 安装脚本,包括资源下载和安装
Linux下mysql+PHP+nginx的搭建,写的很详细,教你怎么在LINUX环境下,搭建mysql+PHP+nginx。
Linux Nginx Mysql PHP安装
linux + apache(nginx) + mysql + php 配置 详解
Linux 2.6平台下Nginx-PHP-Mysql安装手册
Linux+Nginx+Mysql+Php安装教程
Linux下Nginx+PHP+MySQL配置(图) 已经说得很详细了!
linux + nginx + mysql + php 配置流程
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(CentOS5)下mysql+PHP+nginx的搭建教程
LNMP(linux+nginx+mysql+php)服务器环境搭配
Linux下mysql+PHP+nginx的搭建,这是结合了网上各种安装方法后最终整理所得,目前我linux机器上已经配置成功并且项目运行正常了,希望能对大家有用。另外,相关的安装包在我上传的另外的资源里,如果需要可以去下载
linux+nginx+php+mysql环境配置指南.pdf
LINUX搭建PHP5.4+Nginx1.3.9+Mysql5.5.21
基于CentOS Linux release 7.4.1708手把手搭建环境nginx/mysql/php/zabbix