日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
在Ubuntu 16.04中安裝 OrientDB

OrientDB是一個(gè)開源NoSQL數(shù)據(jù)庫管理系統(tǒng)。 NoSQL數(shù)據(jù)庫提供了一種用于存儲(chǔ)和檢索引用除表式數(shù)據(jù)之外的數(shù)據(jù)(例如文檔數(shù)據(jù)或圖形數(shù)據(jù))的NO關(guān)系或非關(guān)系數(shù)據(jù)的機(jī)制。OrientDB也屬于NoSQL系列。 OrientDB是第二代分布式數(shù)據(jù)庫,具有靈活性的文檔在一個(gè)產(chǎn)品與Apache 2許可證的開放源代碼。

專注于為中小企業(yè)提供成都網(wǎng)站建設(shè)、網(wǎng)站設(shè)計(jì)服務(wù),電腦端+手機(jī)端+微信端的三站合一,更高效的管理,為中小企業(yè)臨湘免費(fèi)做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動(dòng)了1000多家企業(yè)的穩(wěn)健成長(zhǎng),幫助中小企業(yè)通過網(wǎng)站建設(shè)實(shí)現(xiàn)規(guī)模擴(kuò)充和轉(zhuǎn)變。

下載 OrientDB

我們可以從最新的服務(wù)端上通過輸入下面的指令來下載最新版本的 OrientDB。

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

這里下載的是一個(gè)包含預(yù)編譯二進(jìn)制文件的壓縮包,所以我們可以使用 tar 指令來操作解壓它:

$?tar?-zxf?orientdb-community-2.2.22.tar.gz

將從中提取出來的文件夾整體移動(dòng)到 /opt:

#?mv?orientdb-community-2.2.22?/opt/orientdb

啟動(dòng) OrientDB 服務(wù)器

啟動(dòng) OrientDB 服務(wù)器需要運(yùn)行 orientdb/bin/ 目錄下的?shell?腳本:

#?/opt/orientdb/bin/server.sh

如果你是第一次開啟 OrientDB 服務(wù)器,安裝程序還會(huì)顯示一些提示信息,以及提醒你設(shè)置 OrientDB 的 root 用戶密碼:

+---------------------------------------------------------------+
|?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:?********

在完成這些后,OrientDB 數(shù)據(jù)庫服務(wù)器將成功啟動(dòng):

INFO?OrientDB?Server?is?active?v2.2.22?(build?fb2b7d321ea8a5a5b18a82237049804aace9e3de).?[OServer]

從現(xiàn)在開始,我們需要用第二個(gè)終端來與 OrientDB 服務(wù)器進(jìn)行交互。

若要強(qiáng)制停止 OrientDB 執(zhí)行 Ctrl+C 即可。

配置守護(hù)進(jìn)程

此時(shí),我們可以認(rèn)為 OrientDB 僅僅是一串 shell?腳本,可以用編輯器打開 /opt/orientdb/bin/orientdb.sh:

#?$EDITOR?/opt/orientdb/bin/orientdb.sh

在它的首段,我們可以看到:

#!/bin/sh#?OrientDB?service?script##?Copyright?(c)?OrientDB?LTD?(http://orientdb.com/)#?chkconfig:?2345?20?80#?description:?OrientDb?init?script#?processname:?orientdb.sh#?You?have?to?SET?the?OrientDB?installation?directory?here
ORIENTDB_DIR="YOUR_ORIENTDB_INSTALLATION_PATH"
ORIENTDB_USER="USER_YOU_WANT_ORIENTDB_RUN_WITH"

我們需要配置ORIENTDB_DIR 以及 ORIENTDB_USER.

然后創(chuàng)建一個(gè)用戶,例如我們創(chuàng)建一個(gè)名為 orientdb 的用戶,我們需要輸入下面的指令:

#?useradd?-r?orientdb?-s?/sbin/nologin

orientdb 就是我們?cè)?ORIENTDB_USER 處輸入的用戶。

再更改 /opt/orientdb 目錄的所有權(quán):

#?chown?-R?orientdb:orientdb?/opt/orientdb

改變服務(wù)器配置文件的權(quán)限:

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

下載系統(tǒng)守護(hù)進(jìn)程服務(wù)

OrientDB 的壓縮包包含一個(gè)服務(wù)文件 /opt/orientdb/bin/orientdb.service。我們將其復(fù)制到 /etc/systemd/system 文件夾下:

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

編輯該服務(wù)文件:

#?$EDITOR?/etc/systemd/system/orientdb.service

其中 [service] 內(nèi)容塊看起來應(yīng)該是這樣的:

[Service]
User=ORIENTDB_USER
Group=ORIENTDB_GROUP
ExecStart=$ORIENTDB_HOME/bin/server.sh

將其改成如下樣式:

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

保存并退出。

重新加載系統(tǒng)守護(hù)進(jìn)程:

#?systemctl?daemon-reload

啟動(dòng) OrientDB 并使其開機(jī)自啟動(dòng):

#?systemctl?start?orientdb#?systemctl?enable?orientdb

確認(rèn) OrientDB 的狀態(tài):

#?systemctl?status?orientdb

上述指令應(yīng)該會(huì)輸出:

●?orientdb.service?-?OrientDB?Server
Loaded:?loaded?(/etc/systemd/system/orientdb.service;?disabled;?vendor?preset:?enabled)
Active:?active?(running)?...

流程就是這樣了!OrientDB 社區(qū)版成功安裝并且正確運(yùn)行在我們的服務(wù)器上了。

總結(jié)

在這個(gè)指導(dǎo)中,我們看到了一些關(guān)系型數(shù)據(jù)庫管理系統(tǒng)(RDBMS)以及非關(guān)系型數(shù)據(jù)庫管理系統(tǒng)(NoSQL DBMS)的簡(jiǎn)單對(duì)照。我們也安裝 OrientDB 社區(qū)版的服務(wù)器端并完成了其基礎(chǔ)的配置。


本文題目:在Ubuntu 16.04中安裝 OrientDB
標(biāo)題URL:http://m.5511xx.com/article/dpccjdc.html