码迷,mamicode.com
首页 > 系统相关 > 详细

linux学习 三 redhat

时间:2018-03-22 10:48:46      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:技术   systemctl   str   nbsp   wal   执行   firewalld   span   开启   

1: 查看redhat版本号。

技术分享图片

 2:   防火墙中加入8080 

  •  查看防火墙状态,root用户登录,执行命令systemctl status firewalld
  •  开启防火墙:systemctl start firewalld
  •  关闭防火墙:systemctl stop firewalld
  •  放行端口:firewall-cmd --add-port=8080/tcp,此处需要注意cmd和--之间有空格

 

技术分享图片

 

linux学习 三 redhat

标签:技术   systemctl   str   nbsp   wal   执行   firewalld   span   开启   

原文地址:https://www.cnblogs.com/liufei1983/p/8621492.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!