このチュートリアルでは、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サイト。