1. 문제 상황
CentOS 7에서 방화벽을 열려고 firewall 관련 명령을 입력했는데
FirewallD is not running 이라는 에러가 발생했다.
2. 해결 방법
아래 명령을 통해 실행시킨 뒤 다시 사용하면 정상적으로 작동한다.
systemctl start firewalld
3. 사용법
# check the status of the service (running and enabled)
systemctl status firewalld
# if the service is not running, start it
systemctl start firewalld
# 에러발생시 Failed to start firewalld.service: Unit is masked.
systemctl unmask firewalld
# if the service has exited, restart it(check for error if any)
systemctl restart firewalld
# if the service is not enabled, enable it
systemctl enable firewalld
참고 사이트