User Tools

Site Tools


управление_ядром_и_модулями_в_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
управление_ядром_и_модулями_в_linux [2021/02/23 12:35]
val [Переменные ядра]
управление_ядром_и_модулями_в_linux [2025/12/21 07:57] (current)
val [core dump]
Line 16: Line 16:
 # modinfo e1000 # modinfo e1000
  
-# modprobe ​ip_gre+# modprobe ​br_netfilter
  
-# modprobe -r ip_gre +# ###modprobe -r br_netfilter
- +
-# iptables -L +
- +
-# lsmod | grep ip+
  
 # cat /​etc/​modules # cat /​etc/​modules
 +  или
 +# cat /​etc/​modules-load.d/​my.conf
 +</​code><​code>​
 +...
 +br_netfilter
 </​code>​ </​code>​
  
 +===== Сообщения ядра =====
 +<​code>​
 +$ dmesg -T
 +</​code>​
 ===== Переменные ядра ===== ===== Переменные ядра =====
  
Line 35: Line 40:
  
 # sysctl net.ipv4.ip_default_ttl=2 # sysctl net.ipv4.ip_default_ttl=2
 +
 +# ###sysctl -w net.ipv4.ping_group_range="​1 65535"
  
 # cat /​etc/​sysctl.conf # cat /​etc/​sysctl.conf
  
 # sysctl -f # sysctl -f
 +</​code>​
 +
 +==== core dump ====
 +
 +  * [[https://​lwn.net/​Articles/​104341/​|PATCH:​ setuid core dump take 2]]
 +
 +<​code>​
 +# sysctl fs.suid_dumpable=2
 +
 +# sysctl kernel.core_pattern=/​var/​coredumps/​%e-%p.core
 +
 +# mkdir /​var/​coredumps/​
 +
 +# ulimit -c unlimited
 +
 +# sleep 20 & pkill -11 sleep
 +
 +# ls -l /​var/​coredumps/​
 +</​code>​
 +
 +  * [[https://​unix.stackexchange.com/​questions/​345595/​how-to-set-ulimits-on-service-with-systemd|How to set ulimits on service with systemd?]]
 +  * [[Управление сервисами в Linux#​Настройка параметров запуска в Systemd]]
 +
 +<​code>​
 +# ps ax | grep ssh
 +
 +# kill -11 <PID>
 </​code>​ </​code>​
  
управление_ядром_и_модулями_в_linux.1614072946.txt.gz · Last modified: 2021/02/23 12:35 by val