-
The safest way to kill a process is to simply use the kill command.
First use the ps -ef command to determine the pid you want to kill the process, and then enter the following command:
# kill -pid
Note: The standard kill command usually serves the purpose. Terminate the problematic process and release the process's resources to the system. However, if a process starts a child process and only kills the parent process, the child process is still running and therefore still consumes resources.
To prevent these so-called "zombie processes", you should make sure that you kill all of your child processes before killing the parent process.
Determine the PID or PPID of the process you want to kill
# ps -ef |grep httpd* ends the process in an elegant way.
# kill -l pid
The l option tells the kill command to end the process as if the user who started the process has logged out. When this option is used, the kill command also tries to kill the child processes left behind.
-
#!/bin/bash while [ 1 ] do echo "restart firefox"pgrep firefox &&&killall -9 firefox sleep 1 firefox &> dev null & sleep 30 done shell script: Reboot every 30 seconds, change the number "30" to set the time.
-
If you want to run the webshellkill software under centos, then you need to correspond to the webshellkill software under the linux system, which is generally executed under the linux system. SH suffix to run the script file, will not run automatically.
-
#!/bin/bash
while [ 1 ]
doecho "restart firefox"
pgrep firefox &&killall -9 firefox
sleep 1
firefox &>/dev/null &sleep 30
doneshell script:
Restart every 30 seconds, and modify the number "30" to set the time.
When you install Oracle, the setup wizard prompts you to create an Oracle user to manage Oracle. This user is usually called 'oracle'. >>>More
It depends on the composition of your conditioner, but our general conditioner is a nutritional ingredient, even if it is not good for the body, it will not be harmful, don't worry.
Have you set a password for your administrator account, and do you remember if so? If you don't set or remember, please press F8 to enter safe mode when you boot up, enter this super administrator account and set up a new administrator account. Delete the administrator account that you forgot the password for, and back up your personal documents in that account before deleting.
select * from user_recyclebin where original_name='tuser'; >>>More
If you accidentally swallow mouthwash, if you only swallow a small amount of mouthwash, you don't have to worry, as long as you rinse your mouth with water a little, you can drink a little more water to speed up the discharge of harmful substances in the body, and you can also drink a little milk in moderation to relieve discomfort. >>>More