CentOS 7 Minimal 常用软件工具安装指南

一、系统工具类

1. 网络工具

bash 复制代码
yum install -y net-tools    # ifconfig, netstat
yum install -y wget curl    # 下载工具
yum install -y telnet       # 网络测试
yum install -y bind-utils   # nslookup, dig

2. 系统监控

bash 复制代码
yum install -y epel-release  # 先安装 EPEL 源
yum install -y htop         # 增强型任务管理器
yum install -y iotop        # I/O 监控
yum install -y nethogs      # 网络流量监控

3. 文本编辑和查看

bash 复制代码
yum install -y vim         # 文本编辑器
yum install -y tree        # 树形目录显示
yum install -y lsof        # 查看打开文件
yum install -y psmisc      # killall, pstree

二、开发工具类

1. 编译环境

bash 复制代码
yum groupinstall -y "Development Tools"
yum install -y gcc-c++ make cmake

2. 版本控制

bash 复制代码
yum install -y git
yum install -y subversion

3. 运行环境

bash 复制代码
yum install -y java-1.8.0-openjdk
yum install -y python3
yum install -y perl

三、服务管理类

1. Web 服务器

bash 复制代码
yum install -y httpd       # Apache
systemctl start httpd
systemctl enable httpd

2. 数据库

bash 复制代码
yum install -y mariadb-server mariadb
systemctl start mariadb
systemctl enable mariadb

3. SSH 增强

bash 复制代码
yum install -y openssh-server openssh-clients
systemctl start sshd
systemctl enable sshd

四、实用小工具

1. 压缩解压

bash 复制代码
yum install -y unzip zip
yum install -y bzip2
yum install -y tar

2. 时间同步

bash 复制代码
yum install -y ntpdate
ntpdate time.windows.com

3. 文件传输

bash 复制代码
yum install -y lrzsz       # rz/sz 命令
yum install -y vsftpd      # FTP 服务器

五、一键安装脚本

常用工具集合

bash 复制代码
yum install -y epel-release
yum install -y vim wget curl git tree htop net-tools lsof unzip

开发环境集合

bash 复制代码
yum groupinstall -y "Development Tools"
yum install -y java-1.8.0-openjdk python3 httpd mariadb-server

六、配置建议

1. 更新系统

bash 复制代码
yum update -y

2. 清理缓存

bash 复制代码
yum clean all

3. 禁用不需要的服务

bash 复制代码
systemctl stop postfix    # 邮件服务
systemctl disable postfix

七、总结

  • 必装工具:vim, wget, net-tools, epel-release
  • 推荐监控:htop, iotop, nethogs
  • 开发环境:Development Tools, git, java, python3

根据实际需求选择安装,避免安装不必要的软件以保持系统轻量。

相关推荐
少司府4 小时前
嵌入式外设篇(二)GPIO·二:GPIO输出与LED控制
linux·stm32·单片机·嵌入式硬件·mcu·51单片机·系统
Rabitebla5 小时前
【Linux操作系统】 文件篇(一):文件描述符与 Linux 文件管理机制
linux·网络·c++·笔记·学习
发疯的技术鼠6 小时前
03-优先级与调度
linux
无足鸟ICT8 小时前
【RHCA+】sosreport(收集诊断文档)
linux·运维·服务器
GeW8 小时前
世界目光聚焦中国:底层技术、Linux、数据库的破局逻辑
linux·数据库
IT大白鼠8 小时前
当 AI 开始自动化渗透:FBI ARTEX 警报的防守对策
运维·人工智能·自动化
Decay__9 小时前
SQLServer 运维自动化平台 —— PowerShell + SQL Agent 作业:部署、监控、巡检、告警、工单闭环一体化
运维·数据库·sql·mysql·架构
A-刘晨阳9 小时前
K8S 二进制集群搭建(一主两从)v1.37.2 版本
运维·云原生·容器·kubernetes·calico·nerdctl
tonydf9 小时前
没完了,Nginx又报新漏洞!
运维·nginx
星恒随风10 小时前
MySQL 从零入门(十):MVCC、Undo Log 与 Read View 详解——InnoDB 如何实现事务隔离?
linux·数据库·笔记·sql·mysql