简体   繁体   English

试图让弹性搜索运行

[英]trying to get elastic search to run

I want to get Elastic Search running in my Windows 7 environment, but being a complete NOOB in the Java world, I am not having success. 我想让Elastic Search在我的Windows 7环境中运行,但作为Java世界中的完整NOOB,我没有成功。

I downloaded and installed the latest version of Java and the latest JDK. 我下载并安装了最新版本的Java和最新的JDK。 I navigate to my .\\elasticsearch-0.18.6\\bin directory and run elasticsearch.bat. 我导航到我的。\\ elasticsearch-0.18.6 \\ bin目录并运行elasticsearch.bat。 I get ... 我明白了......

JAVA_HOME environment variable must be set!

Can someone enlighten me on the proper Java setup I need on my machine so everything is there that elastic search needs? 有人可以启发我在我的机器上需要正确的Java设置,所以一切都在弹性搜索需要吗?

Take a look at this link about setting the JAVA_HOME environment variable. 请查看有关设置JAVA_HOME环境变量的链接 This is just the first (of many) results from a Google search for "setting JAVA_HOME environment variable". 这只是Google搜索“设置JAVA_HOME环境变量”的第一个(众多)结果。

         **How to Set Java_Home Environment**

-->Go to the drive where your windows is installed (generally it is c:\\ drive) in "my computer". - >转到“我的电脑”中安装Windows的驱动器(通常是c:\\ drive)。

-->Now go to "program files" folder and then go inside "java" folder( for a 64 bit OS, if the "JAVA" folder is not found, consider looking in "Program Files(x86)" folder). - >现在转到“program files”文件夹,然后进入“java”文件夹(对于64位操作系统,如果找不到“JAVA”文件夹,请考虑查看“Program Files(x86)”文件夹)。 -->Look for a JAVA JDK installation folder. - >查找JAVA JDK安装文件夹。 If you don't have it, then download java jdk and install the latest. 如果您没有,请下载java jdk并安装最新版本。

-->Copy the path name(egC:\\Program Files\\Java\\jdk1.8.0_05) or just write it down on paper. - >复制路径名(例如C:\\ Program Files \\ Java \\ jdk1.8.0_05)或将其写在纸上。

-->Now go to your desktop; - >现在转到你的桌面; right click on "my computer" icon; 右键单击“我的电脑”图标; go to properties; 去物业; go to "Advanced System Settings"; 转到“高级系统设置”; click on "Environment Variables"; 点击“环境变量”; click "new" in "System Variables". 单击“系统变量”中的“新建”。

-->Now, in "Variable Name" write "JAVA_HOME" and in the "Variable Value" area, put in the path of the JDK installation folder(eg C:\\Program Files\\Java\\jdk1.8.0_05). - >现在,在“变量名称”中写入“JAVA_HOME”并在“变量值”区域中,放入JDK安装文件夹的路径(例如C:\\ Program Files \\ Java \\ jdk1.8.0_05)。

-->Click "OK" and again "OK" and "OK" again. - >单击“确定”,再次“确定”和“确定”。 Close any open windows( Not Necessarily). 关闭所有打开的窗口(不必要)。

                                      ALL DONE!!

Go ahead and run your ElasticSearch Batch file. 继续运行您的ElasticSearch Batch文件。

Set the JAVA_HOME Variable 设置JAVA_HOME变量

Once you have the JDK installation path: 获得JDK安装路径后:

Right-click the My Computer icon on your desktop and select Properties. 右键单击桌面上的“我的电脑”图标,然后选择“属性”。 Click the Advanced tab, then click the Environment Variables button. 单击“高级”选项卡,然后单击“环境变量”按钮。 Under System Variables, click New. 在“系统变量”下,单击“新建”。 Enter the variable name as JAVA_HOME. 输入变量名称JAVA_HOME。 Enter the variable value as the installation path for the Java Development Kit. 输入变量值作为Java Development Kit的安装路径。 Click OK. 单击确定。 Click Apply Changes. 单击应用更改。 You might need to restart Windows. 您可能需要重新启动Windows。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM