默认区域为 public。
开放指定端口:
firewall-cmd --zone=public --add-port=12345/tcp --permanent
firewall-cmd --reload
开放指定协议(例如 TCP / UDP 全端口 等):
firewall-cmd --zone=public --add-protocol=tcp --permanent
firewall-cmd --zone=public --add-protocol=udp --permanent
firewall-cmd --zone=public --add-protocol=icmp --permanent
firewall-cmd --reload
无论如何不要忘记Reload。
查看当前防火墙规则:
firewall-cmd --list-all
查看防火墙状态:
firewall-cmd --state
另外,防火墙服务相关设置:
重启防火墙服务:
systemctl restart firewalld
禁用防火墙开机服务(禁用开机自启):
systemctl disable firewalld
停止防火墙服务(一次性):
systemctl stop firewalld
查看防火墙服务状态:
systemctl status firewalld
启用防火墙服务(开机自启):
systemctl enable firewalld
启动防火墙(一次性):
systemctl start firewalld
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setCookieDomain", "*.tutugreen.com"]);
_paq.push(["setDomains", ["*.tutugreen.com","*.www.tutugreen.com","*.tutugreen.com","*.www.tutugreen.com"]]);
_paq.push(["enableCrossDomainLinking"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.prpr.cloud/piwik/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '4']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
console.log("%c( •̀ ω •́ )y)"," text-shadow: 0 1px 0 #ccc,0 2px 0 #c9c9c9,0 3px 0 #bbb,0 4px 0 #b9b9b9,0 5px 0 #aaa,0 6px 1px rgba(0,0,0,.1),0 0 5px rgba(0,0,0,.1),0 1px 3px rgba(0,0,0,.3),0 3px 5px rgba(0,0,0,.2),0 5px 10px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.2),0 20px 20px rgba(0,0,0,.15);font-size:5em;font-family:'Microsoft YaHei';font-weight:bold;color:#0066ff;");
console.log("%c欢 迎 来 到 丫 明 的 博 客 ♪(^∇^*)"," text-shadow: 0 1px 0 #ccc,0 2px 0 #c9c9c9,0 3px 0 #bbb,0 4px 0 #b9b9b9,0 5px 0 #aaa,0 6px 1px rgba(0,0,0,.1),0 0 5px rgba(0,0,0,.1),0 1px 3px rgba(0,0,0,.3),0 3px 5px rgba(0,0,0,.2),0 5px 10px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.2),0 20px 20px rgba(0,0,0,.15);font-size:5em;font-family:'Microsoft YaHei';font-weight:bold;color:#0066ff;");
console.log("博主的Email:yuanming@tutugreen.com,QQ:1619405173,有问题可以QQ咨询哦!Email定期查看。");
-->
Comments | NOTHING