Centos 7常用操作记录
进程相关
搜索某一个进程(以进程Server为例)
ps -ef | grep 进程名 # 根据进程名查看进程信息 |
举例
ps -ef | grep Server |
关闭进程
kill -9 端口号 |
举例:例如要关闭端口号为8088的进程
kill -9 8088 |
防火墙相关
放行端口
firewall-cmd --zone=public --add-port=4568/tcp --permanent # 开放4568端口 |
基本命令
查看当前命令
pwd |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Ruvikm!