When installing the database, the default is to turn off SELinux, the following commands we need to remember, in the wrong time may be used. Do not have any command to see the document, to professional.1. Version[[emailprotected] ~]# uname -aLinux roidb01 3.10.0-123.el7.x86_64 #1 SMP Mon May 5 11:16:57 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux[[emailprotected] ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.0 (Maipo)[[emailprotected] ~]#2. View commands[[emailprotected] ~]# g
Disable the CentOS 6 and CentOS 7 firewalls.
CentOS6.5 view the Firewall Status:
1
[Linuxidc @ localhost ~] $ Service iptable status
Display result:
1 2 3 4 5
[Linuxidc @ localhost ~] $ Service iptable status Redirecting to/bin/systemctl status iptable. service ● iptable. service Loaded: not-found (Reason: No such file or directory)
Use Firewall and centosfirewall in CentOS 7
In CentOS 7, a new service is introduced,FirewalldThe following figure shows the relationship and difference between Firewall and iptables.
To install it, you only need
yum install firewalld
If you need a graphical interface, install
yum install
portopening TCP 139 Netbios-ssn
(Allow access to TCP port 139)
Netsh firewall add portopening TCP 445 Netbios-ds
(Allow access to TCP port 445)
After the command is executed, all files and the ports required for file sharing are opened by the firewall.
(3). Allow ICMP echo
By default, external hosts are not allowed to Ping Windows 7 for security reasons. However
. Two batch processing files are written. One is to configure the Desktop Firewall to disable some dangerous ports, and the other is to restore the initial configuration of the Desktop Firewall.1. Configure the Desktop Firewall(1) Enable the Desktop Firewall netsh advfirewal
Use Firewall in CentOS 7
In CentOS 7, a new service is introduced,Firewalld, the following figure shows the relationship and difference between Firewall and iptables.
To install it, you only need
#yuminstallfirewalld
If you need a graphical interface, install
#yuminstallfirewall-config
I. IntroductionThe
Centos 7 Firewall Firewalld Open 80 port Chocolate release time: -- One- , -: -: 14 Categories: Linux browse:1943go back to the previous page open port 801Firewall-cmd--zone= Public--add-port= the/TCP--permanent appears success indicates the meaning of the Add Success command:--Zone #作用域--add-port= the/tcp #添加端口 in the format: Port/Communication Protocols--permanent #永久生效, fail to restart
Turn on port 801.Firewall-cmd --zone=public --add-port=/tcp --permanent Success appears to indicate added successCommand meaning:--zone #作用域--add-port=80/tcp #添加端口 in the format: Port/Communication protocol--permanent #永久生效, fail after reboot without this parameterRestarting the firewall1.systemctl Restart Firewalld.service1. Run, stop, disable FIREWALLDStart: # systemctl start FirewalldView Status: # Sys
The command to turn off a service such as a firewall in a previous release isService Iptables StopOr/etc/init.d/iptables stopTurn off boot:#chkconfig iptables offIn RHEL7, in fact, there is no such service[Email protected] ~]# cat/etc/redhat-releaseRed Hat Enterprise Linux Server Release 7.1 (MAIPO)[[Email protected] ~]# service iptables stopRedirecting To/bin/systemctl Stop Iptables.service[[email protected] ~]#/etc/init.d/iptables stop-bash:/etc/ini
Win7 Professional Control Panel> system and security> Windows Firewall> advanced settings for example, to allow other machines to access port 1521, you can create a rule in the inbound rule. Choose "inbound rules"> "right-click" new rule ">" rule type (port) ">" TCP or UDP ", open the port, and enter the following information as prompted by the wizard. Www.2cto.com note that a name can be set for the rule to facilitate future search, for example, "all
service at boot: systemctl disable Firewalld.serviceCheck if the service is booting: Systemctl is-enabled firewalld.serviceTo view a list of services that have been started: Systemctl List-unit-files|grep enabledTo view a list of services that failed to start: Systemctl--failed3. Configure Firewalld-cmdView version: Firewall-cmd--version view Help: Firewall-cmd-
CentOS 7 Open firewall Port command
Recently, the company's new server requirements with CentOS7, found that the previous CentOS 6 series of iptables related commands can not be used, check the next, found that CentOS 7 use FIREWALLD instead of the original iptables.
use the following methods:
>>> Shutdown Firewall
Sys
]: Stopped firewalld-dynamic firewall daemon.3. Check if the Firewall service is booting[Email protected] ~]#systemctl is-enabled firewalldEnabled #开启4. Turn off the firewall boot[Email protected] ~]#systemctl disable FIREWALLDRM '/etc/systemd/system/dbus-org.fedoraproject.firewalld1.service 'RM '/etc/systemd/system/ba
Enable iptables firewall in CentOS 7
In the latestIn CentOS 7 linux, the default firewall is changed to firewalld, replacing the previous iptables firewall. How can I enable the iptrables firewall again? This article will show you
start Firewalld.serviceStop: Systemctl Stop Firewalld.serviceDisable self-booting: Systemctl Disable Firewalld.serviceView current detailed status: Systemctl status Firewalld.serviceDisplay Status: Firewall-cmd--stateOpen port: Firewall-cmd--zone=public--add-port=80/tcp--permanent(--permanent parameter means permanent, otherwise it will expire after reboot)Delet
/service IPT Ables savethe Service Command supports only basic LSB actions (start, stop, restart, Try-restart, Reload, Force-reload, St ATUs). For other actions, please try the systemctl.# sudo service iptables statusredirecting to/bin/systemctl status iptable S.serviceiptables.service Loaded:not-found (reason:no such file or directory) active:inactive (dead) #/sbin/service Iptables savethe Service Command supports only basic LSB actions (start, stop, restart, Try-restart, Reload, force-reload
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.