°Ô½Ã¹° 1,358°Ç
   
selinux install
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2023-03-17 (±Ý) 08:19 Á¶È¸ : 208
±ÛÁÖ¼Ò :
                                
https://linuxconfig.org/how-to-disable-enable-selinux-on-ubuntu-20-04-focal-fossa-linux

# apt install ifupdown ifenslave
# apt install policycoreutils selinux-utils selinux-basics

root@ceph-sata-osd191:~# selinux-activate 
Activating SE Linux
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-144-generic
Found initrd image: /boot/initrd.img-5.4.0-144-generic
Found linux image: /boot/vmlinuz-5.4.0-124-generic
Found initrd image: /boot/initrd.img-5.4.0-124-generic
Found linux image: /boot/vmlinuz-5.4.0-42-generic
Found initrd image: /boot/initrd.img-5.4.0-42-generic
done
SE Linux is activated.  You may need to reboot now.


root@ceph-sata-osd191:~# sestatus 
SELinux status:                 disabled


root@ceph-sata-osd191:~# selinux-config-enforcing
Configured enforcing mode in /etc/selinux/config for the next boot.
This can be overridden by "enforcing=0" on the kernel command line.

root@ceph-sata-osd191:~# reboot 

semanage permissive -a zabbix_t
semanage permissive -a zabbix_agent_t
systemctl stop zabbix-agent.service
systemctl reset-failed zabbix-agent.service
systemctl start zabbix-agent.service
systemctl status zabbix-agent.service


/bin/Megaraid  >> sulinux polocy...

cp /bin/Megaraid /usr/sbin/
/usr/lib/nagios/plugins/check_megaraid_sas
  #my $megaclibin = '/bin/MegaCli';  # the full path to your MegaCli binary
  my $megaclibin = '/usr/sbin/MegaCli';  # the full path to your MegaCli binary
  #my $megacli = "sudo $megaclibin";      # how we actually call MegaCli
  my $megacli = "$megaclibin";      # how we actually call MegaCli


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.