如何在 Ubuntu 20.04 LTS 上安装 OrientDB
admin
2023-07-31 08:31:39
0

OrientDB 是一个用 Java 编写的开源 NoSQL 数据库管理系统。它的主要特点之一是它不仅基于 NoSQL,而且速度非常快。它是最通用的 DBMS,在一个多模型产品中支持图形、文档、反应式、全文、地理空间和键值模型。

在 Ubuntu 20.04 LTS Focal Fossa 上安装 OrientDB

步骤 1. 首先,通过apt在终端中运行以下命令确保所有系统包都是最新的。

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

步骤 2. 在 Ubuntu 20.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/

然后,打开配置脚本,替换用户和数据库配置路径:

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/binserver.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. 访问 OrientDB Web 界面。

成功安装后,打开您的网络浏览器并转到,您应该会看到这一点。http://your-server-ip:2480

orientdb-dashboardorientdb-dashboard

感谢您使用本教程在 Ubuntu 20.04 LTS Focal Fossa 系统上安装 OrientDB 开源 NoSQL 数据库。如需更多帮助或有用信息,我们建议您查看OrientDB 官方网站。

相关内容

热门资讯

Windows 11 和 10... Windows 11/10 文件夹属性中缺少共享选项卡 – 已修复 1.检查共享选项卡是否可用 右键...
Radmin VPN Wind... Radmin VPN 是一款免费且用户友好的软件,旨在牢固地连接计算机以创建一个有凝聚力的虚拟专用网...
如何修复 Steam 内容文件... Steam 内容文件锁定是当您的 Steam 文件无法自行更新时出现的错误。解决此问题的最有效方法之...
事件 ID 7034:如何通过... 点击进入:ChatGPT工具插件导航大全 服务控制管理器 (SCM) 负责管理系统上运行的服务的活动...
在 Windows 11 中打... 什么是链路状态电源管理? 您可以在系统控制面板的电源选项中看到链接状态电源管理。它是 PCI Exp...
Hive OS LOLMine... 目前不清退的交易所推荐: 1、全球第二大交易所OKX欧意 国区邀请链接: https://www.m...
在 iCloud 上关闭“查找... 如果您是 Apple 的长期用户,您肯定会遇到过 Find My 应用程序,它本机安装在 iPhon...
balenaEtcher烧录后... balenaEtcher烧录后u盘或者内存卡无法识别不能使用的解决方法想要恢复原来的方法,使用win...
farols1.1.501.0... faro ls 1.1.501.0(64bit)可以卸载,是一款无需连接外部PC机或笔记本计算机即可...
iPhone 屏幕上有亮绿色斑... iPhone 是市场上最稳定的智能手机之一,这主要归功于专为它们设计的 iOS 操作系统。然而,他们...