WIndows’ CMD\PowerShell command line startup program runs a nohup command similar to Linux system in the background.

There is no command similar to nohup under windows, but you can use other commands to achieve this function. 1. Explanation of commands used: 1. Start-Process: Start one or more processes on the local computer. Related introduction links: Start-Process (Microsoft.PowerShell.Management) | Microsoft Learn? Mainly used parameters 1.1, -WindowStyle Specifies the state of the window used […]

Linux- background operator &, nohup, disown

& amp; & amp; is often used as a background running symbol in the shells of Unix-like operating systems (such as Linux and macOS), especially in shells such as Bash. Let’s take a closer look at its features and usage. & amp;As a background running symbol: Basic usage: When we add & after a command […]

nohup java -Xms512m -Xmx1024m -jar ?…

The complete command and explanation are as follows: nohup java -Xms512m -Xmx1024m -jar /jack/cloudmes/jar/njp-plus-empty-admin-api.jar –spring.profiles.active=onlineTest –type=jack > /jack/cloudmes/jar/out. file 2> & amp; 1 & amp; nohup: Run the command without hanging up, even if the terminal is closed, the command will always run. This command is often used for long-running tasks, such as background service […]

Linux process management (ps, pgrep, kill, killall, pkill, nohup, bg, fg)

Article directory Linux process management What is a process? What are threads? The difference between the two? Linux process management commands ps command Usage example The difference between ps with minus sign and without minus sign View the process tree command pstree pgrep command kill command The commonly used signals and their functions of the […]

[Solved] Solve the error that nohup java -jar xxx.jar reported [1]+ Exit 1: Unable to access jarfile xxx.jar and PersistenceException

Article table of contents 1. Reproduce the problem 2. Analyze the problem 2.1 Unable to access jarfile xxx.jar 2.1.2 Analysis of Unable to access jarfile xxx.jar 2.1.2 Solve Unable to access jarfile xxx.jar 2.2 exceptions.PersistenceException 2.2.1 Analysis exceptions.PersistenceException 2.2.2 Resolving exceptions.PersistenceException 3. Summary of the problem 1. Reproduce the problem Deploy manager.jar to the project […]

[Solved] Nohup:ignoring input and appending output to ‘nohup.out’ error solution when deploying project

Reason Because the log is recorded every time nohup, the default is written to nohup.out Solution Option 1 When deploying the go binary file, there has been an error like the title, the solution is to add a piece of code when deploying $ nohup ./main </dev/null & amp;>/dev/null & amp; Option 2 Directly use […]