腾讯云环境配置之PHP5.6.3 + redis扩展 稳定版

时间:2015-01-18 01:41来源:linux.it.net.cn 作者:IT
 

#由于上文装过yum groupinstall “Development tools”这里就不装了,直接装缺少的

 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#下载并且解压缩php5.6.3源码
cd ~
http://cn2.php.net/distributions/php-5.6.3.tar.gz
tar zxvf php-5.6.3.tar.gz -C /usr/local/src
#安装缺少的依赖
yum install libxml2-devel gd-devel libmcrypt-devel libcurl-devel openssl-devel
#编译
./configure --prefix=/usr/local/php56 --with-config-file-path=/usr/local/php56/etc --with-mysql --with-gd --with-openssl --with-fpm-user=nginx --with-fpm-group=nginx --with-zlib  --with-mhash --with-pcre-regex --with-iconv --with-curl --with-pear --with-pdo-mysql --enable-fileinfo --enable-mbstring --enable-mysqlnd --enable-opcache --enable-sockets --enable-pcntl --with-libxml-dir --enable-bcmath --enable-dom --enable-fpm --enable-mysqlnd-compression-support --enable-ftp --without-pdo-sqlite --without-sqlite3 --with-gd --with-jpeg-dir --with-freetype-dir --enable-shared
#安装
make
make install
#做两个软连接
ln -s /usr/local/php56/bin/php /usr/local/bin/php
ln -s /usr/local/php56/bin/phpize /usr/local/bin/phpize
#复制配置文件
cp /usr/local/src/php-5.6.3/php.ini-production /usr/local/php56/etc/php.ini
cp /usr/local/php56/etc/php-fpm.conf.default /usr/local/php56/etc/php-fpm.conf
#复制fpm启动管理脚本
cp /usr/local/src/php-5.6.3/sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
chmod +x /etc/init.d/php-fpm
#修改php-fpm.conf配置参数
vi /usr/local/php56/etc/php-fpm.conf
去掉pid和error_log前面的分号
 
#加入开机启动
# chkconfig --add php-fpm
# chkconfig php-fpm on
 
service php-fpm start

安装redis扩展

 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cd ~
wget http://pecl.php.net/get/redis-2.2.5.tgz
tar xvf redis-2.2.5.tgz -C /usr/local/src
cd /usr/local/src/redis-2.2.5
#开始编译安装
phpize
./configure --with-php-config=/usr/local/php56/bin/php-config
make && make install
#把redis.so库添加到php.ini配置文件中
vi /usr/local/php56/etc/php.ini
extension=/usr/local/php56/lib/php/extensions/no-debug-non-zts-20131226/redis.so
#重启fpm
/etc/init.d/php-fpm restart
#检测扩展是否安装成功
php -m | grep redis
redis
#也可以使用phpinfo();函数的输出页面来看.

腾讯云环境配置之PHP5.6.3 + redis扩展 稳定版的更多相关文章

  1. Windows环境下为PHP5.6安装redis扩展和memcached扩展

    一.php安装redis扩展   1.使用phpinfo()函数查看PHP的版本信息,这会决定扩展文件版本       2.根据PHP版本号,编译器版本号和CPU架构, 选择php_redis-2.2 ...

  2. 二、Uniapp+vue+腾讯IM+腾讯音视频开发仿微信的IM聊天APP,支持各类消息收发,音视频通话,附vue实现源码(已开源)-腾讯云后台配置TXIM

    项目文章索引 1.项目引言 2.腾讯云后台配置TXIM 3.配置项目并实现IM登录 4.会话好友列表的实现 5.聊天输入框的实现 6.聊天界面容器的实现 7.聊天消息项的实现 8.聊天输入框扩展面板的 ...

  3. 【环境配置】php5.5 + apache2.4 安装配置【转+修改】

    转自 http://my.oschina.net/lilinzero/blog/180509 [转+修改][环境配置]php5.5.10 + apache2.4 安装配置 根据自己的实践所得,稍微修改 ...

  4. 腾讯云极速配置NodeJS+LNMP运行环境

    版权声明:本文由吴逸翔原创文章,转载请注明出处: 文章原文链接:https://www.qcloud.com/community/article/848754001487150669 来源:腾云阁 h ...

  5. 阿里云域名+ 腾讯云服务器 配置nginx

    1,实现目标,通过外网访问域名,能够通过nginx 实现反向代理,以及负载均衡 2,准备工具 阿里云注册的域名: aiyuesheng.com 腾讯云领取的云服务器:centos 7 xshell 6 ...

  6. 腾讯云nginx配置PHP

    腾讯云nginx配置文件 #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log ...

  7. [转载]在Windows下为PHP5.6安装redis扩展和memcached扩展

    一.php安装redis扩展   1.使用phpinfo()函数查看PHP的版本信息,这会决定扩展文件版本       2.根据PHP版本号,编译器版本号和CPU架构, 选择php_redis-2.2 ...

  8. 在Windows下为PHP5.6安装redis扩展和memcached扩展

    一.php安装redis扩展   1.使用phpinfo()函数查看PHP的版本信息,这会决定扩展文件版本       2.根据PHP版本号,编译器版本号和CPU架构, 选择php_redis-2.2 ...

  9. windows安装redis并为php5.4添加redis扩展

    第一步 安装包下载 首先下载php5.4对应版本的php_igbinary.dll,php_redis.dll扩展.(php7以后可不需要php_igbinary.dl这个文件了) 链接:https: ...

随机推荐

  1. mono中显示debug信息(filename/lineno)

    一直发现 mono 的 traceback 没有 fliename.lineno,很奇怪.研究了下,原来编译和运行时要加参数的. dmcs -debug /r:xunit.dll /t:library ...

  2. mysql 插入/更新数据

    mysql 插入/更新数据 INSERT 语句 1.一次性列出全部字段的值,例如: INSERT INTO student VALUES('Chenqi','M', 29); INSERT INTO ...

  3. yii2 小技巧

    参考地址:http://www.cnblogs.com/sandea/p/5714830.html 1.不通过日志获取AR执行的原生SQL语句和打印变量数据 $query = User::find() ...

  4. [Js/Jquery]立即执行匿名函数

    摘要 有时使用js写了一个匿名方法,需要立即执行.因为没有方法名称,无法在其它地方调用. 匿名函数 匿名函数,可以认为是没有方法名称的函数. js中如果想执行匿名函数,结构如下: (function ...

  5. ubuntu系统无法访问无法磁盘最佳解决办法

    出现如下错误: Error mounting /dev/sda8 at /media/fzh/System: Command-line `mount -t "ntfs" -o &q ...

  6. thinkphp-许愿墙-2

    在数组中,也可以使用函数,如: $data = array( 'username'=> I('username','', 'htmlspecailchars'), 'content'=> ...

  7. 你可能不知道的Google Chrome命令行参数

    概述:              关于Google Chrome命令行参数(英文叫Google Chrome Command line switches),是Chrome为了实现实验性功能.方便调试. ...

  8. [译]git log

    git log git log命令用来显示提交的快照. 能列出来你项目的历史, 能过滤和搜索你指定的一些修改. git status能让你检查工作目录和stage区的状态, git log只提供被co ...

  9. 基于iSCSI的SQL Server 2012群集测试(四)--模拟群集故障转移

    6.模拟群集故障转移 6.1 模拟手动故障转移(1+1) 模拟手动故障转移的目的有以下几点: 测试群集是否能正常故障转移 测试修改端口是否能同步到备节点 测试禁用full-text和Browser服务 ...

  10. javacomm64位用不了,可以使用RXTXcomm for x64

    安装完后把导入包名改一下就行了! 附上读串口代码: /* * @(#)SimpleRead.java 1.12 98/06/25 SMI * * Copyright (c) 1998 Sun Micr ...