ubuntu系统下apparmor的配置和关闭

1,查看apparmor的开启和保护情况

apparmor_status

2,查看apparmor所有可用配置文件

ls /etc/apparmor.d/

3,禁用apparmor for mysql server

ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
apparmor_parser -R /etc/apparmor.d/disable/usr.sbin.mysqld

再执行apparmor_status,没有/usr/sbin/mysqld
4,禁用apparmor:
systemctl disable apparmor

本文链接地址: https://danteng.org/config-and-disable-apparmor-on-ubuntu/