BREW

Mac OSX 平台安装 MongoDB

人走茶凉 提交于 2019-12-05 22:46:39
MongoDB 可视化软件: https://robomongo.org/ 提供了 OSX 平台上 64 位的安装包,你可以在官网下载安装包。 下载地址: https://www.mongodb.com/download-center#community 从 MongoDB 3.0 版本开始只支持 OS X 10.7 (Lion) 版本及更新版本的系统。 接下来我们使用 curl 命令来下载安装: # 进入 /usr/local cd /usr/local # 下载 sudo curl -O https://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-4.0.9.tgz # 解压 sudo tar -zxvf mongodb-osx-ssl-x86_64-4.0.9.tgz # 重命名为 mongodb 目录 sudo mv mongodb-osx-x86_64-4.0.9/ mongodb 安装完成后,我们可以把 MongoDB 的二进制命令文件目录(安装目录/bin)添加到 PATH 路径中: export PATH=/usr/local/mongodb/bin:$PATH 使用 brew 安装 此外你还可以使用 OSX 的 brew 来安装 mongodb: sudo brew install mongodb 如果要安装支持

解决brew报错:Another active Homebrew update process is already in progress

左心房为你撑大大i 提交于 2019-12-05 20:02:19
在mac终端下执行:brew install glew 结果报错: Error: Another active Homebrew update process is already in progress. Please wait for it to finish or terminate it to continue. 解决方法:rm -rf /usr/local/var/homebrew/locks 来源: https://www.cnblogs.com/peng-lan/p/11943995.html

brew services

走远了吗. 提交于 2019-12-05 20:01:20
mysql brew services start mysql /Users/huoyinghui/workspaces/py2/lib/python2.7/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>. """) 来源: https://my.oschina.net/tplinuxhyh/blog/3134458

brew install rabbit

北慕城南 提交于 2019-12-05 19:54:26
install rabbit ➜ ~ brew upgrade rabbitmq ==> Upgrading 1 outdated package: rabbitmq 3.7.9 -> 3.8.1 ==> Upgrading rabbitmq ==> Downloading https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.1/rabbitmq-server-generic-unix-3.8.1.tar.xz ==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/924551/875d4580-fc54-11e9-8083-d8ed395f5441?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Am ######################################################################## 100.0% ==> /usr/bin/unzip -qq -j /usr/local/Cellar/rabbitmq/3.8.1/plugins/rabbitmq_management-3.8.1.ez rabbitmq

brew install geos

江枫思渺然 提交于 2019-12-05 19:18:09
geo3.8 导致py2中 geodjango不可用 django 报错,不能解析版本 File "/Users/huoyinghui/gitlab/ange/venv/lib/python2.7/site-packages/django/contrib/gis/geos/__init__.py", line 18, in <module> HAS_GEOS = geos_version_info()['version'] >= '3.3.0' File "/Users/huoyinghui/gitlab/ange/venv/lib/python2.7/site-packages/django/contrib/gis/geos/libgeos.py", line 191, in geos_version_info raise GEOSException('Could not parse version info string "%s"' % ver) django.contrib.gis.geos.error.GEOSException: Could not parse version info string "3.8.0-CAPI-1.13.1 " 参考 安装geos ➜ ~ brew unlink geos Unlinking /usr/local/Cellar/geos/3

Mac上Homebrew的使用 (Homebrew 使 OS X 更完整)

*爱你&永不变心* 提交于 2019-12-05 18:00:34
0 Homebrew是啥? “Homebrew installs the stuff you need that Apple didn’t.——Homebrew 使 OS X 更完整” 。 Homebrew的官网 [1] (多语言版本)简单明了地介绍了如何安装和使用这个工具,并提供了自己的Wiki。 1 安装Homebrew brew的安装很简单,使用一条ruby命令即可,Mac系统上已经默认安装了ruby。 gerryyang @mba :bin$ ruby --version ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13] 关于安装brew的详细说明可以参考其github上的wiki说明 [2] : " Installation The suggested and easiest way to install Homebrew is on the homepage . We don’t duplicate it here because it is asecurity risk to list it on a user-editable wiki. The standard script installs Homebrew to/usr/localso that you don’t

macos 上npm的安装

给你一囗甜甜゛ 提交于 2019-12-05 15:54:12
1.检查 brew -v 是否安装了 homebrew 这个macOS 缺失的软件包的管理器。如果安装,跳转到第3步,否则跳转到第二步; 2.安装 homebrew 。安装跳转到 官网指导 。等待安装好之后,输入 brew -v ,如果出现版本号说明已经安装好: 3.homebrew update 更新 4.执行命令行 brew install node 安装node。执行 npm -v 即可看到安装好的npm版本 来源: https://www.cnblogs.com/YanJieMao/p/11932955.html

Brew 安装PHP软件

折月煮酒 提交于 2019-12-05 15:13:01
Brew 安装PHP软件 搜索php软件,方便安装自己想要的版本 brew search php 安装 brew install php@7.2 安装时间,根据网络环境不同,请耐心等待。 ... 安装完成后,注意查看信息,如: # 这里是 Apache 环境需要修改的信息 To enable PHP in Apache add the following to httpd.conf and restart Apache: LoadModule php7_module /usr/local/opt/php@7.2/lib/httpd/modules/libphp7.so <FilesMatch \.php$> SetHandler application/x-httpd-php </FilesMatch> Finally, check DirectoryIndex includes index.php DirectoryIndex index.php index.html The php.ini and php-fpm.ini file can be found in: /usr/local/etc/php/7.2/ php@7.2 is keg-only, which means it was not symlinked into /usr/local, because this

opencv4nodejs 在 mac 上的安装

放肆的年华 提交于 2019-12-05 14:47:20
一直报错 RPC, 通过以下办法解决的: brew install git //更新git版本 git config --global http.postBuffer 524288000 //增大git缓存 brew unlink tesseract // 如果没有tesseract可以忽略这个命令 然后执行 npm -g install opencv4nodejs ,要等很长时间才能安装成功。 安装成功后,brew link tesseract 来源: https://www.cnblogs.com/mlllily/p/11928990.html

mac brew安装redis

穿精又带淫゛_ 提交于 2019-12-05 08:52:08
使用Homebrew安装redis可以减少大量的安装和配置的工作量。 安装命令 brew install redis 安装完成后的提示信息 To have launchd start redis at login: ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents Then to load redis now: launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist Or, if you don’t want/need launchctl, you can just run: redis-server /usr/local/etc/redis.conf 开机启动redis命令 $ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents 使用launchctl启动redis server $ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist 使用配置文件启动redis server $ redis-server /usr/local/etc/redis.conf 停止redis server的自启动 $