• Mac 安装Homebrew


    brew 全称Homebrew  是Mac OSX上的软件包管理工具,最近如要安装RabbitMq,但是官网强烈建议使用brew安装,所以便有了这篇简易随笔。

    1.安装命令

    ruby -e "$(curl --insecure -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    2.卸载命令

    输入密码后会开始下载homebrew,如果此时网速不稳定可能会出现错误提示:curl: (35) Server aborted the SSL handshake。

    此时需要执行卸载操作,输入如下命令进行卸载:

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

    卸载完成后再次尝试安装。

    3.安装完成后

    通过brew命令就可以测试brew安装完成了

    HEAD is now at e57da60 Merge pull request #3548 from sjackman/x11
    ==> Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
    ######################################################################## 100.0%
    ==> Pouring portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
    ==> Tapping homebrew/core
    Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
    remote: Counting objects: 4654, done.
    remote: Compressing objects: 100% (4432/4432), done.
    remote: Total 4654 (delta 36), reused 319 (delta 10), pack-reused 0
    Receiving objects: 100% (4654/4654), 3.84 MiB | 56.00 KiB/s, done.
    Resolving deltas: 100% (36/36), done.
    Checking connectivity... done.
    Tapped 4426 formulae (4,700 files, 12.0MB)
    ==> Cleaning up /Library/Caches/Homebrew...
    ==> Migrating /Library/Caches/Homebrew to /Users/zhangli/Library/Caches/Homebrew
    ==> Deleting /Library/Caches/Homebrew...
    Already up-to-date.
    ==> Installation successful!
    
    ==> Homebrew has enabled anonymous aggregate user behaviour analytics.
    Read the analytics documentation (and how to opt-out) here:
      https://docs.brew.sh/Analytics.html
    
    ==> Next steps:
    - Run `brew help` to get started
    - Further documentation: 
        https://docs.brew.sh
    MochushiledeMBP:~ zhangli$ brew
    Example usage:
      brew search [TEXT|/REGEX/]
      brew (info|home|options) [FORMULA...]
      brew install FORMULA...
      brew update
      brew upgrade [FORMULA...]
      brew uninstall FORMULA...
      brew list [FORMULA...]
    
    Troubleshooting:
      brew config
      brew doctor
      brew install -vd FORMULA
    
    Developers:
      brew create [URL [--no-fetch]]
      brew edit [FORMULA...]
      https://docs.brew.sh/Formula-Cookbook.html
    
    Further help:
      man brew
      brew help [COMMAND]
      brew home
  • 相关阅读:
    Docker 容器测试全探索
    Terminix:基于 GTK3 的平铺式 Linux 终端模拟器
    五条强化 SSH 安全的建议
    LXD 2.0 系列(二):安装与配置
    (转)分享一个技巧,利用批处理调用ruby脚本(可能你为路径苦恼)
    泛型介绍(接上一篇,具体的事例随后呈上)
    看到他我一下子就悟了-- 泛型(1)
    EXTJS4 Grid Filter 插件的使用 与后台数据解析------Extjs 查询筛选功能的实现
    Extjs4.2 rest 与webapi数据交互----顺便请教了程序员的路该怎么走
    Extjs 项目中常用的小技巧,也许你用得着(3)
  • 原文地址:https://www.cnblogs.com/fengyan20150508/p/8011180.html
Copyright © 2020-2023  润新知