CentOS Linux 설치 - 8. 'SELinux' 해지 & 'Sendmail' 패키지 설치
8. 'Sendmail' 패키지 설치
[root@CentOS /test]# chkconfig --list iptables
iptables 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제
[root@CentOS /test]# chkconfig iptables off
[root@CentOS /test]# service iptables stop
iptables: 체인을 ACCEPT 규칙으로 설정 중: filter [ OK ]
iptables: 방화벽 규칙을 지웁니다: [ OK ]
iptables: 모듈을 언로드하는 중: [ OK ]
[root@CentOS /test]# vi /etc/sysconfig/selinux
1
:wq! |
[root@CentOS /test]# reboot
[참고] SELinux 임시 비활성화
[root@main /root]# setenforce 0
[root@CentOS /root]# yum -y install sendmail
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: data.nicehosting.co.kr
* extras: data.nicehosting.co.kr
* updates: data.nicehosting.co.kr
Package sendmail-8.14.4-9.el6.x86_64 already installed and latest version
Nothing to do
[root@CentOS /root]# chkconfig sendmail on
[root@CentOS /root]# service sendmail restart
sm-client을 종료하고 있습니다: [ OK ]
sendmail 종료 중: [ OK ]
sendmail (을)를 시작 중: [ OK ]
sm-client을 시작하고 있습니다: [ OK ]