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

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

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

この記事は、少なくともLinuxの基本的な知識があり、シェルの使用方法を知っていること、そして最も重要なこととして、サイトを独自のVPSでホストしていることを前提としています。インストールは非常に簡単で、ルートアカウントで実行されていますが、そうでない場合は、'sudoを追加する必要があります。 ‘ルート権限を取得するコマンドに。 Ubuntu 16.04(xenial xerus)サーバーへのOrientDBのインストールを段階的に説明します。

Ubuntu16.04LTSにOrientDBをインストールする

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

sudo apt-get update
sudo apt-get upgrade

ステップ2.依存関係のインストール。

まず、OrientDBの依存関係をインストールしましょう:

apt-get install oracle-java8-set-default git ant

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

次のコマンドを実行して、OrientDBの最新バージョンをダウンロードします。この記事を書いている時点ではバージョン2.2.22です:

wget -O orientdb-community-2.2.22.tar.gz http://orientdb.com/download.php?file=orientdb-community-2.2.22.tar.gz&os=linux

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

tar -zxf orientdb-community-2.2.22.tar.gz
mv orientdb-community-2.2.22 /opt/orientdb

ステップ4.OrientDBサーバーを起動します。

/opt/orientdbに変更します フォルダを作成し、OrientDBデータベースサーバーを起動します:

cd /opt/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.   |
+---------------------------------------------------------------+

ステップ5.OrientDBデーモンを構成します。

ここでOrientDBを実行するシステムユーザーを作成します。ここでは、OrientDBユーザーを想定しています:

useradd –r 0riendb –s  /sbin/nologin
chown –R orientdb:orientdb /opt/orientdb
nano /opt/orientdb/bin/orientdb.sh

構成で以下の行を見つけて、次のように変更します。

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

構成が完了したら、構成サーバーファイルの権限を変更します。

chmod 640 /opt/orientdb/config/orientdb-server-config.xml

ステップ6.SystemdサービスOrientDBをインストールします。

まず、ファイルを/etc/system/servicesにコピーする必要がありました。 フォルダ:

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

OrientDBサービスファイルを編集します:

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

[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.sh

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

systemctl daemon-reload

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

systemctl start orientdb
systemctl enable orientdb

おめでとうございます!OrientDBが正常にインストールされました。このチュートリアルを使用してUbuntu 16.04(xenial xerus)サーバーにOrientDBをインストールしていただきありがとうございます。追加のヘルプや役立つ情報については、OrientDBの公式Webサイトを確認することをお勧めします。 。


Ubuntu
  1. UbuntuにOdooをインストールする方法

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

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

  1. UbuntuにMavenをインストールする方法

  2. UbuntuにWineをインストールする方法

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

  1. UbuntuにPuTTYをインストールする方法

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

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