![]() Name=Elasticsearch repository for 2.x packages Next, open a blank text file in your favorite text editor (be sure to run the editor as root, so that you have the necessary save permissions) and fill it with these lines: To do this, first import the Elasticsearch GPG key with: (If only Java installation were equally simple.) The next step, installing Elasticsearch, is easier, since we can do it all using yum. Yum -y localinstall jdk-8u73-linux-圆4.rpmĪll set. The next step is to install this file by running yum (as root) like so: Whether you use curl or wget to download Java, you should end up with a file in /tmp called jdk-8u77-linux-圆4.rpm. Wget -no-cookies -no-check-certificate -header "Cookie: gpw_e24=http%3A%2F%2Foraclelicense=accept-securebackup-cookie" "" Lest I start a war between curl and wget fans, I suppose I should tell you how to download Java using wget, too. To do this, we'll use curl to download the latest Java RPM (Java 8 revision 77) from Oracle's site, then install it via yum, with these two commands:Ĭurl -insecure -header "Cookie: gpw_e24=http%3A%2F%2Foraclelicense=accept-securebackup-cookie" -L "" > jdk-8u77-linux-圆4.rpm As noted above, we'll install Oracle Java, although you could use OpenJDK if you like. Our first task is to install Java, since Elasticsearch and Logstash require Java to run. Let's dive into the installation process. If you want to use a different version of Java, check the Elasticsearch support matrix to make sure it will work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |