The nohup command is a simple and useful nohup command in UNIXLINUX. common processes run in the background with the & amp; symbol. if logout is started on the console of the program, the process is terminated immediately. One way to implement the daemon is to program according to the rules of the Daemon (this article has introduced). The nohup command is simple and useful in UNIX/LINUX, A common process is run in the background with the & symbol. if logout is started on the console of the program, the process is terminated immediately. One way to implement the daemon is to program according to the rules of the Daemon (this article has been introduced on this site), which is troublesome. the other way is to program the Daemon by using common methods, then run the nohup command to start the program: nohup <Program name> & After the logout in the console, the process continues to run and serves as a daemon (although it is not a strict daemon ). After the nohup command is used, the standard output of the original program is automatically changed to the nohup. out file in the current directory, which plays a role in log and implements the complete daemon function. For example: how to remotely start the WebLogic service? Remotely control the server using telnet, remotely start the WEBLOGIC service, disable telnet after startup, and stop the WebLogic service because the process started using telnet will be closed as the telnet process is closed. Therefore, we can use some UNIX commands to disable them. Run the following command: nohup startWeblogic. sh & to monitor standard output, use: tail-f nohup. out
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.