安装nginx1.5.6+php5.5.5+mysql5.6

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

groupadd www

useradd -g www www

ulimit -SHn 65535


tar zxvf pcre-8.30.tar.gz
cd pcre-8.30

./configure –prefix=/usr/local/pcre
make && make install


tar zxvf nginx-1.5.6.tar.gz

cd nginx-1.5.6/

./configure –user=www –group=www –prefix=/usr/local/nginx –with-http_stub_status_module –with-http_ssl_module –with-pcre=/app/src/pcre-8.32 –with-http_realip_module –with-http_image_filter_module

如果提示:./configure: error: the HTTP image filter module requires the GD library.说明gd-devel没有装,使用yum装就好了。

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注


*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>