CentOS   发布时间:2022-04-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了centOS常用命令大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

解压tar.gz 解压到当前文件夹:tar -xzvf **.tar.gz 解压到指定文件夹:tar -xzvf **.tar.gz -C /develop/program_files/tomcat/  参考文章:https://www.cnblogs.com/wangluochong/p/7194037.html   查看具体端口被占用:netstat -tlnp |grep 80  lsof

解压tar.gz

解压到当前文件夹:tar -xzvf **.tar.gz

解压到指定文件夹:tar -xzvf **.tar.gz -C /develop/program_files/tomcat/ 

参考文章https://www.cnblogs.com/wangluochong/p/7194037.html

 

查看具体端口被占用:netstat -tlnp |grep 80

 lsof -i :80

 

查看所有进程:ps -A

查看java相关的进程:ps -ef|grep java

删除进程:kill -9 14070

 

查看认防火墙状态:firewall-cmd --state

systemctl stop firewalld.service #停止firewall

systemctl disable firewalld.service #禁止firewall开机启动

编辑防火墙配置文件:vi /etc/sysconfig/iptables

参考文章https://www.linuxidc.com/Linux/2015-05/117473.htm

 

关闭防火墙:service iptables stop 启动防火墙:service iptables start 重启防火墙:service iptables restart 查看防火墙状态:service iptables status 

大佬总结

以上是大佬教程为你收集整理的centOS常用命令全部内容,希望文章能够帮你解决centOS常用命令所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: