CentOS에서 방화벽을 끄는 명령은 무엇입니까?

coldplay.xixi
풀어 주다: 2021-02-24 16:59:21
원래의
60427명이 탐색했습니다.

Centos 방화벽 종료 명령: 1. 일시적으로 종료합니다. 코드는 [systemctl stop Firewalld]입니다. 2. 시작을 비활성화합니다. 코드는 [systemctl 비활성화 방화벽d]입니다.

CentOS에서 방화벽을 끄는 명령은 무엇입니까?

이 기사의 운영 환경: Windows7 시스템, centos6&¢os7 버전, Dell G3 컴퓨터.

centos close Firewall 명령:

CentOS6다음 명령을 사용하여 방화벽을 닫습니다.

//临时关闭
service iptables stop
//禁止开机启动
chkconfig iptables off
로그인 후 복사

CentOS7에서 동일한 명령을 사용하면 오류가 보고됩니다.

stop  iptables.service
Failed to stop iptables.service: Unit iptables.service not loaded.
로그인 후 복사

방화벽은 CentOS7 버전 이후 기본적으로 Firewalld를 사용하므로 CentOS7에서 방화벽을 끄려면

//临时关闭
systemctl stop firewalld
//禁止开机启动
systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
로그인 후 복사

명령을 사용합니다. 물론 iptables-service가 설치되어 있으면

yum install -y iptables-services
//关闭防火墙
service iptables stop
Redirecting to /bin/systemctl stop  iptables.service
//检查防火墙状态
service iptables status
Redirecting to /bin/systemctl status  iptables.service
鈼iptables.service - IPv4 firewall with iptables
   Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
로그인 후 복사

명령을 사용할 수도 있습니다. 관련 무료 권장 사항 : 프로그래밍 동영상 강좌

위 내용은 CentOS에서 방화벽을 끄는 명령은 무엇입니까?의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

관련 라벨:
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!