서버/CentOS Linux 설치 2016. 1. 29. 11:33

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
  2 # This file controls the state of SELinux on the system.
  3 # SELINUX= can take one of these three values:
  4 #     enforcing - SELinux security policy is enforced.
  5 #     permissive - SELinux prints warnings instead of enforcing.
  6 #     disabled - No SELinux policy is loaded.
  7 SELINUX=disabled  <--- 변경
  8 # SELINUXTYPE= can take one of these two values:
  9 #     targeted - Targeted processes are protected,
 10 #     mls - Multi Level Security protection.
 11 SELINUXTYPE=targeted

 

: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  ]

 


 

 

 

 


 

Posted by 김정우 강사(카카오톡 : kim10322)
,


Q