In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to install OrientDB on the Linux system. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
About OrientDB OrientDB is a multi-mode non-relational database management system. As the company that developed it said, "it is a scalable, high-performance database that combines graphical relationships with documents, key-value pairs, responsiveness, object-oriented, and geospatial models."
OrientDB also supports SQL, which can be extended to manipulate trees and graphs.
Linux system installation
Specific steps for installing OrientDB on Linux system: download OrientDB
We can download the latest version of OrientDB from the latest server by entering the following instructions.
$wget-O orientdb-community-2.2.22.tar.gz http://orientdb.com/download.php?file=orientdb-community-2.2.22.tar.gz&os=linux what is downloaded here is a zip package containing precompiled binaries, so we can use the tar instruction to extract it:
Tar-zxf orientdb-community-2.2.22.tar.gz moves the extracted folder as a whole to / opt:
# mv orientdb-community-2.2.22 / opt/orientdb start OrientDB server
To start the OrientDB server, run the shell script in the orientdb/bin/ directory:
# / opt/orientdb/bin/server.sh if you start the OrientDB server for the first time, the installer will also display some prompts and remind you to set the root user password for 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. | +-- + Root password [BLANK=auto generate it]: * Please confirm the root password: * after completing these tasks, the OrientDB database server will start successfully:
INFO OrientDB Server is active v2.2.22 (build fb2b7d321ea8a5a5b18a82237049804aace9e3de). [OServer] from now on, we need a second terminal to interact with the OrientDB server.
To force OrientDB to stop executing Ctrl+C.
Configure daemon
At this point, we can think of OrientDB as just a string of shell scripts, which can be opened with an editor / opt/orientdb/bin/orientdb.sh:
# $EDITOR / opt/orientdb/bin/orientdb.sh in its first paragraph, we can see:
#! / 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" We need to configure ORIENTDB_DIR and ORIENTDB_USER.
Then create a user, for example, if we create a user named orientdb, we need to enter the following instruction:
# useradd-r orientdb-s / sbin/nologinorientdb is the user we entered at ORIENTDB_USER.
Then change the ownership of the / opt/orientdb directory:
# chown-R orientdb:orientdb / opt/orientdb change the permissions of the server configuration file:
# chmod 640 / opt/orientdb/config/orientdb-server-config.xml download system daemon service
The OrientDB package contains a service file / opt/orientdb/bin/orientdb.service. Let's copy it to the / etc/systemd/system folder:
# cp / opt/orientdb/bin/orientdb.service / etc/systemd/system edit the service file:
# $EDITOR / etc/systemd/system/orientdb.service in which the [service] content block should look like this:
[Service] User=ORIENTDB_USER Group=ORIENTDB_GROUP ExecStart=$ORIENTDB_HOME/bin/server.sh changes it to the following style:
[Service] User=orientdb Group=orientdb ExecStart=/opt/orientdb/bin/server.sh saves and exits.
Reload the system daemon:
# systemctl daemon-reload starts OrientDB and makes it self-boot:
# systemctl start orientdb # systemctl enable orientdb confirms the status of OrientDB:
# systemctl status orientdb the above instruction should output:
● orientdb.service-OrientDB Server Loaded: loaded (/ etc/systemd/system/orientdb.service; disabled; vendor preset: enabled) Active: active (running). This is the end of the article on "how to install OrientDB in Linux system". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.