How to run moderated Usability Testing

This chapter will take you deep into the world of moderated testing, which is arguably one of the most difficult testing methods. We have four expert moderators to help us understand the five-step…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Installing Spring web application as a service in Ubuntu 16.04

Background

For the past many years, Java-based web services were deployed as war files in a web-server container such as Tomcat

Spring turned this approach around and it packages the web server inside the generated jar file — this jar can be run from the command-line using:

However, this is not recommended in a production server

So we will install our spring projects as a systemd managed process

(It is assumed user is in root mode, otherwise append sudo to all commands below)

Ubuntu 16.04 uses systemd service manager — this can be confirmed by running:

So let’s go ahead and make a systemd configuration file. Let’s assume the project is called “myspringproject” and the spring jar file is located in /home/ubuntu/myspringproject/latest/myspringproject-1.0.0.RELEASE.jar

Create a file /etc/systemd/system/myspringproject.service and add the following contents:

Next, add the following to ensure the service starts on boot

Start the service

Tip: If the service is not running, confirm using:

And check detailed errors using:

In case journalctl reports an error in the service description file (myspringproject.service), change it, and reload systemctl daemon before restarting service

Add a comment

Related posts:

Love incongruous

I was a strange lecturer, my freshman students would tell you, quite the specimen — young, in my late twenties, only less than a decade older than them, yet I was emotionally numb, bereft of…

Thinking Outside Of The Box

Most theatre is designed to entertain (which is why comedies and musicals do best at the box office). Serious drama, however, can make people uncomfortable by holding up a mirror which reflects…

React Props and Component Lifecycle

Components are the building blocks of an application in React. They define the user interface and can be assembled to form more complex interfaces. Props, short for “properties,” are an important…