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

LINUX常用命令记录

时间:2020-08-14 23:18:14      阅读:79      评论:0      收藏:0      [点我收藏+]

标签:not   lin   linux常用命令   emctl   dir   direct   iptables   cmd   list   

1、判断端口是否开放

查到结果存在监听,则说明端口号已经开放

[root@zxone ~]# netstat -an | grep 8080
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN 

2、判断防火墙是否开启运行

[root@zxone ~]# service  iptables status
Redirecting to /bin/systemctl status iptables.service
Unit iptables.service could not be found.
[root@zxone ~]# firewall-cmd --list-all  #查看防火墙开启端口列表

 

LINUX常用命令记录

标签:not   lin   linux常用命令   emctl   dir   direct   iptables   cmd   list   

原文地址:https://www.cnblogs.com/zxone/p/13500722.html

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