메뉴 닫기

커널패닉시 자동 리부팅 설정

가끔가다가 커널패닉상태로 고객님서버가 반응이없을때가 있었습니다.

그래서 커널패닉이 일어날시 문제점을 해결하거나 자동 리부팅이 되게 설정하는 방법이 좋습니다.

 

[root@localhost ~]#  vi /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 1
# 패닉발생을 위한 임시대처로 추가해준 부분
kernel.panic = 3

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

[적용확인]
[root@localhost ~]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 1
kernel.panic = 3     
kernel.core_uses_pid = 1

 

 

[polldaddy rating=”7739789″]

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x