Debian first experience 3

xiaoxiao2021-03-06  55

* When starting, run the user program in Redhat and some of the other Linux release, users can edit /etc/rc.d/rc.local to implement the initiatope when starting. But DEBIAN does not have this file, what should I do?

1 Log in with root, create a shell script /etc/init.d/local 2 Write in the content you want to execute during start, such as #! / Bin / sh

/ home / int / bin / datapipe ... (running you want)

3 Make Local's execution permission

CHMOD u x /etc/init.d/local

4 Add LOCAL to the startup item

Update-rc.d local defaults 80 (this command Update-rc.d is what I don't understand)

Reboot can be restarted

Reference: http://www.desktop-linux.net/debian-rclocal.htm

* What is a Defunct process When I use PS -A to view the current process, some processes follow Defunct

, what does it mean?

Suppose P is the parent process, S is the child process coming out. When S ends, the system must send S's exit code to p. P Receipt The system will delete S's PCB. When S has exited, but the system I haven't sent an exit code to p. If we use the PS to view the process list, then S will be marked as defunct.

, s is the so-called '' zombie '' process.

Reference: http://www.fanqiang.com/a1/b5/20020417/080200185.html

转载请注明原文地址:https://www.9cbs.com/read-118148.html

New Post(0)