In Linux/Unix, only the daemon can continue to run without the terminal. When a common process closes the terminal, it exits because it receives the SIGHUP signal (suspension signal. After the terminal exits, the background program started by the terminal automatically exits.
If you want to run the command in the background,
= = Halt = = Shutdown-h (halt) nowCommand-line mode--init 3Desktop Mode--init 5 = = StartX (requires desktop installation)Restart--init 6 = = REBOOT = Shutdown-r (reboot) nowLines in which there is no comment:Id:3:initdefualt:Indicates that the default RunLevel at startup is level 3. Can be modified to 5 and start on desktop. Restart takes effect.Note that the default level cannot be set to 0, which will not be able to be opened or set to 6, which will continue to restart.If the minimal install
Start-up Run level configuration corner Ben/etc/inittabBoot run level init is the instruction to switch the run level0. shutdown //init01. Single user mode (automatic access to Superuser privileges, no network, no service)2. Multi-user mode (no network, service)3. Server mode (with network, service) above three modes are character interface4. Retention5. Graphica
Test code run time in Linux has a function to get the current time, accurate to microseconds----> gettimeofday ()1#include // int gettimeofday (struct timeval *tv, struct timezone *tz);2 /*********************************************3 * struct Timeval4 * {5 * time_t tv_sec; Seconds6 * suseconds_t tv_usec; Microseconds: microsecond 10^ ( -6) s, where the tv_sec is in microseconds7 *//Millisecond
Test code run time in Linux has a function to get the current time, accurate to microseconds----> gettimeofday ()1#include // int gettimeofday (struct timeval *tv, struct timezone *tz);2 /*********************************************3 * struct Timeval4 * {5 * time_t tv_sec; Seconds6 * suseconds_t tv_usec; Microseconds: microsecond 10^ ( -6) s, where the tv_sec is in microseconds7 *//Millisecond
There are 7 runtime run levels under LinuxRun Level 0 system shutdown state, the system default RunLevel cannot be set to 0, otherwise it will not start normallyRun Level 1 single user working status, root privilege, for system maintenance, remote login ForbiddenRun Level 2 multi-user state (no NFS)Run Level 3 full multiuser state (with NFS), enter console command line mode after loginRun Level 4 system not
In fact, using Cygwin to simulate a Linux environment to run Hadoop is very easy, and simply configure it to run a stand-alone Hadoop.
Here, the more critical is Cygwin installation, in the choice of installation must be installed OpenSSH, otherwise will not be successful, the following simple Cygwin installation and configuration:
download installat
1, through MyEclipse the project to generate Runnablejar file, such as Test.jar
2, create a new folder test, put the appropriate configuration file into this folder,
, put this folder under a Linux system path
3, in the Linux system environment, test path under the new two SH files, start.sh and stop.sh
(These two files need to be new in the Linux system en
Linux root partition utilization 100%, but the view/partition under the directory is not large, not occupied full, how to deal with this?Restart is sure to work, the current situation: after re-restart application, space released1, lsof | grep deletd2. Reboot restartLinux has a disk footprint of 100% and no large files have been found to run out of disk.Using DF-LH under LinuxWhen viewing disks:/DEV/SDA1 13
subdirectory, or the file has been set as executable. -C: If the file permissions have changed, the change action will be displayed- F: Do not display an error message if the file permissions cannot be changed-V: Show details of permission changes- R: The same permissions change for all files in the current directory and subdirectories (that is, they are changed in a recursive manner)--help: Show Auxiliary Instructions--version: Display version650) this.width=650; "src=" Http://www.linuxidc.com
file.Note Bind 127.0.0.1 First, or you cannot connect to another IPDaemonizze no change to daemonize YesAppendOnly no change to appendonly YesOpen the comment here, then add the password for a long time.3. Turn off the firewallSystemctl Stop Firewalld.service #关闭防火墙Firewall-cmd--state #查看防火墙是否关闭 not running#这样window才可以调用linuxApplication in window:Running Redis in Linux, and window calls Redis in Linux1, first Redis in
Installation and uninstallation of the. Run file under LinuxThe installation of the. Run file is simple, just add the executable property for the file, and you can perform the installation to VirtualBox installation file Virtualbox-3.1.6-59338-linux_x86.run As an example, you only need to enter the command: chmod +x Virtualbox-3.1.6-59338-linux_x86.
We have introduced how to use MeeGo SDK for MeeGo development on Linux. This article will introduce how to run MeeGo SDK on various popular Linux versions.Prerequisites
◆ You must have an effective popular Linux release (such as Fedora 13, Ubuntu 10.04LTS, OpenSUSE 11.3) and run
Provides various official and user-released code examples. For code reference, you are welcome to learn how to run scheduled tasks using crontab in CentOS and Linux.
More: http://www.gongfuxiang.com/post/1d0500b2_656ff75
Install crontab:Yum install crontabsNote:/Sbin/service crond start // start the service/Sbin/service crond stop // close the service/Sbin/service crond restart // restart the service/Sbin/s
In Linux, how does one allow scripts to run in linuxlinuxin the background? When the putty.exe window is closed, the scripts can still run normally. Originally, @ echo off @ title Test jar project runs independently. java-Xbootclasspath/:. /lib/commons-logging-1.1.jar ;. /lib/dom4j-1.6.1.jar ;. /lib/jaxen-1.1-beta-6.jar ;. /lib/log4j-1.2.13.jar ;. /lib/ojdbc6.jar
System Environment (CentOS 5)Create a scheduled task in Linux:(1) The first method is to configure the/etc/crontab file at the system running level. to execute all the scripts under/etc/daily at every day, the following format is used:USER Command Script path or directory by hour, day, month, and week18 15 * root run-parts/etc/cron. dailyNote: run-parts is used t
Linux connection vsftpd: 500 OOPS: vsftpd: refusing to run with writable root inside chroot () error, vsftpdrefusing
When a user cannot jump out of the main directory, this error is often encountered when the user logs on to FTP:
[Html]View plaincopy
500 OOPS: vsftpd: refusing to run with writable root inside chroot ()
This problem occurs at the latest due
In Linux, if you want to run the process in the background, we usually add to the end of the command. In fact, the command is put into a Job Queue:
$./Test. Sh [1] 17208 $ jobs-L [1] + 17208 running./test. Sh
For commands that have been executed in the foreground, you can also re-execute them in the background.CTRL + zPause a running process, and then useBGCommand to
Vs2013 Create python file, in the file is not entered in Chinese, encoded as utf-8 ,Then, after entering a few lines of Chinese, again with notepad++ to see its code as follows, in vs Run also error (run with cmd will not):Based on the experience, this is the problem of character encoding, try to convert the python file into utf-8 , directly on the notepad++ turn utf-8 no BOM encoded format, save, open vs,
One. Using superviseis a function of daemon-tools, the daemon of the system. It can be restarted automatically when the process is hung out.Two-Installationwget http://cr.yp.to/daemontools/daemontools-0.76.tar.gzTar zxvf *.tar.gz CD daemon/packageHere the code modifies the code, sed-i ' S/extern int errno;/#include Install, type supervise, installation completeAfter writing a script, create a folder, write the run script inside the folder, exit to th
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.