@
lemonda 服务器:阿里云ECS 1核 1G
一、环境安装
yum install gcc gcc-c++ automake autoconf libtool make zlib zlib-devel pcre pcre-devel freetype freetype-devel libpng libpng-devel libevent libevent-devel libmcrypt libmcrypt-devel libjpeg libjpeg-devel jemalloc jemalloc-devel libxml2 libxml2-devel bzip2 bzip2-devel libcurl libcurl-devel glibc glibc-devel glib2 glib2-devel openssl openssl-devel
二、安装Nginx
cd /usr/local/src
wget
http://nginx.org/download/nginx-1.6.2.tar.gztar -zxvf nginx-1.6.2.tar.gz
cd nginx-1.6.2
./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_realip_module --with-http_sub_module --with-http_gzip_static_module --with-http_stub_status_module --with-pcre
三、启动Nginx
/usr/local/nginx/sbin/nginx
四、安装PHP
cd /usr/local/src
wget
http://cn2.php.net/distributions/php-5.4.38.tar.gztar -zxvf php-5.4.38.tar.gz
cd php-5.4.38
./configure --prefix=/usr/local/php --enable-fpm --enable-calendar --enable-ftp --with-zlib --enable-zip --with-xmlrpc --with-bz2 --with-curl --with-gd --enable-mbstring --with-iconv --with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr --enable-inline-optimization --enable-sockets --enable-wddx --enable-bcmath --enable-soap --disable-ipv6 --disable-debug --disable-maintainer-zts --disable-fileinfo --with-mysql --with-mysqli --with-pdo-mysql --enable-exif --enable-static --with-mcrypt --with-openssl --with-zlib-dir=/usr --enable-gd-native-ttf --with-pear