Saturday, January 7, 2012

Run level & SElinux

[root@localhost named]    chkconfig -- list vsftpd
[root@localhost named]    service servicename status
[root@localhost named]    chkconfig --level 5 vsftpd off
[root@localhost named]    chkconfig vsftpd off
[root@localhost named]     chkconfig --level 35 vsftpd on
[root@localhost named]    chkconfig --list 

=========SElinux===========

[root@localhost named]    getenforce
[root@localhost named]    setenforce 1
[root@localhost named]    setenforce 0
[root@localhost named]    vim /etc/selinux/config

We can use this file to entry this function.