基本常用命令:
1 如何查看系统版本:
[root@quality-cats-1 ~]# cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)
2 如何查看端口使用情况:
lsof -i:8080
如果提示没有,yum安装即可
[root@quality-cats-1 ~]# lsof
-bash: lsof: command not found
[root@quality-cats-1 ~]# yum install lsof
3 常见问题
3.1 yum 命令报错 “ There are no enabled repos ” —— yum repolist 为 0,yum list 正常时