Fork bombs operate both by consuming CPU time in the process of forking, and by saturating the [operating system]'s process table.
A basic implementation of a fork bomb is an infinite loop that repeatedly launches the same process
:(){ :|:& };:
可以通過(guò)修改 /etc/security/limits.conf 限制最大進(jìn)程數(shù)