{"id":954,"date":"2017-06-08T07:27:37","date_gmt":"2017-06-08T04:27:37","guid":{"rendered":"https:\/\/community.virtono.com\/?p=954"},"modified":"2017-06-11T08:48:46","modified_gmt":"2017-06-11T05:48:46","slug":"how-to-install-and-configure-orientdb-on-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/www.virtono.com\/community\/news-announcements\/how-to-install-and-configure-orientdb-on-ubuntu-16-04\/","title":{"rendered":"How To Install and Configure OrientDB on Ubuntu 16.04"},"content":{"rendered":"<p><b>Introduction<\/b><\/p>\n<p><span style=\"font-weight: 400\">A multi-model NoSQL database is there in OrientDB which support graph and document databases. It\u2019s a java application which is very moderate and it is having a great advantage that it can be operated on any operation system.Ii also contains fully ACID-complaint which supports multi-master replicaton. It also allows easy horizontal scaling.<\/span><\/p>\n<p><span style=\"font-weight: 400\">In the following article, all you will need is to install OrientDB and configure the latest community edition of OrientDB on an Ubuntu 16.04 server.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">Step 1 \u2014 Downloading and Installing OrientDB<\/span><\/p>\n<p><span style=\"font-weight: 400\">In the following step,we have to download the latest community edition of OrientDB after this you need to install this into the \/opy directory, Linux is the traditional location for installing third Party applications<\/span><\/p>\n<p><span style=\"font-weight: 400\">Before you start, make sure the packages on your system are up to date.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">sudo apt-get update<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Net, download the latest version of OrientDB Community. At publication time, that&#8217;s 2.2.16, but you can check\u00a0<\/span><a href=\"http:\/\/orientdb.com\/download\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">the project&#8217;s download page<\/span><\/a><span style=\"font-weight: 400\">\u00a0for the latest version and change the version number in the command below to match.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">wget http:\/\/mkt.orientdb.com\/CE-2216-multiOS -O orientdb-community-<\/span><span style=\"font-weight: 400\">2.2.16<\/span><span style=\"font-weight: 400\">.tar.gz<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Download\u00a0<\/span><span style=\"font-weight: 400\">unzip<\/span><span style=\"font-weight: 400\">\u00a0so you can decompress the tarball.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">sudo apt-get install unzip<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">The downloaded tarball contains pre-compiled binary files that you need to run OrientDB on your system, so all you need to do now is unzip it.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">unzip orientdb-community-<\/span><span style=\"font-weight: 400\">2.2.16<\/span><span style=\"font-weight: 400\">.tar.gz<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">The files are extracted into a directory named\u00a0<\/span><span style=\"font-weight: 400\">orientdb-community-<\/span><span style=\"font-weight: 400\">2.2.16<\/span><span style=\"font-weight: 400\">. Now you need to move it into the\u00a0<\/span><span style=\"font-weight: 400\">\/opt<\/span><span style=\"font-weight: 400\">directory, renaming it to\u00a0<\/span><span style=\"font-weight: 400\">orientdb<\/span><span style=\"font-weight: 400\">\u00a0in the process.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">sudo mv ~\/orientdb-community-<\/span><span style=\"font-weight: 400\">2.2.16<\/span><span style=\"font-weight: 400\"> \/opt\/orientdb<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">OrientDB is now installed. If you&#8217;re using a memory-constrained server, you can configure OrientDB to use less RAM in the next step. Otherwise, you can move on to Step 3 to start the server itself.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Step 2 \u2014 Configuring OrientDB to Use Less RAM (Optional)<\/span><\/p>\n<p><span style=\"font-weight: 400\">By default, the OrientDB daemon expects to have at least 2 GB of RAM available, and will fail to start if it finds less. You&#8217;ll see an error like this if you try to start it anyway:<\/span><\/p>\n<p><span style=\"font-weight: 400\">Output<\/span><\/p>\n<p><span style=\"font-weight: 400\">ubuntu-orientdb server.sh[1670]: Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000aaaa0000, 1431699456, 0) failed; error=&#8217;Cannot allocate memory&#8217; (errno=12)<\/span><\/p>\n<p><span style=\"font-weight: 400\">ubuntu-orientdb server.sh[1670]: # There is insufficient memory for the Java Runtime Environment to continue.<\/span><\/p>\n<p><span style=\"font-weight: 400\">There&#8217;s one configuration change you can make that will let you get away with using a server with as little as 512 MB of RAM. It&#8217;s a function of a setting in the\u00a0<\/span><span style=\"font-weight: 400\">server.sh<\/span><span style=\"font-weight: 400\">\u00a0file, which can be changed so that the daemon can start with far less RAM.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Open the file with\u00a0<\/span><span style=\"font-weight: 400\">nano<\/span><span style=\"font-weight: 400\">\u00a0or your favorite text editor.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">sudo nano \/opt\/orientdb\/bin\/server.sh<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Then scroll to the section containing the chunk of code shown in this code block:<\/span><\/p>\n<p><span style=\"font-weight: 400\">\/opt\/orientdb\/bin\/server.sh<\/span><\/p>\n<p><span style=\"font-weight: 400\">. . .<\/span><\/p>\n<p><span style=\"font-weight: 400\"># ORIENTDB memory options, default to 2GB of heap.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">if [ -z &#8220;$ORIENTDB_OPTS_MEMORY&#8221; ] ; then<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0ORIENTDB_OPTS_MEMORY=&#8221;-Xms2G -Xmx2G&#8221;<\/span><\/p>\n<p><span style=\"font-weight: 400\">fi<\/span><\/p>\n<p><span style=\"font-weight: 400\">. . .<\/span><\/p>\n<p><span style=\"font-weight: 400\">The values you need to change are\u00a0<\/span><span style=\"font-weight: 400\">Xms<\/span><span style=\"font-weight: 400\">\u00a0and\u00a0<\/span><span style=\"font-weight: 400\">Xmx<\/span><span style=\"font-weight: 400\">, which specify the initial and maximum memory allocation pool for the Java Virtual Machine. By default, they&#8217;re set to 2GB.<\/span><\/p>\n<p><span style=\"font-weight: 400\">You can set new values that are less than amount of RAM allocated to the server, but make sure\u00a0<\/span><span style=\"font-weight: 400\">Xms<\/span><span style=\"font-weight: 400\">\u00a0is at least 128 MB or OrientDB won&#8217;t start. For example, the values below set the initial and maximum amount of ram to 128MB and 256MB, respectively.<\/span><\/p>\n<p><span style=\"font-weight: 400\">\/opt\/orientdb\/bin\/server.sh<\/span><\/p>\n<p><span style=\"font-weight: 400\"># ORIENTDB memory options, default to 2GB of heap.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">if [ -z &#8220;$ORIENTDB_OPTS_MEMORY&#8221; ] ; then<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0ORIENTDB_OPTS_MEMORY=&#8221;-Xms<\/span><span style=\"font-weight: 400\">128m<\/span><span style=\"font-weight: 400\"> -Xmx<\/span><span style=\"font-weight: 400\">256m<\/span><span style=\"font-weight: 400\">&#8220;<\/span><\/p>\n<p><span style=\"font-weight: 400\">fi<\/span><\/p>\n<p><span style=\"font-weight: 400\">Save and close the file. In the next step, you&#8217;ll start OrientDB.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Step 3 \u2014 Starting the Server<\/span><\/p>\n<p><span style=\"font-weight: 400\">Now that the binary is in place and you&#8217;ve optionally configured the server to use less RAM, you can now start the server and connect to the console.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Navigate to the installation directory.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">cd \/opt\/orientdb<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Then start the server.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">sudo bin\/server.sh<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">When starting the server for the first time, you&#8217;ll be prompted to specify a password for the\u00a0<\/span><b>root<\/b><span style=\"font-weight: 400\">\u00a0user account. This is an internal OrientDB account that will be used to access the server for things like OrientDB Studio, the web-based interface for managing OrientDB. If you don&#8217;t specify a password, one will be generated automatically. However, it&#8217;s best to specify one yourself, so do so when prompted.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Part of the output generated from starting the server tells you what ports the server and OrientDB Studio are listening on.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Output<\/span><\/p>\n<p><span style=\"font-weight: 400\">2017-02-04 19:13:21:306 INFO \u00a0Listening binary connections on 0.0.0.0:2424 (protocol v.36, socket=default) [OServerNetworkListener]<\/span><\/p>\n<p><span style=\"font-weight: 400\">2017-02-04 19:13:21:310 INFO \u00a0Listening http connections on 0.0.0.0:2480 (protocol v.10, socket=default) [OServerNetworkListener]<\/span><\/p>\n<p><span style=\"font-weight: 400\">. . .<\/span><\/p>\n<p><span style=\"font-weight: 400\">2017-02-04 19:13:21:372 INFO \u00a0OrientDB Studio available at http:\/\/192.168.0.30:2480\/studio\/index.html [OServer]<\/span><\/p>\n<p><span style=\"font-weight: 400\">2017-02-04 19:13:21:374 INFO \u00a0OrientDB Server is active v2.2.16 (build UNKNOWN@r98dbf8a2b8d43e4af09f1b12fa7ae9dfdbd23f26; 2017-02-02 07:01:26+0000). <\/span><\/p>\n<p><span style=\"font-weight: 400\">[OServer]<\/span><\/p>\n<p><span style=\"font-weight: 400\">When you see this, OrientDB is now running in your current terminal. Let&#8217;s confirm that the server is listening on the appropriate ports.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Open a second terminal and connect to the same server via SSH.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">ssh <\/span><span style=\"font-weight: 400\">sammy<\/span><span style=\"font-weight: 400\">@<\/span><span style=\"font-weight: 400\">your_server_ip<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Then, in that second terminal, confirm that the server is listening on ports\u00a0<\/span><span style=\"font-weight: 400\">2424<\/span><span style=\"font-weight: 400\">\u00a0(for binary connections) and\u00a0<\/span><span style=\"font-weight: 400\">2480<\/span><span style=\"font-weight: 400\">\u00a0(for HTTP connections) with the following command.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">sudo netstat -plunt | grep -i listen<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">The output should contain references to both port numbers, like this:<\/span><\/p>\n<p><span style=\"font-weight: 400\">Output<\/span><\/p>\n<p><span style=\"font-weight: 400\">tcp \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a00 \u00a0\u00a0\u00a0\u00a0\u00a00 0.0.0.0:22 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a00.0.0.0:* \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0LISTEN \u00a0\u00a0\u00a0\u00a0\u00a01160\/sshd \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">tcp6 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a00 \u00a0\u00a0\u00a0\u00a0\u00a00 :::<\/span><span style=\"font-weight: 400\">2480<\/span><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0:::* \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0LISTEN \u00a0\u00a0\u00a0\u00a0\u00a02758\/java \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">tcp6 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a00 \u00a0\u00a0\u00a0\u00a0\u00a00 :::22 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0:::* \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0LISTEN \u00a0\u00a0\u00a0\u00a0\u00a01160\/sshd \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">tcp6 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a00 \u00a0\u00a0\u00a0\u00a0\u00a00 :::<\/span><span style=\"font-weight: 400\">2424<\/span><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0:::* \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0LISTEN \u00a0\u00a0\u00a0\u00a0\u00a02758\/java<\/span><\/p>\n<p><span style=\"font-weight: 400\">Now that server is started and you&#8217;ve verified it&#8217;s running, you&#8217;ll connect to the OrientDB console in the second terminal next.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Step 4 \u2014 Connecting to the Console<\/span><\/p>\n<p><span style=\"font-weight: 400\">The OrientDB console is the command line interface for working with the application. To launch it, type:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">sudo \/opt\/orientdb\/bin\/console.sh<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">You will see the following:<\/span><\/p>\n<p><span style=\"font-weight: 400\">Output<\/span><\/p>\n<p><span style=\"font-weight: 400\">OrientDB console v.2.2.16 (build UNKNOWN@r98dbf8a2b8d43e4af09f1b12fa7ae9dfdbd23f26; 2017-02-02 07:01:26+0000) www.orientdb.com<\/span><\/p>\n<p><span style=\"font-weight: 400\">Type &#8216;help&#8217; to display all the supported commands.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Installing extensions for GREMLIN language v.2.6.0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">orientdb&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Now, connect to the server instance. The password required is the one you specified when you first started the server in the previous step.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">connect remote:127.0.0.1 root <\/span><span style=\"font-weight: 400\">root-password<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">You&#8217;ll see this output if you successfully connect.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Output<\/span><\/p>\n<p><span style=\"font-weight: 400\">Connecting to remote Server instance [remote:127.0.0.1] with user &#8216;root&#8217;&#8230;OK<\/span><\/p>\n<p><span style=\"font-weight: 400\">orientdb {server=remote:127.0.0.1\/}&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\">If you don&#8217;t, double check that you entered the root password correctly and that OrientDB is still running in your first terminal.<\/span><\/p>\n<p><span style=\"font-weight: 400\">When you&#8217;re ready, type\u00a0<\/span><span style=\"font-weight: 400\">exit<\/span><span style=\"font-weight: 400\">\u00a0in your second terminal to quit the OrientDB prompt.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">exit<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">You&#8217;ve just installed OrientDB, manually started it, and connected to it. This means OrientDB is working, but it also means you&#8217;ll need to start it manually anytime you reboot the server. In the next few steps, we&#8217;ll configure and set up OrientDB to run just like any other daemon on the server.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Step 5 \u2014 Configuring OrientDB as a Daemon<\/span><\/p>\n<p><span style=\"font-weight: 400\">At this point, OrientDB is installed, but it&#8217;s just a bunch of scripts on the server. In this step, we&#8217;ll configure it to run as a daemon on the system. That involves modifying the\u00a0<\/span><span style=\"font-weight: 400\">\/opt\/orientdb\/bin\/orientdb.sh<\/span><span style=\"font-weight: 400\">\u00a0script and the configuration file,\u00a0<\/span><span style=\"font-weight: 400\">\/opt\/orientdb\/config\/orientdb-server-config.xml<\/span><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><span style=\"font-weight: 400\">First, type\u00a0<\/span><span style=\"font-weight: 400\">CTRL+C<\/span><span style=\"font-weight: 400\">\u00a0in your first terminal window with OrientDB still running to stop it. You can also close the second terminal connection now.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Let&#8217;s start by modifying the\u00a0<\/span><span style=\"font-weight: 400\">\/opt\/orientdb\/bin\/orientdb.sh<\/span><span style=\"font-weight: 400\">\u00a0script to tell OrientDB the user it should be run as, and to point it to the installation directory.<\/span><\/p>\n<p><span style=\"font-weight: 400\">So, create the system user that you want OrientDB to run as. In this example, we&#8217;re creating the\u00a0<\/span><b>orientdb<\/b><span style=\"font-weight: 400\">\u00a0user. The command will also create the\u00a0<\/span><b>orientdb<\/b><span style=\"font-weight: 400\">\u00a0group:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">sudo useradd -r orientdb -s \/sbin\/nologin<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Give ownership of the OrientDB directory and files to the newly-created OrientDB user and group.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">sudo chown -R orientdb:orientdb \/opt\/orientdb<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Now let&#8217;s make a few changes to the\u00a0<\/span><span style=\"font-weight: 400\">orientdb.sh<\/span><span style=\"font-weight: 400\">\u00a0script.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">sudo nano \/opt\/orientdb\/bin\/orientdb.sh<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">First, we need to point it to the proper installation directory, then tell it what user it should be run as. So look for the following two lines towards the top of the file:<\/span><\/p>\n<p><span style=\"font-weight: 400\">\/opt\/orientdb\/bin\/orientdb.sh<\/span><\/p>\n<p><span style=\"font-weight: 400\">. . .<\/span><\/p>\n<p><span style=\"font-weight: 400\"># You have to SET the OrientDB installation directory here<\/span><\/p>\n<p><span style=\"font-weight: 400\">ORIENTDB_DIR=&#8221;YOUR_ORIENTDB_INSTALLATION_PATH&#8221;<\/span><\/p>\n<p><span style=\"font-weight: 400\">ORIENTDB_USER=&#8221;USER_YOU_WANT_ORIENTDB_RUN_WITH&#8221;<\/span><\/p>\n<p><span style=\"font-weight: 400\">. . .<\/span><\/p>\n<p><span style=\"font-weight: 400\">And change them to\u00a0<\/span><span style=\"font-weight: 400\">\/opt\/orientdb<\/span><span style=\"font-weight: 400\">\u00a0and\u00a0<\/span><span style=\"font-weight: 400\">orientdb<\/span><span style=\"font-weight: 400\">\u00a0respectively.<\/span><\/p>\n<p><span style=\"font-weight: 400\">\/opt\/orientdb\/bin\/orientdb.sh<\/span><\/p>\n<p><span style=\"font-weight: 400\"># You have to SET the OrientDB installation directory here<\/span><\/p>\n<p><span style=\"font-weight: 400\">ORIENTDB_DIR=&#8221;<\/span><span style=\"font-weight: 400\">\/opt\/orientdb<\/span><span style=\"font-weight: 400\">&#8220;<\/span><\/p>\n<p><span style=\"font-weight: 400\">ORIENTDB_USER=&#8221;<\/span><span style=\"font-weight: 400\">orientdb<\/span><span style=\"font-weight: 400\">&#8220;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Save and close the file.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Then modify the server configuration file&#8217;s permissions to prevent unauthorized users from reading it.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">sudo chmod 640 \/opt\/orientdb\/config\/orientdb-server-config.xml<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">Step 6 \u2014 Installing the Systemd Startup Script<\/span><\/p>\n<p><span style=\"font-weight: 400\">OrientDB comes with a Systemd service descriptor file that will be responsible for starting and stopping the service. That file has to be copied into the\u00a0<\/span><span style=\"font-weight: 400\">\/etc\/systemd\/system<\/span><span style=\"font-weight: 400\">\u00a0directory.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">sudo cp \/opt\/orientdb\/bin\/orientdb.service \/etc\/systemd\/system<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">There are a few settings in that file that we need to modify, so open it for editing.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">sudo nano \/etc\/systemd\/system\/orientdb.service<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Modify the\u00a0<\/span><b>User<\/b><span style=\"font-weight: 400\">,\u00a0<\/span><b>Group<\/b><span style=\"font-weight: 400\">\u00a0and\u00a0<\/span><b>ExecStart<\/b><span style=\"font-weight: 400\">\u00a0variables under\u00a0<\/span><b>Service<\/b><span style=\"font-weight: 400\">\u00a0to match your installation. You set the user and group in step 5 (which are both\u00a0<\/span><b>orientdb<\/b><span style=\"font-weight: 400\">\u00a0if you followed the step verbatim).\u00a0<\/span><b>ExecStart<\/b><span style=\"font-weight: 400\">\u00a0specifies the path to the script, which should begin with\u00a0<\/span><span style=\"font-weight: 400\">\/opt\/orientdb<\/span><span style=\"font-weight: 400\">\u00a0if you&#8217;ve followed this tutorial as written.<\/span><\/p>\n<p><span style=\"font-weight: 400\">\/etc\/systemd\/system\/orientdb.service<\/span><\/p>\n<p><span style=\"font-weight: 400\">. . .<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">[Service]<\/span><\/p>\n<p><span style=\"font-weight: 400\">User=<\/span><span style=\"font-weight: 400\">orientdb<\/span><\/p>\n<p><span style=\"font-weight: 400\">Group=<\/span><span style=\"font-weight: 400\">orientdb<\/span><\/p>\n<p><span style=\"font-weight: 400\">ExecStart=<\/span><span style=\"font-weight: 400\">\/opt\/orientdb<\/span><span style=\"font-weight: 400\">\/bin\/server.sh<\/span><\/p>\n<p><span style=\"font-weight: 400\">Save and close the file.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Then run the following command to reload all units.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">sudo systemctl daemon-reload<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">With everything in place, you may now start the OrientDB service.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">sudo systemctl start orientdb<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">And ensure that it will start on boot.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">sudo systemctl enable orientdb<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Verify that it really did start by checking the process status.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">sudo systemctl status orientdb<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Output<\/span><\/p>\n<ul>\n<li><span style=\"font-weight: 400\"> orientdb.service &#8211; OrientDB Server<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0Loaded: loaded (\/etc\/systemd\/system\/orientdb.service; disabled; vendor preset: enabled)<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0Active: <\/span><span style=\"font-weight: 400\">active (running)<\/span><span style=\"font-weight: 400\"> since Sat 2017-02-04 20:54:27 CST; 11s ago<\/span><\/p>\n<p><span style=\"font-weight: 400\"> Main PID: 22803 (java)<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0\u00a0Tasks: 14<\/span><\/p>\n<p><span style=\"font-weight: 400\"> \u00a0\u00a0Memory: 126.4M<\/span><\/p>\n<p><span style=\"font-weight: 400\">. . .<\/span><\/p>\n<p><span style=\"font-weight: 400\">If the server does not start, look for clues in the output. In the next step, you&#8217;ll learn how to connect to OrientDB Studio, the application&#8217;s web user interface.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Step 7 \u2014 Connecting to OrientDB Studio<\/span><\/p>\n<p><span style=\"font-weight: 400\">OrientDB Studio is the web interface for managing OrientDB. This is useful for testing purposes, although it&#8217;s a\u00a0<\/span><a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-secure-your-orientdb-database-on-ubuntu-16-04\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">better security practice<\/span><\/a><span style=\"font-weight: 400\">\u00a0to restrict access to it entirely.<\/span><\/p>\n<p><span style=\"font-weight: 400\">If you want to enable it for testing, you&#8217;ll need to add a rule to your firewall. By default, OrientDB studio listens on port\u00a0<\/span><span style=\"font-weight: 400\">2480<\/span><span style=\"font-weight: 400\">, so if you configured the firewall on the server, you&#8217;ll need to allow access to port\u00a0<\/span><span style=\"font-weight: 400\">2480<\/span><span style=\"font-weight: 400\">.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">sudo ufw allow 2480<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Then, restart UFW.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">sudo systemctl restart ufw<\/span><\/li>\n<li style=\"font-weight: 400\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">To connect to OrientDB Studio, visit\u00a0<\/span><span style=\"font-weight: 400\">http:\/\/<\/span><span style=\"font-weight: 400\">your_server_ip<\/span><span style=\"font-weight: 400\">:2480<\/span><span style=\"font-weight: 400\">\u00a0in your browser. Once the page loads, you will see the login screen.<\/span><\/p>\n<p><span style=\"font-weight: 400\">You can log in as\u00a0<\/span><b>root<\/b><span style=\"font-weight: 400\">\u00a0with the password you set earlier. You can also select the\u00a0<\/span><span style=\"font-weight: 400\">GratefulDeadConcerts<\/span><span style=\"font-weight: 400\">database and log in using one of the default user accounts included with OrientDB (<\/span><b>admin<\/b><span style=\"font-weight: 400\">,\u00a0<\/span><b>reader<\/b><span style=\"font-weight: 400\">, or\u00a0<\/span><b>writer<\/b><span style=\"font-weight: 400\">).<\/span><\/p>\n<p><span style=\"font-weight: 400\">Conclusion<\/span><\/p>\n<p><span style=\"font-weight: 400\">After you have installed the Community edition of OrientDB on your Ubuntu 16.04 server,now you should set it up as a daemon to be managed by system.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Now,there\u2019s \u00a0a important step to protect your application from unauthorized user for this you have apply a few security tips using OriebtDB security tutorial, and for a existing OrientDB then you just need to imort into a new installing, for this use the migration guide, which was written for Ubuntu 14.04 but will also work for Ubuntu 16.04.<\/span><\/p>\n<p><span style=\"font-weight: 400\">For additional information about OrientDB, visit\u00a0<\/span><a href=\"http:\/\/orientdb.com\/docs\/last\/index.html\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">the project&#8217;s official documentation<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction A multi-model NoSQL database is there in OrientDB which support graph and document databases. It\u2019s a java application which is very moderate and it is having a great advantage that it can be operated on any operation system.Ii also contains fully ACID-complaint which supports multi-master replicaton. It also allows<\/p>\n","protected":false},"author":3,"featured_media":972,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-954","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news-announcements"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/06\/orientdb-logo.png?fit=705%2C259&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7ISfL-fo","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":1259,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/installing-synology-assistant-on-ubuntu\/","url_meta":{"origin":954,"position":0},"title":"Installing Synology Assistant on Ubuntu","author":"Daniel Draga","date":"November 10, 2017","format":false,"excerpt":"This article shows\u00a0how to\u00a0install\u00a0Synology Assistant\u00a0on\u00a0Ubuntu\u00a0.\u00a0The\u00a0Synology\u00a0Assistant is a small tool to disk or RackStations to locate the local network.\u00a0It facilitates the commissioning of a new NAS and connects after entering the user information to the web interface of the device.\u00a0In addition, any number of Synology devices can be monitored.\u00a0The use of\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/11\/synology_logo.jpg?fit=815%2C230&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/11\/synology_logo.jpg?fit=815%2C230&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/11\/synology_logo.jpg?fit=815%2C230&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/11\/synology_logo.jpg?fit=815%2C230&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":3492,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-and-configure-mail-server-on-ubuntu\/","url_meta":{"origin":954,"position":1},"title":"How to Install and Configure Mail Server on Ubuntu","author":"George B.","date":"June 11, 2023","format":false,"excerpt":"Setting up a mail server on Ubuntu can be a daunting task for many, but with the right guidance and understanding, it becomes an achievable goal. In this article, we will provide a step-by-step guide on how to install and configure a mail server on Ubuntu. By the end, you'll\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/How-to-Install-and-Configure-Mail-Server-on-Ubuntu.png?fit=600%2C330&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/How-to-Install-and-Configure-Mail-Server-on-Ubuntu.png?fit=600%2C330&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/How-to-Install-and-Configure-Mail-Server-on-Ubuntu.png?fit=600%2C330&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":3413,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-and-configure-kubernetes-on-ubuntu-22-04\/","url_meta":{"origin":954,"position":2},"title":"How to install and configure Kubernetes on Ubuntu 22.04","author":"George B.","date":"May 28, 2023","format":false,"excerpt":"Welcome to our comprehensive guide on installing and configuring Kubernetes on Ubuntu 22. In this tutorial, we will walk you through the process of setting up a Kubernetes cluster on your Ubuntu 22 machine. Whether you are a beginner or an experienced user, this guide will provide you with detailed\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/How-to-install-and-configure-Kubernetes-on-Ubuntu-22.04.png?fit=600%2C330&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/How-to-install-and-configure-Kubernetes-on-Ubuntu-22.04.png?fit=600%2C330&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/How-to-install-and-configure-Kubernetes-on-Ubuntu-22.04.png?fit=600%2C330&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":2296,"url":"https:\/\/www.virtono.com\/community\/knowledgebase\/docker-installation\/","url_meta":{"origin":954,"position":3},"title":"Docker Installation","author":"Shreyash Sharma","date":"March 8, 2021","format":false,"excerpt":"I suggest you get machine to follow along this part. So here's a little plug of our own: Cloud VPS, for as little as \u20ac2.95 a month. This article is a part of our complete series of articles on Docker. Click here to access the Free Series. While Docker was\u2026","rel":"","context":"In &quot;Knowledgebase&quot;","block_context":{"text":"Knowledgebase","link":"https:\/\/www.virtono.com\/community\/category\/knowledgebase\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2021\/03\/12122013Docker_twitter.png?fit=750%2C375&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2021\/03\/12122013Docker_twitter.png?fit=750%2C375&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2021\/03\/12122013Docker_twitter.png?fit=750%2C375&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2021\/03\/12122013Docker_twitter.png?fit=750%2C375&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":3954,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-and-configure-docker-swarm-on-ubuntu-22-04\/","url_meta":{"origin":954,"position":4},"title":"How to Install and Configure Docker Swarm on Ubuntu 22.04","author":"George B.","date":"September 27, 2023","format":false,"excerpt":"This tutorial will show you how to install and configure Docker Swarm on Ubuntu 22.04 ensuring that you harness its full potential for your containerized applications. For effectively scaling and managing containers, Docker Swarm is still a great option. Many developers and DevOps experts prefer it because of its ease\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/How-to-Install-and-Configure-Docker-Swarm-on-Ubuntu.png?fit=360%2C240&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1124,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/installing-zabbix-3-0-on-ubuntu-16-04-with-postgresql\/","url_meta":{"origin":954,"position":5},"title":"Installing zabbix 3.0 on Ubuntu 16.04 with PostgreSQL","author":"Shreyash Sharma","date":"October 15, 2017","format":false,"excerpt":"A few days ago I installed Zabbix 3.0 under Ubuntu 16.04.\u00a0Since I would like to deal with PostgreSQL, I decided to use it as a database. installation The first release of Zabbix's release package is the following: 1 wget http:\/\/repo.zabbix.com\/zabbix\/3.0\/ubuntu\/pool\/main\/z\/zabbix-release\/zabbix-release_3.0-1+xenial_all.deb which is then installed 1 dpkg -i zabbix-release_3.0-1+xenial_all.deb So now\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/comments?post=954"}],"version-history":[{"count":1,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/954\/revisions"}],"predecessor-version":[{"id":955,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/954\/revisions\/955"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media\/972"}],"wp:attachment":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media?parent=954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/categories?post=954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/tags?post=954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}