Monday, 17 April 2017

How wildfly server will be running after You Exit From a Shell Prompt on Linux server?

After closing the Linux terminal process will kill or terminated by your shell
To avoid this scenario use below  steps.

1:First create run.sh file on /home/wildfly-10.1.0.Final/bin/ folder.
2:write below code in run.sh file

nohup ./standalone&

where
  • ./standalone : is name of shell script or command name. You can pass argument to command or a shell script.
  • & : nohup does not automatically put the command it runs in the background; you must do that explicitly, by ending the command line with an & symbol.
and save the file
3: set below java path in standalone.bat file and save the file
set "JAVA=%JAVA_HOME%\bin\javaw"

4:for wildfly server start up fire below command from Linux terminal
>./run.sh

let me know if you find any correction or suggestion




No comments:

Post a Comment