简体   繁体   中英

Keep OrientDB server running on AWS EC2

I recently downloaded and managed to start an OrientDB server/database on an AWS EC2 Linux 14.04 (I think the name is) server for an application I want to set up. I started OrientDB "as usual" by running ./server.sh in the terminal via SSH link to the EC2 server. All works fine and I can query the database while at the computer. But as soon as I leave my computer and the SSH link is broken (for example when closing the computer), so is the database, ie it stops.

Is there a way to go around this or do I have to set up the database in some other way?

OrientDB is provided as AWS AMI. Take a look to

http://orientdb.com/orientdb-amazon-web-services/

If you want to DIY, follow the instructions provided on

http://orientdb.com/docs/last/Unix-Service.html

Update: new link to doc:

https://orientdb.com/docs/last/admin/Unix-Service.html

Hope this helps

您可以尝试在退出0之前将server.sh的完整路径放入/etc/rc.local并重新启动实例

Before running the server, run the command:

screen

This will create a persistent environment which will allow your process to keep running after you disconnect.

When you reconnect, you can use this command to reconnect to that environment:

screen -r

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM