centos6.5_x86_64 下 nginx 1.10.1、php7 安装记录
2016-07-23 23:30
806 查看
#centos6.5_x86_64 下 nginx 1.10.1、php7 安装记录 #np7install.sh #安装依赖包: yum install -y openssl-devel pcre-devel libxml2-devel libxslt-devel gd-devel geoip-devel zlib-devel gzip-devel curl-devel libwebp-devel libmcrypt-devel mysql nginx php5 php-fpm #升级开始: #安装nginx1.10.1源码包编译安装: wget http://nginx.org/download/nginx-1.10.1.tar.gz tar xzf nginx-1.10.1.tar.gz cd nginx-1.10.1 ./configure --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/data/log/nginx/error.log --http-log-path=/data/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx --user=nginx --group=nginx --with-file-aio --with-ipv6 --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_image_filter_module --with-http_geoip_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_stub_status_module --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-ld-opt=-Wl,-E && make && make install #安装php7.0.8源码包: wget -O php7.0.8.tar.gz http://cn2.php.net/get/php-7.0.8.tar.gz/from/this/mirror tar xzf php7.0.8.tar.gz cd php-7.0.8 ./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-mcrypt --with-mysqli --with-pdo-mysql --with-gd --with-iconv --with-zlib --enable-xml --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --enable-mbregex --enable-fpm --enable-mbstring --enable-gd-native-ttf --with-openssl --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --enable-session --with-curl --with-jpeg-dir=/usr/lib64 --with-png-dir=/usr/lib64 --with-webp-dir=/usr/lib64 --with-freetype-dir=/usr/lib64 && make && make install #安装php7 memcache扩展 wget http://o97qqi41i.bkt.clouddn.com/pecl-memcache-php7.tar.gz tar xzf pecl-memcache-php7.tar.gz cd pecl-memcache-php7 phpize ./configure && make && make install echo 'extension=memcache.so' >> /etc/php.ini #安装 mongo-php-driver,不得不多说两句,php7的mongodb扩展真是够恶心的。类名长的要命,而且文档相当不完善。很多使用方法基本是猜着用。 wget http://o97qqi41i.bkt.clouddn.com/mongo.tar.gz tar xzf mongo.tar.gz cd mongo-php-driver phpize ./configure && make && make install echo 'extension=mongodb.so' >> /etc/php.ini #启动服务 /etc/init.d/php-fpm start /etc/init.d/nginx start
相关文章推荐
- 分享微信开发Html5轻游戏中的几个坑
- nginx代理指定目录
- 如何在 Fedora 上安装 MongoDB 服务器
- 访问Nginx发生SSL connection error的一种情况
- PHP添加yaf xhprof mongodb 同理
- mongodb安装
- Nginx+Naxsi部署专业级Web应用防火墙
- CentOS 6.2实战部署Nginx+MySQL+PHP
- 如何在 Ubuntu 上安装 MongoDB
- nginx中http核心模块的配置指令2
- nginx中http核心模块的配置指令3
- nginx中http核心模块的配置指令4
- nginx中http的fastcgi模块的配置指令1
- Nginx 学习笔记(一)
- 信息安全聚合 Sec-News 的重构之路
- php7 扩展类的写法[2]
- php7 类的方法传参[3]
- php7 读取php.ini[4]