Maud  Rosenbaum

Maud Rosenbaum

1597333800

How To Install Elasticsearch on CentOS/RHEL 8 – TecAdmin

Elasticsearch is flexible and powerful open-source, distributed real-time search and analytics engine. Using a simple set of APIs provides the ability for full-text search. Elastic search is freely available under the Apache 2 license, which provides the most flexibility.

This tutorial will help you to setup Elasticsearch single node cluster on CentOS 8 and RedHat 8 systems.

Prerequisites

Java is the primary requirement for installing Elasticsearch on any system. You can check the installed version of Java by executing the following command. If it returns an error, install Java on your system using this tutorial.

sudo dnf install java-11-openjdk

After installation, check the Java version:

java -version

openjdk version "11.0.8" 2020-07-14 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.8+10-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.8+10-LTS, mixed mode, sharing)

Step 1 – Configure Yum Repository

The first step is to configure Elasticsearch package repository on your system. Run the following command to install GPG key for the Elasticsearch rpm packages.

sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch

Next, create a yum repository configuration file for the Elasticsearch. Edit /etc/yum.repos.d/elasticsearch.repo file in your favorite text editor:

sudo vi /etc/yum.repos.d/elasticsearch.repo

Add below content:

[Elasticsearch-7]
name=Elasticsearch repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/7.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md

Step 2 – Installing Elasticsearch

Your system is prepared for the Elasticsearch installation. Run the following commands to update DNF cache and install the Elasticsearch rpm packages on your system.

sudo dnf update -y
sudo dnf install elasticsearch -y

Step 3 – Configure Elasticsearch

After successful installation edit Elasticsearch configuration file “/etc/elasticsearch/elasticsearch.yml” and set the network.host to localhost. You can also change it to the system LAP IP address to make it accessible over the network.

vim /etc/elasticsearch/elasticsearch.yml

Set the following values to customize your Elasticsearch environment.

  cluster.name: TecAdmin-ES-Cluster
  node.name: node-1
  path.data: /var/lib/elasticsearch
  network.host: 127.0.0.1

Save file and close.

After making configuration changes, let’s enable the Elasticsearch service and start it.

sudo systemctl enable elasticsearch
sudo systemctl start elasticsearch

Your Elasticsearch server is up and running now. To view status of the service, run below command:

sudo systemctl status elasticsearch

Output:

● elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2020-07-23 11:08:38 UTC; 46s ago
     Docs: https://www.elastic.co
 Main PID: 13303 (java)
    Tasks: 63 (limit: 11491)
   Memory: 1.2G
   CGroup: /system.slice/elasticsearch.service
           ├─13303 /usr/share/elasticsearch/jdk/bin/java -Xshare:auto -Des.networkaddress.cache.ttl=60 -Des.networkaddres>
           └─13458 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/bin/controller

Jul 23 11:08:07 centos8 systemd[1]: Starting Elasticsearch...
Jul 23 11:08:38 centos8 systemd[1]: Started Elasticsearch.

Step 4 – Test Elasticsearch

The Elasticsearch has been successfully installed and running on your CentOS 8 or RHEL 8 system.

Run the following command to view the Elasticsearch server configuration and version details:

curl -X GET "localhost:9200/?pretty"

You will see the results like below:

{
  "name" : "centos8",
  "cluster_name" : "TecAdmin-ES-Cluster",
  "cluster_uuid" : "a0OZk1c1TEmPTlA24uT4zQ",
  "version" : {
    "number" : "7.8.0",
    "build_flavor" : "default",
    "build_type" : "rpm",
    "build_hash" : "757314695644ea9a1dc2fecd26d1a43856725e65",
    "build_date" : "2020-06-14T19:35:50.234439Z",
    "build_snapshot" : false,
    "lucene_version" : "8.5.1",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

#linux tutorials #cluster #elasticsearch #linux

What is GEEK

Buddha Community

How To Install Elasticsearch on CentOS/RHEL 8 – TecAdmin
Chet  Lubowitz

Chet Lubowitz

1595855400

How to install PgAdmin 4 on CentOS 8

pgAdmin is the leading graphical Open Source management, development and administration tool for PostgreSQLpgAdmin4 is a rewrite of the popular pgAdmin3 management tool for the PostgreSQL database.

In this tutorial, we are going to show you how to install pgAdmin4 in Server Mode as a web application using httpd and Wsgi module on CentOS 8.

Install pgAdmin4 on CentOS 8

**01-**To install pgAdmin4 on CentOS 8 we need to add an external repository, so execute the following command:

$ sudo rpm -i https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/pgadmin4-redhat-repo-1-1.noarch.rpm

02- After we add the pgAdmin4 repository, let’s use the below command to install pgAdmin4 as server mode:

$ sudo dnf install pgadmin4-web

03- Before proceeding with the configuration of pgAdmin4, we need to install policycoreutils tool:

$ dnf install policycoreutils-python-utils  

04- Once we done installing pgAdmin4, we need to configure the pgAdmin4 by setting up the initial pgAdmin user account

#databases #linux #ubuntu #install pgadmin4 #install pgadmin4 centos #pgadmin #pgadmin 4 install #pgadmin 4 install centos #pgadmin4 #pgadmin4 install centos

I am Developer

1602471199

Laravel 8 CKEditor Tutorial Example

Laravel 8 CKEditor tutorial example. In this tutorial, you will learn how to install and use CKEditor in laravel 8.

Basically, there is two way to install and use CKEditor in laravel 8 app. But in this tutorial, we will show you a simple example of how to install CKEditor in laravel 8 app.

How to install CKEditor In Laravel 8 App

  • Step 1: Install Laravel 8 App
  • Step 2: Connecting App to Database
  • Step 3: Create Post Model & Migration
  • Step 4: Add Fillable Property in Model
  • Step 5: Make Route
  • Step 6: Create Controller
  • Step 7: Create Blade Views File
  • Step 8: Start Development Server

https://www.tutsmake.com/how-to-install-ckeditor-in-laravel-8/

#how to install ckeditor in laravel 8 #laravel 8 install and use ckeditor example #how to install and use ckeditor in laravel? #laravel 8 integrate ckeditor with example #how to install & integrate ckeditor (wysiwyg) in laravel 8

How to Install PHP 8 on CentOS/RHEL 8/7

PHP is a popular open-source server-side scripting language that is integral in developing dynamic webpages. PHP 8.0 is finally out and was released on November 26th, 2020. It promises lots of improvements and optimizations which are set to streamline how developers write and interact with PHP code.

In this guide, you will learn how to install PHP 8.0 on CentOS 8/7 and RHEL 8/7.

Step 1: Enable EPEL and Remi Repository on CentOS/RHEL

Right off the bat, you need to enable the EPEL repository on your system. EPEL, short for Extra Packages for Enterprise Linux, is an effort from the Fedora team that provides a set of additional packages that are not present by default on RHEL & CentOS.

Step 2: Install PHP 8 on CentOS/RHEL

Step 3: Verify PHP 8.0 on CentOS/RHEL

Step 3: Install PHP 8.0 Extensions in CentOS/RHEL

#centos #php #redhat #centos tips #php tips #rhel tips

How to Install qBittorrent on CentOS 8/RHEL 8 Desktop & Server

This tutorial will be showing you how to install qBittorrent on CentOS 8/RHEL 8**. **qBittorrent is a free, open-source, fast and lightweight P2P BitTorrent client written in C++ / Qt, available for Linux, FreeBSD, MacOS and Windows. It aims to provide an open-source alternative to uTorrent, which is a very popular BitTorrent client among Windows users.

qBittorrent Features

  • A uTorrent-like interface
  • Supports main BitTorrent extensions like DHT, peer exchange, full encryption (Vuze compatible)
  • It provides a good integrated search engine
  • It also comes with UPnP port forwarding / NAT-PMP
  • You can also remotely control it via the qBittorrent Web interface.
  • Torrent creation tool
  • And many more

Install qBittorrent on CentOS 8/RHEL 8 Desktop

qBittorrent is included in the EPEL software repository. You can easily install it on CentOS 8/RHEL 8 desktop by running the following command in a terminal window.

sudo dnf install epel-release
sudo dnf install qbittorrent qt5-qtsvg

Once installed, you can start qBittorrent from the application menu.

#centos #redhat #centos desktop #centos server #linux

Mike  Kozey

Mike Kozey

1621934567

How To Install PHP 8.0 On CentOS 8 / RHEL 8 | ITzGeek

PHP is an open-source programming language that is embedded in HTML. It is mainly used for creating dynamic web sites such as blogs, e-commerce sites, etc. Rasmus Lerdorf created it in 1994.

CentOS 8 /  RHEL 8 comes with PHP v7.2 by default.

In this post, we will see how to install PHP 8.0 on  CentOS 8 /  RHEL 8.

Add Remi Repository

Remi, a third-party repository that offers multiple PHP versions (8.0 / 7.4 / 7.3 / 7.2) for Red Hat Enterprise Linux.

Remi repository requires  EPEL repository be enabled on the system. So, install the latest EPEL repository auto-configuration rpm on the system to enable the EPEL repository.

dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

Then, install the Remi repository auto-configuration package using the below command.

dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm

#centos/redhat #post #centos 8 #php