【PHP扩展】centos给PHP安装扩展
本文由点点点细雨原创,禁止转载。
Memcache[root@localhost ~]# yum install libmemcached[root@localhost ~]# yum install memcached[root@localhost ~]# memcached -m 512 -u nobody -vvslab class 1: chunk size 96 perslab 10922slab class 2: chunk size 120 perslab 8738slab class 3: chunk size 152 perslab 6898slab class 4: chunk size 192 perslab 5461slab class 5: chunk size 240 perslab 4369slab class 6: chunk size 304 perslab 3449slab class 7: chunk size 384 perslab 2730slab class 8: chunk size 480 perslab 2184slab class 9: chunk size 600 perslab 1747slab class 10: chunk size 752 perslab 1394[root@localhost ~]# chkconfig --add memcached[root@localhost ~]# pecl install memcachechecking for the location of zlib... configure: error: memcache support requires ZLIB. Use --with-zlib-dir=<dir> to specify prefix where ZLIB include and library are locatedERROR: `/var/tmp/memcache/configure --enable-memcache-session=yes' failed[root@localhost ~]# yum install zlib-devel[root@localhost ~]# pecl install memcacheBuild process completed successfullyInstalling '/usr/lib64/php/modules/memcache.so'install ok: channel://pecl.php.net/memcache-2.2.7configuration option "php_ini" is not set to php.ini locationYou should add "extension=memcache.so" to php.ini[root@localhost ~]# vi /etc/php.ini[root@localhost ~]# service php-fpm restart停止 php-fpm: [确定]正在启动 php-fpm: [确定]</dir>
APC
[root@localhost ~]# pecl install apc在包含自 /var/tmp/APC/apc.c:45 的文件中:/usr/include/php/ext/pcre/php_pcre.h:29:18: 错误:pcre.h:没有那个文件或目录In file included from /var/tmp/APC/apc.c:45:/usr/include/php/ext/pcre/php_pcre.h:37: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token/usr/include/php/ext/pcre/php_pcre.h:38: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token/usr/include/php/ext/pcre/php_pcre.h:44: 错误:expected specifier-qualifier-list before ‘pcre’[root@localhost ~]# yum install pcre-devel[root@localhost ~]# pecl install apcBuild process completed successfullyInstalling '/usr/lib64/php/modules/apc.so'Installing '/usr/include/php/ext/apc/apc_serializer.h'install ok: channel://pecl.php.net/APC-3.1.13configuration option "php_ini" is not set to php.ini locationYou should add "extension=apc.so" to php.ini[root@localhost ~]# vi /etc/php.ini[root@localhost ~]# service php-fpm restart停止 php-fpm: [确定]正在启动 php-fpm: [确定]
Mcrypt
[root@localhost ~]# rpm -ivh http://mirrors.sohu.com/fedora-epel/6/i386/epel-release-6-8.noarch.rpm[root@localhost ~]# yum updateComplete![root@localhost ~]# yum repolist已加载插件:fastestmirrorLoading mirror speeds from cached hostfile * base: mirrors.cug.edu.cn * epel: mirrors.zju.edu.cn * extras: mirrors.cug.edu.cn * updates: mirrors.cug.edu.cn仓库标识 仓库名称 状态base CentOS-6 - Base 6,518*epel Extra Packages for Enterprise Linux 6 - x86_64 11,188extras CentOS-6 - Extras 36nginx nginx repo 69updates CentOS-6 - Updates 530repolist: 18,341[root@localhost ~]# yum install php-mcrypt[root@localhost ~]# service php-fpm restart停止 php-fpm: [确定]正在启动 php-fpm: [确定]

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

记事本++7.3.1
好用且免费的代码编辑器

SublimeText3汉化版
中文版,非常好用

禅工作室 13.0.1
功能强大的PHP集成开发环境

Dreamweaver CS6
视觉化网页开发工具

SublimeText3 Mac版
神级代码编辑软件(SublimeText3)

Laravel使用其直观的闪存方法简化了处理临时会话数据。这非常适合在您的应用程序中显示简短的消息,警报或通知。 默认情况下,数据仅针对后续请求: $请求 -

PHP客户端URL(curl)扩展是开发人员的强大工具,可以与远程服务器和REST API无缝交互。通过利用Libcurl(备受尊敬的多协议文件传输库),PHP curl促进了有效的执行

Laravel 提供简洁的 HTTP 响应模拟语法,简化了 HTTP 交互测试。这种方法显着减少了代码冗余,同时使您的测试模拟更直观。 基本实现提供了多种响应类型快捷方式: use Illuminate\Support\Facades\Http; Http::fake([ 'google.com' => 'Hello World', 'github.com' => ['foo' => 'bar'], 'forge.laravel.com' =>

PHP日志记录对于监视和调试Web应用程序以及捕获关键事件,错误和运行时行为至关重要。它为系统性能提供了宝贵的见解,有助于识别问题并支持更快的故障排除

您是否想为客户最紧迫的问题提供实时的即时解决方案? 实时聊天使您可以与客户进行实时对话,并立即解决他们的问题。它允许您为您的自定义提供更快的服务

文章讨论了PHP 5.3中引入的PHP中的晚期静态结合(LSB),从而允许静态方法的运行时分辨率调用以获得更灵活的继承。 LSB的实用应用和潜在的触摸
