菜单

Nginx 1.5.2 + PHP 5.5.1 + MySQL 5.6.10 在 CentOS 下的编译安装

2014-12-20 - 优秀原创
by 张宴 ]

  最近配置了几台Web服务器,将安装笔记贴出来吧。没时间像以前那样,将文章写的那样系统了,请见谅。详细配置,可以看以前的旧文章:http://blog.zyan.cc/nginx_php_v6

1、安装Nginx:

mkdir -p /Data/tgz
cd /Data/tgz
yum install wget
yum install pcre
yum install openssl*
yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers make
yum -y install gd gd2 gd-devel gd2-devel
/usr/sbin/groupadd www
/usr/sbin/useradd -g www www
ulimit -SHn 65535
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.32.tar.gz
tar zxvf pcre-8.32.tar.gz
cd pcre-8.32
./configure –prefix=/Data/apps/pcre
make && make install
cd ../wget http://nginx.org/download/nginx-1.5.2.tar.gz
tar zxvf nginx-1.5.2.tar.gz
cd nginx-1.5.2
./configure –user=www –group=www –prefix=/Data/apps/nginx –with-http_stub_status_module –with-http_ssl_module –with-pcre=/Data/tgz/pcre-8.32 –with-http_realip_module –with-http_image_filter_module
make
make install
cd ../

转载请注明: 转载自—艾瑞可erik

本文链接地址: http://erik.xyz/578.html

页面: 1 2 3 4 5

标签:, ,

发表评论