【问题标题】:GUI installer for memcached on Mac?Mac 上 memcached 的 GUI 安装程序?
【发布时间】:2012-08-19 08:48:48
【问题描述】:

我正在寻找一种在运行 Lion 的 Mac 上安装 memcached 的方法,但我不知道如何使用终端。是否有一个易于使用的 GUI 包来安装它?

【问题讨论】:

    标签: php terminal memcached osx-lion installation


    【解决方案1】:

    安装 服务器没有简单的GUI。您可以使用 OSX 包管理器,例如 HomeBrewMacPorts,但仍需要使用终端。我建议从源代码安装所有内容,因为这是对底层 UNIX 系统如何工作的很好的介绍。

    安装槽包管理器

    家酿

    $ brew install memcached
    

    Macports

    $ sudo port install memcached
    

    从源安装

    1。从 AppStore 安装 XCode

    XCode 将安装基本库和应用程序以将源代码编译成可执行应用程序。 XCode 在 Mac 随附的安装光盘中提供,但现在可以在 AppStore 中免费下载。根据您的 XCode 版本,将需要额外的设置。

    2。安装 autconfig、automake、libevent,然后安装 memcached

    Memcached 需要一些依赖项;其中,由列出的包管理器自动处理。每个依赖项和 memcached 都遵循相同的终端命令来安装:./configuremakemake install。有了经验,这变得非常容易。这是一个例子。

    # Download source
    $ curl -O http://memcached.googlecode.com/files/memcached-1.4.14.tar.gz
    
    # Extract files
    $ tar zvxf memcached-1.4.14.tar.gz
    
    # Change working directory to newly extracted files
    $ cd memcached-1.4.14
    
    # Configure source to your local machine
    $ ./configure
    
    # Compile the application
    $ make
    
    # Install application on your system
    $ sudo make install
    

    在这里,您可以找到所需的库等

    【讨论】:

      猜你喜欢
      • 2015-06-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-15
      • 2018-11-01
      • 1970-01-01
      相关资源
      最近更新 更多