GNU/Linux >> Linux の 問題 >  >> Cent OS

CentOS7にOrientDBをインストールする方法

このチュートリアルでは、CentOS 7にOrientDBをインストールする方法を示します。知らなかった方のために、OrientDBにはマルチモデルのNoSQLデータベースがあります。 Javaベースのアプリケーションであり、マルチマスターレプリケーションと簡単な水平スケーリングをサポートする任意のオペレーティングシステムで実行できるグラフ。

この記事は、少なくともLinuxの基本的な知識があり、シェルの使用方法を知っていること、そして最も重要なこととして、サイトを独自のVPSでホストしていることを前提としています。インストールは非常に簡単で、ルートアカウントで実行されていますが、そうでない場合は、'sudoを追加する必要があります。 ルート権限を取得するコマンドに‘。 CentOS7サーバーにOrientDBのオープンソースNoSQLデータベース管理システムを段階的にインストールする方法を紹介します。

CentOS7にOrientDBをインストールする

ステップ1.まず、システムが最新であることを確認することから始めましょう。

yum clean all
yum -y update

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

まず、OrientDBを実行するための新しいユーザーを作成します:

adduser orientdb -d /opt/orientdb

これで、次のコマンドを実行してOrientDBバイナリアーカイブをダウンロードできます。

cd /opt/orientdb/
wget https://orientdb.com/download.php?file=orientdb-community-importers-2.2.29.tar.gz -O /opt/orientdb/orientdb.tar.gz

パッケージがダウンロードされたら、解凍したフォルダを解凍して/opt/orientdbに移動します。 :

tar -xf orientdb.tar.gz
mv orientdb-community*/* .

OrientDBユーザーを抽出されたファイルの所有者にします:

chown -R orientdb:orientdb /opt/orientdb

手順3.OrientDBサーバーを起動します。

OrientDBは、サーバーを起動するためのインストーラースクリプトを提供します。OrientDBユーザーに切り替えます:

su - orientdb
sudo bin/server.sh

OrientDBは、次のようなメッセージでルートパスワードの入力を求める必要があります。

+---------------------------------------------------------------+
|                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.   |
+---------------------------------------------------------------+

手順4.OrientDBデーモンを構成します。

新しいsystemdを作成します OrientDBの開始と停止を簡単に管理するサービス:

nano /etc/systemd/system/orientdb.service

次のコンテンツを貼り付けます:

[Unit]
Description=OrientDB service
After=network.target

[Service]
Type=simple
ExecStart=/opt/orientdb/bin/server.sh
User=orientdb
Group=orientdb
Restart=always
RestartSec=9
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=orientdb

[Install]
WantedBy=multi-user.target

systemdをリロードします デーモンサービス:

systemctl daemon-reload

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

systemctl start orientdb
systemctl enable orientdb

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


Cent OS
  1. CentOS7にPHP7、7.2、7.3をインストールする方法

  2. CentOS7にJava11および12をインストールする方法

  3. CentOS7にWine4.0をインストールする方法

  1. CentOS7にVim8.2をインストールする方法

  2. CentOS7にVirtualBoxをインストールする方法

  3. CentOS8にGitをインストールする方法

  1. CentOS8にDockerをインストールする方法

  2. Centos8にJava8および11をインストールする方法

  3. CentOS8にMySQLをインストールする方法