In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, Xiaobian will bring you about how to run jar packages in Linux. The article is rich in content and analyzes and narrates from a professional perspective. After reading this article, I hope you can gain something.
Linux is a free-to-use and freely distributed UNIX-like operating system, is a POSIX-based multi-user, multitasking, multi-threaded and multi-CPU operating system, using Linux to run major Unix tools, applications and network protocols.
When you need to use Java programs developed on Windows to run on Linux, you need to package the Java programs into jar packages and upload them to Linux to run. The following content will introduce several methods to start jar packages in the background under Linux.
Optimization Method 1:
java -jar xxx.jar &
& means background running, ssh window is not locked, but when the window is closed, the program will still exit
Optimization Method 2:
nohup java -jar xxx.jar &
nohup means to run the command line without hanging up. When the account exits or the terminal is closed, the program still runs.
When a job is executed with the nohup command, all output from the job is redirected to the file nohup.out unless an output file is specified otherwise.
Optimization Method 3:
nohup java -jar xxx.jar >/usr/local/temp.txt &
> /usr/local/temp.txt means that all startup log information is recorded in the temp.txt file
The above is how to run jar packages in Linux shared by Xiaobian. If you happen to have similar doubts, you may wish to refer to the above analysis for understanding. If you want to know more about it, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.