yum install epel-* -y
yum install -y wget unzip gcc gcc-c++ make zlib zlib-devel pcre pcre-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
tar zxf libiconv-1.14.tar.gz
cd libiconv-1.14
./configure --prefix=/usr
make
make install
cd .. wget http://php.net/distributions/php-7.0.0.tar.bz2
tar -jxvf php-7.0..tar.bz2
cd php-7.0.
#./configure --prefix=/usr/local/php70 --sysconfdir=/usr/local/php70/etc --with-config-file-scan-dir=/usr/local/php70/etc --enable-fpm --with-fpm-user=webadm --with-fpm-group=webadm --enable-mbstring --enable-sockets --enable-pcntl --enable-pdo --enable-mysqlnd --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-sysvshm --enable-shmop --with-jpeg-dir=/usr --with-freetype-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-gd --with-openssl --enable-opcache --enable-zip --enable-bcmath --enable-pcntl --enable-ftp --with-curl
./configure --prefix=/usr/local/php70 --sysconfdir=/usr/local/php70/etc --with-config-file-scan-dir=/usr/local/php70/etc --enable-fpm --with-fpm-user=webadm --with-fpm-group=webadm --enable-mbstring --enable-sockets --enable-pcntl --enable-pdo --enable-mysqlnd --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-sysvshm --enable-shmop --with-jpeg-dir=/usr --with-freetype-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-iconv=/usr/lib --with-gd --with-openssl --enable-opcache=no --enable-zip --enable-bcmath --enable-pcntl --enable-ftp --with-curl
make
make install
cp php.ini-production /usr/local/php70/etc/php.ini
cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
cp sapi/fpm/php-fpm.conf /usr/local/php70/etc/php-fpm.conf
cp sapi/fpm/www.conf /usr/local/php70/etc/php-fpm.d/www.conf
cd .. sed -i 's#short_open_tag = Off#short_open_tag = On#g' /usr/local/php70/etc/php.ini
chmod +x /etc/init.d/php-fpm wget http://nginx.org/download/nginx-1.9.7.tar.gz
tar -zxvf nginx-1.9..tar.gz
cd nginx-1.9.
./configure --user=webadm --group=webadm --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module
make;make install
cd .. vi /usr/local/nginx/conf/nginx.conf
...
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

最新文章

  1. Cucumber命令行接口
  2. soapui中文操作手册(七)----Web Service Sample Project
  3. 互联网产品团队中Web前端工程师的重要性
  4. [android界面]android中src和background区别——前景与背景
  5. 查找(AVL平衡二叉树)
  6. python中functools.wraps装饰器的作用
  7. 改善 ASP.NET MVC 代码库的 5 点建议
  8. 【树状数组】CSU 1811 Tree Intersection (2016湖南省第十二届大学生计算机程序设计竞赛)
  9. libguestfs-tools 虚拟机磁盘管理工具
  10. 项目自动构建工具对比(Maven、Gradle、Ant)
  11. Servlet中forward和redirect的区别(转)
  12. 再谈前端HTML模板技术
  13. 【RL-TCPnet网络教程】第1章 当前主流的小型嵌入式网络协议栈
  14. 图解Raft之领导者选举
  15. HDU 5919 Sequence II(主席树)题解
  16. 8款非常不错的.Net反编译利器
  17. properties文件读写工具类
  18. python 字符串组成MySql 命令时,字符串含有单引号或者双引号导致出错解决办法
  19. SQL Server2012 配置管理器无法打开
  20. 【D】分布式系统的CAP理论

热门文章

  1. 面试cookie
  2. 完全靠代码生成的ios版hello,world
  3. [BZOJ 1036] [ZJOI2008] 树的统计Count 【Link Cut Tree】
  4. C语言常用数学函数及其用法
  5. C API向MySQL插入批量数据的快速方法——关于mysql_autocommit
  6. java中的日期格式
  7. 使用Git将本地代码上传到GitHub
  8. poj2954
  9. HDU-4952 Number Transformation
  10. 新型Web劫持技术