OS/CentOS&Rocky

Rocky 9 콘솔 로그 제거

Lawmin 2025. 4. 11. 14:12

Rocky 9 의 단순 안내성 console log 없애는 방법입니다.

 

$ echo "kernel.printk = 3 4 1 7" >> /etc/sysctl.conf && sysctl -p

 

[참고] ansible playbook

---
- name: Set kernel.printk value persistently and immediately
  hosts: all
  become: true
  tasks:

    - name: Set kernel.printk using sysctl module
      ansible.posix.sysctl:
        name: kernel.printk
        value: "3 4 1 7"
        state: present
        sysctl_file: /etc/sysctl.conf
      tags: kernel