当前位置:网站首页>杀死进程-查看防火墙状态
杀死进程-查看防火墙状态
2022-08-11 05:29:00 【十月一养猪120斤】
杀死指定进程
1、检查进程是否在运行:
查看指定端口运行状态:ps -ef|grep 端口名称
查看所有程序运行的pid:netstat -nap
查找指定端口的pid:netstat -anp |grep 端口名称
2、找出占用这个端口的进程,并且杀死:
kill -9 PID
事实上ps+kill-9 PID足已解决一般问题
防火墙状态
1:查看防火墙状态
systemctl status firewalld.service(开启Active: active (running)-关闭Active: failed (Result: timeout))
service iptables status
2:暂时关闭防火墙
systemctl stop firewalld.service
service iptables stop
3:永久关闭防火墙
systemctl disable firewalld.service
chkconfig iptables off
4:重启防火墙
systemctl enable firewalld.service
service iptables restart (6.0版本)
5:永久关闭后重启
//暂时还没有试过
chkconfig iptables on
6开启防火墙状态
systemctl start firewalld.service
7查看默认防火墙状态
firewall-cmd --state(关闭后显示not running,开启后显示running)
边栏推荐
猜你喜欢

Tinker的自我介绍

The Summer of Open Source 2022 is coming | Welcome to sign up for the OpenMLDB community project~

The whole process of Tinker access --- Compilation

论文解读:跨模态/多光谱/多模态检测 Cross-Modality Fusion Transformer for Multispectral Object Detection

父子节点数据格式不一致的树状列表实现

ARM assembly instruction ADR and LDR

场景驱动的特征计算方式OpenMLDB,高效实现“现算先用”

2021年vscode终端设置为bash模式

Fourth Paradigm OpenMLDB optimization innovation paper was accepted by VLDB, the top international database association

Day 81
随机推荐
Day 72
活动预告 | 4月23日,多场OpenMLDB精彩分享来袭,不负周末好时光
Promise.race学习(判断多个promise对象执行最快的一个)
JS小技巧,让你编码效率杠杠的,快乐摸鱼
Tinker的自我介绍
智能风控中台设计与落地
Day 73
系统性能及并发数的一些计算公式
Scene-driven feature calculation method OpenMLDB, efficient implementation of "calculate first use"
PAT乙级刷题之路
The role of the port
使用c语言实现井字棋(有源码,可以直接运行)
promise 改变状态的方法和promise 的then方法
OpenMLDB v0.5.0 released | Performance, cost, flexibility reach new heights
USB URB
C语言实现简易扫雷(附带源码)
promise.all 学习(多个promise对象回调)
Certificate of SearchGuard configuration
js 学习进阶(Dom部分 pink老师教学笔记)
three.js基础学习