当前位置:网站首页>杀死进程-查看防火墙状态
杀死进程-查看防火墙状态
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)
边栏推荐
- Open Source Machine Learning Database OpenMLDB Contributor Program Fully Launched
- js learning advanced (event senior pink teacher teaching notes)
- 【无标题】
- Promise 中状态改变和回调执行先后顺序 和promise多次回调
- promise 改变状态的方法和promise 的then方法
- promise.all 学习(多个promise对象回调)
- jdbc接口文档参考,jdbc接口方法逻辑探究
- Day 83
- USB URB
- 构建面向特征工程的数据生态 ——拥抱开源生态,OpenMLDB全面打通MLOps生态工具链
猜你喜欢
USB 枚举过程中8 字节标准请求解析
Interpretation of the paper: GAN and detection network multi-task/SOD-MTGAN: Small Object Detection via Multi-Task Generative Adversarial Network
JS进阶网页特效(pink老师笔记)
He Kaiming's new work ViTDET: target detection field, subverting the concept of layered backbone
Day 86
JS advanced web page special effects (pink teacher notes)
论文解读TransFG: A Transformer Architecture for Fine-grained Recognition
ARM assembly instruction ADR and LDR
经纬度求距离
JVM tuning and finishing
随机推荐
厂商推送平台-华为接入
scanf函数在混合接受数据(%d和%c相连接)时候的方式
JS事件循环机制
端口的作用
OpenMLDB Pulsar Connector:高效打通实时数据到特征工程
经纬度求距离
精彩联动 | OpenMLDB Pulsar Connector原理和实操
Open Source Machine Learning Database OpenMLDB Contributor Program Fully Launched
Interpretation of the paper: GAN and detection network multi-task/SOD-MTGAN: Small Object Detection via Multi-Task Generative Adversarial Network
openlayer中实现截图框截图的功能
Real-time Feature Computing Platform Architecture Methodology and Practice Based on OpenMLDB
Event Preview | On April 23, a number of wonderful sharing sessions of OpenMLDB will come, which will live up to the good time of the weekend
本地缓存cookie的使用
Vscode远程连接服务器终端zsh+Oh-my-zsh + Powerlevel10 + Autosuggestions + Autojump + Syntax-highlighting
Day 79
Argparse模块 学习
构建面向特征工程的数据生态 ——拥抱开源生态,OpenMLDB全面打通MLOps生态工具链
8-byte standard request parsing during USB enumeration
vscode插件开发——懒人专用markdown插件开发
Vscode remote connection server terminal zsh+Oh-my-zsh + Powerlevel10 + Autosuggestions + Autojump + Syntax-highlighting