oracle cloud instance stopped everytime powershell closed - spring

i was following this tutorial
https://docs.oracle.com/en-us/iaas/developer-tutorials/tutorials/spring-on-ol/01oci-ol-spring-summary.htm
and it works perfectly, but everytime i closed my windows powershell, the server stopped, but the status is already running in my oracle cloud dashboard, is there anyway to make spring boot keep running even when the powershell is closed ?
i have tried looking for any running option on the oracle cloud dashboard, but i have no luck finding it

I assume you logged into compute instance via SSH using Powershell. Normally the process started on SSH session (PowerShell) would get killed if your logged-in SSH session ends. To keep your application running, please run your application in the background as below.
nohup java -jar target/gs-spring-boot-docker-0.1.0.jar &
Ref: https://www.cyberciti.biz/tips/nohup-execute-commands-after-you-exit-from-a-shell-prompt.html

Related

status for my spring boot web service in services.msc was not running, but actually is running behind the background (port was in use)

I have my spring boot web service program, I use winsw to wrap it into windows service to my server.
However something is strange, deployment was fine (installed it using my account which have admin access) at day 1, and I can see all the log for my web service transaction. But once on day 2, in service.msc window (running by administrate mode, and my account have admin access), the status for my web service was not running and if I try to start it again it failed due to org.springframework.boot.web.server.PortInUseException: Port 443 is already in use (Yes, my web service is using port 443).
But my web service was running fine, all the transaction that return response, exccept I cannot see any logs that suppose written into the file. That makes me every day that if I want to see the logs or deployment the new version to the server, first I need to use netstat -a -o to find the PID for my process, then use taskkill /PID [PID] /F to kill the process then I can do my new version deployment or run the transaction again to see today's log.
Is it something I forgot to configuration?

Websphere admin console restart

Recently I ecountered situation where my WebSphere's admin console stop responding (tired to open it and got timeout). It happened after I've made some changes and saved them.
All the WebSphere application server and nodeAgent was working (checked in serverStatus.sh -all). I could still access my Web Application.
Is there a way to restart just admin console with a script or do I have to restart everything?
In my case the WebSphere works on linux.
I found a solution if someone will be interested. My dmgr process couldn't stop so I have to kill it manualy. Then I had to run startManager.sh script in IBM websphere dmgr location. It's done without restart the whole server.

Setting up VNC client environment for Cloud 9 development

I am trying to use the Cloud9 IDE to display a GUI so that it will be able to display a project I have written in SDL. Trouble is, Cloud9 does not have any video output.
There are tutorials online to connect to VNC from Cloud 9 environment, however, they are very old and some of those steps do not apply to the current AWS C9 setup.
The VNC I have tried to setup is Cloud9 to VNC via x11vnc: https://github.com/acabey/cloud9-vnc.
I get the following output when I run the shell script via custom shell runner:
Your GUI is running at https://"myPublicIP"/vnc.html.
VNC client running at https://"myPublicIP"/vnc.html.
Starting c9vnc daemon
Process exited with code: 0
I have a few questions about the processes I ran:
https://"myPublicIP"/vnc.html. on a separate tab gets a time out and does not load with anything
In my security group, I have opened up my inbound ports to 22 and 5901, with Source "my IP". Are these correct?
Does anyone have any success with the above or similar configuration?

How to Run WAS Liberty Core server as a Background Service in Windows

We have installed WAS Liberty Core 8.5.5 to run Maximo anywhere mobile applications.
If we start the server from CMD then we are able to access worklight console and maximo anywhere apps.
Command we are using to start the server.
server start server1
But once we closed the CMD window the server stops automatically.
Any workaround to run the server as a background Service ?
Also we need info on how to add WAS Liberty server to Windows startup service so that it will start automatically on system restart.
Thanks,
Ajay
You can run Liberty as a Windows service:
https://www.ibm.com/support/knowledgecenter/en/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_setup_new_server_winserv.html
bin\server registerWinService serverName
bin\server startWinService serverName
bin\server stopWinService serverName
Of course "net stop/net start" or services.msc can be used instead of startWinService/stopWinService
The feature to setup a proper windows service is not available in Websphere Liberty 8.5.5.x.
You can use sc.exe to create a service linked to the server executable, but it won't behave correctly i.e. it won't respond correctly to the commands from the services application. As an example, you will be able to start the service and the server will run, but then you will see an error saying the service did not respond in a timely fashion.
According to this question the proper functionality, as described in the other answer, only became available around version 17.0.0.1.
Hope that helps,
John

opendj server status started but displaying open connections 0

I am new to opendj, When I try to start opendj server, getting status as server is started but open connections are "0".could any one please help me how to fix this issue
I am using linux ubuntu.
When an OpenDJ is started, it has no opened connection to it, unless there are client applications that are connected to it and sending LDAP operations.
So, you have started the server, and the status command tells you it's started and working... I don't think there's anything to fix.
May be it you start some client application, you will see that there could be some opened connections.

Resources