Developed a website with Angular 2, Spring RESTful services, MongoDB and Elastic Search.

February 16, 2017 566 views
MongoDB API Elasticsearch Java JavaScript

Not sure how to deploy, I am new to hosting and also new to linux cli.
Will be really helpful if someone can guide me where to start.

1 comment
  • I think the first step might be to take a look at the tutorials, searching for the relevant, then settle on the distribution you want to use or that seems to have the most documentation support for what you want to do. Once you've decided on a distro then I'd systematically set things up.

    1. Do the initial server setup in the distro you decided on. I personally like CentOS but a lot of people like Ubuntu but I'm not tied to the distro I like the most, I'd go with what seems to support what I'm trying to accomplish the best, including tutorials. I'd say Ubuntu and CentOS seem relatively friendly to those without tons of experience.

    2. Once you've done the initial server setup, look for recommended steps, especially security related to complete.

    3. Then in case you want to backtrack without having to start completely over, this might be a good time to make a snapshot( a type of backup).

    4. Then I'd start going through the tutorials covering what you want to do, asking questions here in this forum and also to the support department at DO.

    I don't have the time now to check if everything you want to do is documented in the tutorials and other DO resources so I'd be interested to hear what you find. Since these are Linux servers you're also not limited to DO's resources, I sometimes search the web for answers to questions or to help solve problems.

    Since you mentioned you're relatively new to this, I'll mention that I think it's important to be mindful of security as you proceed with this. For example, make sure to take the time to setup a firewall. I'm mentioning it as I could see how it might be tempting for people to skip steps to deploy faster, a tradeoff that might be harmful and time consuming later.

    by Mitchell Anicas
    This tutorial covers how to login with root, how to change the root password, how to create a new user, how to give the new user root privileges, how to change the port, and how to disable root login in. When you first create your server, this tutorial explains the first steps you need to take. This tutorial is made for CentOS 7.
1 Answer

I think the first step might be to take a look at the tutorials, searching for the relevant, then settle on the distribution you want to use or that seems to have the most documentation support for what you want to do. Once you've decided on a distro then I'd systematically set things up.

  1. Do the initial server setup in the distro you decided on. I personally like CentOS but a lot of people like Ubuntu but I'm not tied to the distro I like the most, I'd go with what seems to support what I'm trying to accomplish the best, including tutorials. I'd say Ubuntu and CentOS seem relatively friendly to those without tons of experience.

  2. Once you've done the initial server setup, look for recommended steps, especially security related to complete.

  3. Then in case you want to backtrack without having to start completely over, this might be a good time to make a snapshot( a type of backup).

  4. Then I'd start going through the tutorials covering what you want to do, asking questions here in this forum and also to the support department at DO.

I don't have the time now to check if everything you want to do is documented in the tutorials and other DO resources so I'd be interested to hear what you find. Since these are Linux servers you're also not limited to DO's resources, I sometimes search the web for answers to questions or to help solve problems.

Since you mentioned you're relatively new to this, I'll mention that I think it's important to be mindful of security as you proceed with this. For example, make sure to take the time to setup a firewall. I'm mentioning it as I could see how it might be tempting for people to skip steps to deploy faster, a tradeoff that might be harmful and time-consuming later.

by Mitchell Anicas
This tutorial covers how to login with root, how to change the root password, how to create a new user, how to give the new user root privileges, how to change the port, and how to disable root login in. When you first create your server, this tutorial explains the first steps you need to take. This tutorial is made for CentOS 7.
Have another answer? Share your knowledge.