- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我试图在Mac机器上将elasticsearch
从6.8.4降级到5.6。但是以某种方式我弄乱了6.8.4的现有安装,现在既无法修复当前安装的版本,也无法安装5.6
细节:
我已经在系统上正确安装了6.8.4,并且能够成功访问http://localhost:9200/端口并查看版本信息和所有其他详细信息。但是由于依赖性,我不得不将版本降级到5.6
我遵循了本指南https://gist.github.com/govindpatel/0660b33a343b807664972b53c3b12ca0,并通过删除plist
条目和其他详细信息来弄乱6.8.4的安装。现在,当我尝试通过键入$ elasticsearch
来启动Elasticsearch服务时,我得到:-bash: elasticsearch: command not found
和$ brew service restart elasticsearch
给了我Error: Unknown command: service
但是,当我执行以下命令时,仍然可以看到6.8.4:
$ brew info elasticsearch
elasticsearch: stable 6.8.4, HEAD
Distributed search & analytics engine
https://www.elastic.co/products/elasticsearch
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/elasticsearch.rb
==> Requirements
Required: java = 1.8 ✔
==> Options
--HEAD
Install HEAD version
==> Caveats
Data: /usr/local/var/lib/elasticsearch/
Logs: /usr/local/var/log/elasticsearch/elasticsearch_Puneet.log
Plugins: /usr/local/var/elasticsearch/plugins/
Config: /usr/local/etc/elasticsearch/
To have launchd start elasticsearch now and restart at login:
brew services start elasticsearch
Or, if you don't want/need a background service you can just run:
elasticsearch
==> Analytics
install: 8,690 (30 days), 23,748 (90 days), 122,267 (365 days)
install_on_request: 8,233 (30 days), 22,565 (90 days), 114,157 (365 days)
build_error: 0 (30 days)
brew install elasticsearch@5.6
,并将
PATH
设置为
~/.bash_profile
的第一位,但是没有运气! :(
$ launchctl list | grep elasticsearch
,我正在获取:
- 1 homebrew.mxcl.elasticsearch@5.6
,但我当前未安装此文件(已附加o / p)-
$ brew uninstall elasticsearch@5.6
〜>
Error: No such keg: /usr/local/Cellar/elasticsearch@5.6
brew install elasticsearch
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
No changes to formulae.
==> Downloading
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss-6.8.4.tar.gz
Already downloaded: /Library/Caches/Homebrew/downloads/elasticsearch-oss-6.8.4.tar.gz
==> Caveats
Data: /usr/local/var/lib/elasticsearch/
Logs: /usr/local/var/log/elasticsearch/elasticsearch_Puneet.log
Plugins: /usr/local/var/elasticsearch/plugins/
Config: /usr/local/etc/elasticsearch/
To have launchd start elasticsearch now and restart at login:
brew services start elasticsearch
Or, if you don't want/need a background service you can just run:
elasticsearch
==> Summary
🍺 /usr/local/Cellar/elasticsearch/6.8.4: 133 files, 103.2MB, built in 6 seconds
$ brew services start elasticsearch
〜>
==> Successfully started
elasticsearch
(label: homebrew.mxcl.elasticsearch)
。现在,当我尝试访问端口:
http://localhost:9200时,它正在工作(虽然从0开始安装,但已修复了该问题!)
{
"name" : "DwQRyf7",
"cluster_name" : "elasticsearch_Puneet",
"cluster_uuid" : "hLAu9onQSiuQHOpm_e9IKw",
"version" : {
"number" : "6.8.4",
"build_flavor" : "oss",
"build_type" : "tar",
"build_hash" : "bca0c8d",
"build_date" : "2019-10-16T06:19:49.319352Z",
"build_snapshot" : false,
"lucene_version" : "7.7.2",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}
brew search elasticsearch
检查了其他版本,并得到5.6。然后我用
brew install elasticsearch@5.6
安装了5.6
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
No changes to formulae.
==> Downloading https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.16.tar.gz
Already downloaded: /Library/Caches/Homebrew/downloads/3d7cc028f605699065bd403b0a2383db8d7413c570df57e26fc87a735126c96c--elasticsearch-5.6.16.tar.gz
==> Caveats
Data: /usr/local/var/elasticsearch/elasticsearch_Puneet/
Logs: /usr/local/var/log/elasticsearch/elasticsearch_Puneet.log
Plugins: /usr/local/opt/elasticsearch@5.6/libexec/plugins/
Config: /usr/local/etc/elasticsearch/
plugin script: /usr/local/opt/elasticsearch@5.6/libexec/bin/elasticsearch-plugin
elasticsearch@5.6 is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.
If you need to have elasticsearch@5.6 first in your PATH run:
echo 'export PATH="/usr/local/opt/elasticsearch@5.6/bin:$PATH"' >> ~/.bash_profile
To have launchd start elasticsearch@5.6 now and restart at login:
brew services start elasticsearch@5.6
Or, if you don't want/need a background service you can just run:
/usr/local/opt/elasticsearch@5.6/bin/elasticsearch
==> Summary
🍺 /usr/local/Cellar/elasticsearch@5.6/5.6.16: 106 files, 36.0MB, built in 6 seconds
$PATH
。现在,当我尝试使用
brew switch elasticsearch 5.6
切换elasticsearch版本时,我得到了:
Error: elasticsearch does not have a version "5.6" in the Cellar.
elasticsearch installed versions: 6.8.4
最佳答案
经过一段时间的故障排除后,我似乎找到了解决方案。
为了在开发机器上维护elasticsearch的多个版本,您需要执行以下操作:
假设我已经安装了6.8.4,并且我还想要另一个版本。为了同时维护这两个版本,请首先输入以下命令检查系统(mac)的所有版本:brew search elasticsearch
,并且我的系统支持ES的3个版本:
$ brew install elasticsearch@2.4
# After installation type:
$ brew services stop elasticsearch
# above command will stop elasticsearch (lastest stable) service
# add 2.4 to $PATH
$ echo 'export PATH="/usr/local/opt/elasticsearch@2.4/bin:$PATH"' >> ~/.bash_profile
# start the service of 2.4
$ brew services start elasticsearch@2.4
# check for the service/installation
$ launchctl list | grep elasticsearch
# above command should show you a port
$ brew services stop elasticsearch
# remove entry from $PATH variable
$ brew services start elasticsearch
brew switch elasticsearch [VERSION]
不起作用
关于elasticsearch - 从/usr/local/var卸载elasticsearch并在MacOSX上安装另一个版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58813042/
我正在使用 C++11 线程构建一个应用程序,但我似乎无法让它在 MacOSX 10.9 上与 clang++ 一起工作。这是我能找到的导致问题的最简单示例: #include #include
我无法弄清楚为什么我的二进制文件无法加载。它是由MATLAB加载的dylib(MEX文件),并链接到位于不同位置的许多dylib。 MATLAB告诉我它无法加载MEX文件,但是我无法弄清它找不到哪个依
我正在尝试让我的程序自动关联要由它打开的某些文件扩展名,但我不确定如何在 MacOSX 中执行此操作。我不是在问如何将程序与 GUI 中的文件扩展名相关联,我希望能够将它编程到我的程序中。 最佳答案
我的应用程序通过我的 mac 上的 nginx 在本地主机端口 80 上运行了很长一段时间。最近我做了一些软件更新,并试图在不同的端口上运行其他应用程序,现在我无法在 localhost:80 上运行
我想用默认的邮件客户端创建一个新邮件并自动附加一个文件。 创建新邮件到 dummy@somewhere.com与主题 foo和 body bar ,我可以执行以下操作: open "mailto:du
我正在使用 MacOS Mojave 版本 10.14.16,我正在尝试安装 http://www.rpl2.net/index.php (一种使用反向波兰表示法的编程语言,可在某些 HP 计算器(如
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 7年前关闭。 Improve thi
我正在尝试为 OS X 构建一个基本的动态库,它只显示一个用于打开文件的对话框。我的代码看起来像这样: NSOpenPanel * dlg = [NSOpenPanel openPanel]; ...
通过应用程序 Utilities/Console.app,我可以看到应用程序的控制台输出。 有没有办法从另一个应用程序访问此日志? 更具体地说:我正在为我的应用程序编写一个崩溃处理程序,我希望它将控制
我最近使用页面 https://github.com/ingenuitas/simplecv 中的 osX-Lion 设置说明安装了 SimpleCV 然后我在终端中输入 python,当我尝试以下操
问题 MacOSX 附带的字典存储在 /Library/Dictionaries 中。我想解析它们以编程方式获取字典结果(通过终端、AppleScript 或 Automator)。这些词典是 Mac
我正在尝试创建一个静态库并将其链接到 MacOS X(几个版本)上: 文件 foo.c : char foo[111]; 文件 bar.c : #include extern char foo[];
我有一个名为 youtube-dl 的命令..但不知道它安装在哪里..我可以从 shell 运行它..我如何找到它的安装位置? youtube-dl 什么也没说.. 最佳答案 Bash 有一个命令可以
我有 macosx,我为 mail.app 创建了一个 html 签名,但是当我发送电子邮件时,有人使用 Windows 属性 font-family 选择它时不起作用。 当我从 MAC 发送到 MA
几个 clGet*Info OpenCL 函数允许 (a) 获取所需信息的大小,或 (b) 信息本身。这在某些情况下是必需的,例如获取设备的名称: char* name; size_t size_of
我在使用 python3 在我的 macosx10.7 上设置 pycharm ide 时遇到了问题。 我已经搜索了所有可用的资源并尝试了数百种方法,此时我必须承认自己的无能并通过此 channel
Environment.OSVersion.Platform 返回一个 PlatformID ( Info: MSDN PlatformID )。 此 PlatformID 的值也可以是“Unix”或
我正在尝试在 Maverick 10.9 的命令行上编译一个项目。该项目在 Linux 上完美编译。显然,MacOSX 上的 ctime 似乎存在问题。错误是 $ make Compiling src
在 Netbeans 使用的 Java 桌面应用程序模板中,菜单栏是使用 JMenuBar 和 JMenuItems 创建的。 我怎样才能让那个栏显示在顶部,菜单栏在 MacOSX 中显示,而不是像在
我正在制作一个自定义窗口(带有 NSBorderlessWindowMask 的 NSWindow)到目前为止,我已经能够处理拖动、调整大小、cmd+单击,甚至在允许的情况下通过双击进行小型化(请参阅
我是一名优秀的程序员,十分优秀!