建站服务器
centos 7.0默认使用的是firewall作为防火墙。
常用firewall命令
点击(此处)折叠或打开
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
firewall-cmd — state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)
操作示例
查看防火墙状态
点击(此处)折叠或打开
[hoegh@localhost desktop]$ firewall-cmd –state
running
关闭防火墙
点击(此处)折叠或打开
[hoegh@localhost desktop]$ systemctl stop firewalld.service
policykit daemon disconnected from the bus.
we are no longer a registered authentication agent.
policykit daemon reconnected to bus.
attempting to re-register as an authentication agent.
we are now a registered authentication agent.
[hoegh@localhost desktop]$
[hoegh@localhost desktop]$ firewall-cmd –state
not running
[hoegh@localhost desktop]$
禁止自动启动
点击(此处)折叠或打开
[hoegh@localhost desktop]$
[hoegh@localhost desktop]$ systemctl disable firewalld.service
removed symlink /etc/systemd/system/dbus-org.fedoraproject.firewalld1.service.
removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
[hoegh@localhost desktop]$
~~~~~~~ the end~~~~~~~~~
hoegh
2017.11.3
网站域名会过期吗? 域名过期网站还有用吗?谷歌CEO皮查伊:支持经合组织达成全球性数字税方案个人建站适合租用云服务器吗腾讯云服务器怎么修改系统吗服务器被攻击问题-云服务器问题域名转出取消-域名及账户问题阿里云服务器挂steam2020低价阿里云服务器购买攻略-上云年中促服务器专场