惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Engineering at Meta
Engineering at Meta
博客园_首页
H
Help Net Security
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
B
Blog
I
InfoQ
SecWiki News
SecWiki News
T
Tailwind CSS Blog
Spread Privacy
Spread Privacy
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Vulnerabilities – Threatpost
N
Netflix TechBlog - Medium
P
Palo Alto Networks Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Vercel News
Vercel News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
K
Kaspersky official blog
M
MIT News - Artificial intelligence
S
Schneier on Security
T
Threat Research - Cisco Blogs
F
Fortinet All Blogs
Cyberwarzone
Cyberwarzone
Scott Helme
Scott Helme
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
The Cloudflare Blog
Recent Announcements
Recent Announcements
Security Latest
Security Latest
G
GRAHAM CLULEY
IT之家
IT之家
Y
Y Combinator Blog
The Last Watchdog
The Last Watchdog
腾讯CDC
Google DeepMind News
Google DeepMind News
V
V2EX
S
Securelist
TaoSecurity Blog
TaoSecurity Blog
B
Blog RSS Feed
S
SegmentFault 最新的问题
博客园 - 叶小钗
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
Project Zero
Project Zero
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
F
Full Disclosure

博客园 - nasdaqhe

Frida 使用 Android https 抓包 云效流水线部署ack Android 解包重签名打包 centos7 docker 安装及配置 CentOS 6 升级 curl Mac 下编译安装 php-5.6 cmd下使用telnet连接到memcached服务器操作 Lucence.Net 2.9.3 日期范围搜索 SQL语句优化一例 row_number not in or flickr head中用到的标签 - nasdaqhe - 博客园 判断中文是否UTF8编码 MSSQL备忘 新浪微博产品图 (Vincent.H手笔) MindManage HTML5学习资料整理 ubuntu备忘 const 与 readonly ubuntu 10.04 安装 oracle11g VS2010 .NET 4学习资料整理
ubuntu+php5-fpm 下安装 memcached PHP扩展
nasdaqhe · 2011-05-15 · via 博客园 - nasdaqhe

 

1.获取编译工具下面要用来编译源代码,如果已经安装可跳过这步

  [bash] sudo apt-get install build-essential [/bash]

 2.安装PEAR and memcached

  [bash] sudo apt-get install php-pear memcached [/bash]

 3.编译libmemcached

  到 https://launchpad.net/libmemcached/+download 下载最新的libmemcached源代码,解压编译安装步骤如下:

  Extract the files with your preferred method, or type:

  [bash] tar -xzf libmemcached-0.37.tar.gz [/bash]

  Move into the extracted directory:

  [bash] cd libmemcached-0.37/ [/bash]

  Configure the package.

  [bash] ./configure –with-memcached [/bash]

  Make.

  [bash] make [/bash]

  Make install. Note this probably will require sudo rights.

  [bash] sudo make install [/bash]

 4.PECL

  [bash] sudo pecl install memcached [/bash]

  When this process completed, you should see something like this:

  [bash]

  Build process completed successfully

  Installing ‘/usr/lib/php5/20060613+lfs/memcached.so’

  install ok: channel://pecl.php.net/memcached-1.0.0

  Extension memcached enabled in php.ini

  [/bash]

 5.修改PHP.INI添加扩展

  [bash] sudo vi /etc/php5/fpm/php.ini [/bash] 

  在php.ini 中添加“extension = memcached.so”

  重启PHP-FPM服务

  [bash] sudo service php5-fpm restart [/bash]