AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 744024
Accepted
Peter M
Peter M
Asked: 2015-12-19 08:42:24 +0800 CST2015-12-19 08:42:24 +0800 CST 2015-12-19 08:42:24 +0800 CST

在 aws ec2 上需要最新版本的 libmemcached

  • 772

aws ec2 实例上可用的 yum 存储库只有旧版本的libmemcached:v 1.0.8。

谁能告诉我如何在 aws ec2 实例上安装更新的版本,如 1.0.18?

我可以添加哪个外部 yum 存储库来安装更新的版本,即使它不受支持?

EC2:yum 信息 libmemcached

Using username "ec2-user".
Authenticating with public key "imported-openssh-key"

       __|  __|_  )
       _|  (     /   Amazon Linux AMI
      ___|\___|___|

https://aws.amazon.com/amazon-linux-ami/2015.09-release-notes/
No packages needed for security; 1 packages available
Run "sudo yum update" to apply all updates.
[ec2-user@ip-xxx-xxx-xxx-xxx ~]$ yum info libmemcached
Loaded plugins: priorities, update-motd, upgrade-helper
Available Packages
Name        : libmemcached
Arch        : x86_64
Version     : 1.0.8
Release     : 2.6.amzn1
Size        : 246 k
Repo        : amzn-main/2015.09
Summary     : Client library and command line tools for memcached server
URL         : http://libmemcached.org/
License     : BSD
Description : libmemcached is a C/C++ client library and tools for the memcached server
            : (http://memcached.org/). It has been designed to be light on memory
            : usage, and provide full access to server side methods.
            :
            : It also implements several command line tools:
            :
            : memcapable  Checking a Memcached server capibilities and compatibility
            : memcat      Copy the value of a key to standard output
            : memcp       Copy data to a server
            : memdump     Dumping your server
            : memerror    Translate an error code to a string
            : memexist    Check for the existance of a key
            : memflush    Flush the contents of your servers
            : memparse    Parse an option string
            : memping     Test to see if a server is available.
            : memrm       Remove a key(s) from the server
            : memslap     Generate testing loads on a memcached cluster
            : memstat     Dump the stats of your servers to standard output
            : memtouch    Touches a key

EC2:猫 /etc/yum.repos.d/amzn-main.repo

[ec2-user@ip-xxx-xxx-xxx-xxx~]$ cat /etc/yum.repos.d/amzn-main.repo
[amzn-main]
name=amzn-main-Base
mirrorlist=http://repo.$awsregion.$awsdomain/$releasever/main/mirror.list
mirror_expire=300
metadata_expire=300
priority=10
failovermethod=priority
fastestmirror_enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-amazon-ga
enabled=1
retries=5
timeout=10
report_instanceid=yes

[amzn-main-debuginfo]
name=amzn-main-debuginfo
mirrorlist=http://repo.$awsregion.$awsdomain/$releasever/main/debuginfo/mirror.list
mirror_expire=300
metadata_expire=300
priority=10
failovermethod=priority
fastestmirror_enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-amazon-ga
enabled=0
retries=5
timeout=10
report_instanceid=yes

谢谢!

amazon-ec2
  • 2 2 个回答
  • 1060 Views

2 个回答

  • Voted
  1. Jukka
    2015-12-21T11:54:40+08:002015-12-21T11:54:40+08:00

    你可以试试 Remi 的 RPM repo。http://blog.remirepo.net/pages/Config-en

    请注意,它取决于 EPEL,并且您需要在安装软件包时显式启用它:

    yum --enablerepo=remi install XXX
    

    注意:不确定它是否与 Amazon Linux 兼容。如果没有,请考虑使用默认为 1.0.16 的 CentOS 7。

    • 1
  2. Best Answer
    Peter M
    2015-12-23T12:28:14+08:002015-12-23T12:28:14+08:00

    正如@Jukka 建议的那样,我仍在尝试使用外部回购来获得解决方案,但在我这样做之前,我能够使用以下内容进行编译:

    sudo -i 
    yum remove libmemcached.x86_64
    
    yum install bzr.x86_64
    yum install gcc-c++
    
    mkdir -p /tmp/memcached
    cd /tmp/memcached
    wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
    tar -zxvf libmemcached-1.0.18.tar.gz
    cd /tmp/memcached/
    bzr branch lp:libmemcached
    cd libmemcached
    ./bootstrap.sh autoreconf
    NOTE YOU GET THE FOLLOWING ERROR BUT CONTINUE ANYWAY: "./bootstrap.sh:315: An attempt was made to set an invalid VENDOR="
    cd ../libmemcached-1.0.18
    ./configure
    make
    make test
    make install
    
    • 1

相关问题

  • 权限被拒绝(公钥)。从本地 Ubuntu 到 Amazon EC2 服务器的 SSH

  • 管理员如何管理他们的 EC2 EBS 和快照?

  • 云有多大?[关闭]

  • EC2 映像启动

  • 如何将安全组添加到正在运行的 EC2 实例?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve