GNU/Linux >> Linux の 問題 >  >> Ubuntu

Ubuntu20.04LTSにOrientDBをインストールする方法

このチュートリアルでは、Ubuntu 20.04 LTSにOrientDBをインストールする方法を紹介します。知らなかった方のために、OrientDBはJavaで記述されたオープンソースのNoSQLデータベース管理システムです。その主な機能の1つは、NoSQLベースであるだけでなく、非常に高速であることです。これは、グラフ、ドキュメント、リアクティブ、フルテキスト、地理空間、およびキー値モデルを1つのマルチモデルでサポートする最も用途の広いDBMSです。製品。

この記事は、少なくともLinuxの基本的な知識があり、シェルの使用方法を知っていること、そして最も重要なこととして、サイトを独自のVPSでホストしていることを前提としています。インストールは非常に簡単で、ルートアカウントで実行されていますが、そうでない場合は、'sudoを追加する必要があります。 ‘ルート権限を取得するコマンドに。 Ubuntu 20.04(Focal Fossa)にOrientDBオープンソースNoSQLデータベースを段階的にインストールする方法を紹介します。 Ubuntu 18.04、16.04、およびLinuxMintなどの他のDebianベースのディストリビューションでも同じ手順に従うことができます。

Ubuntu 20.04 LTSFocalFossaにOrientDBをインストール

手順1.まず、次のaptを実行して、すべてのシステムパッケージが最新であることを確認します。 ターミナルのコマンド。

sudo apt update
sudo apt upgrade
sudo apt install curl apt-transport-https

ステップ2.Ubuntu20.04にOrientDBをインストールします。

最新のコミュニティバージョンをダウンロードします。公式サイトからOrientDBにアクセスしてください:

wget https://s3.us-east-2.amazonaws.com/orientdb3/releases/3.0.4/orientdb-3.0.4.tar.gz
tar xvf orientdb-3.0.4.tar.gz
>

次に、抽出されたセットアップを/opt/oriendbに移動します ディレクトリ:

sudo mv orientdb-3.0.4 /opt/orientdb

次に、OrientDBを管理するシステムユーザーを追加します:

sudo useradd -r orientdb -s /sbin/nologin
sudo chown -R orientdb:orientdb /opt/orientdb/

次に、構成スクリプトを開き、ユーザーとDBの構成パスを置き換えます。

sudo nano /opt/orientdb/bin/orientdb.sh

次の行を追加します:

ORIENTDB_DIR="/opt/orientdb"
ORIENTDB_USER="orientdb"

サンプル出力:

# chkconfig: 2345 20 80
# description: OrientDb init script
# processname: orientdb.sh

# You have to SET the OrientDB installation directory here
ORIENTDB_DIR="/opt/orientdb"
ORIENTDB_USER="orientdb"
LOG_DIR="../log"

次に、/opt/orientdb/binに移動します パスしてserver.shを実行します スクリプト:

cd /opt/orientdb/bin
sudo ./server.sh

出力:

+---------------------------------------------------------------+
| WARNING: FIRST RUN CONFIGURATION |
+---------------------------------------------------------------+
| This is the first time the server is running. Please type a |
| password of your choice for the 'root' user or leave it blank |
| to auto-generate it. |
| |
| To avoid this message set the environment variable or JVM |
| setting ORIENTDB_ROOT_PASSWORD to the root password to use. |
+---------------------------------------------------------------+

Root password [BLANK=auto generate it]: *********
Please confirm the root password: *********

ステップ3.OrientDBサービスを作成します。

まず、OrientDBサービスファイルを/etc/systemd/system/にコピーします ディレクトリ:

sudo cp /opt/orientdb/bin/orientdb.service /etc/systemd/system/

次に、OrientDBサービスファイルを編集して、以下を追加します。

sudo nano /etc/systemd/system/orientdb.service

次の行を追加します:

#
# right (c) OrientDB LTD (http://http://orientdb.com/)
#

[Unit]
Description=OrientDB Server
After=network.target
After=syslog.target

[Install]
WantedBy=multi-user.target

[Service]
User=orientdb
Group=orientdb
ExecStart=/opt/orientdb/bin/server.shCopy

次に、OrientDBを起動し、起動時に起動できるようにします:

sudo systemctl daemon-reload
sudo systemctl start orientdb.service
sudo systemctl status orientdb.service

手順4.OrientDBWebインターフェイスにアクセスします。

正常にインストールされたら、Webブラウザーを開き、http://your-server-ip:2480にアクセスします。 これが表示されるはずです。

おめでとうございます!OrientDBが正常にインストールされました。このチュートリアルを使用してUbuntu 20.04 LTS Focal FossaシステムにOrientDBオープンソースNoSQLデータベースをインストールしていただきありがとうございます。追加のヘルプや役立つ情報については、 OrientDBの公式ウェブサイト。


Ubuntu
  1. Ubuntu16.04LTSにGrafanaをインストールする方法

  2. Ubuntu18.04LTSにRをインストールする方法

  3. Ubuntu20.04LTSにRをインストールする方法

  1. Ubuntu16.04LTSにOctoberCMSをインストールする方法

  2. Ubuntu16.04LTSにAbanteCartをインストールする方法

  3. Ubuntu18.04LTSにHubzillaをインストールする方法

  1. Ubuntu18.04LTSにERPNextをインストールする方法

  2. Ubuntu18.04LTSにNextcloudをインストールする方法

  3. Ubuntu20.04LTSにWebminをインストールする方法