Nginx
nginx-1.9.12.tar.gz 编译安装
[root@localhostlocal]# tar zxvf nginx-1.9.12.tar.gz
[root@localhostlocal]# cd nginx-1.9.12
[root@localhostnginx-1.9.12]# yum install gcc openssl-devel pcre-develzlib-devel wget -y
[root@localhostnginx-1.9.12]#./configure --user=www --group=www --prefix=/usr/local/nginx--with-http_stub_status_module --with-http_ssl_module
[root@localhostnginx-1.9.12]# make && make install
[root@localhostnginx]# ./sbin/nginx 启动服务器
[root@localhostnginx-1.9.12]#ps –ef | grep nginx
php
php-5.6.19.tar.gz编译安装
[root@localhostlocal]#tar zxvf php-5.6.19.tar.gz
[root@localhostlocal]#cd php-5.6.19
[root@localhostphp-5.6.19]#yum install libxml2-devel openssl-devel bzip2-devel libmcrypt-devel–y
[root@localhostphp-5.6.19]#./configure --prefix=/usr/local/php--with-config-file-path=/etc --enable-fpm --enable-cli --enable-pcntl --enable-sockets --enable-opcache --enable-sysvsem--enable-sysvmsg --enable-sysvshm --enable-shmop --enable-zip--enable-ftp --disable-rpath --disable-debug--with-pcre-regex --with-mcrypt --enable-xml--with-openssl --with-imap-ssl --enable-soap--with-iconv --with-curl --disable-fileinfo --with-xmlrpc --with-mhash --with-gd --with-freetype-dir--with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr--disable-rpath --enable-bcmath --enable-inline-optimization--enable-mbregex --enable-mbstring --enable-gd-native-ttf --with-ldap-sasl --enable-pdo--with-pdo-mysql --with-mysql=/usr/local/mysql--with-mysqli=/usr/local/mysql/bin/mysql_config --with-pear --with-libdir=lib64