#关闭SELinux
sed -i '/^SELINUX=/c SELINUX=disabled' /etc/selinux/config
#关闭防火墙
systemctl disable --now firewalld
#支持光盘,/m-+9*-8-86------------isc/cd对应就是光盘内容
yum -y install autofs
systemctl enable --now autofs
#修改网卡名称
[root@rocky8 ~]#sed -ri '/GRUB_CMDLINE_LINUX=/s#(.*)"$#\1 ifnames=0"#' /etc/default/grub
[root@rocky8 ~]#grub2-mkconfig -o /boot/grub2/grub.cfg ;reboot
#安装软件
yum -y install lrzsz
yum -y install dos2unix
yum -y install vim
yum -y install httpd
1. 开发工具组:
yum -y groupinstall "Development Tools" # CentOS 7 或更早
dnf -y groupinstall "Development Tools" # CentOS 8 或更高
2. 文本编辑器:
yum -y install nano vim # CentOS 7 或更早
dnf -y install nano vim # CentOS 8 或更高
3. 网络工具:
yum -y install curl wget # CentOS 7 或更早
dnf -y install curl wget # CentOS 8 或更高
4. 进程查看和管理工具:
yum -y install htop screen # CentOS 7 或更早
dnf -y install htop screen # CentOS 8 或更高
5. YUM/DNF 插件和实用工具:
yum -y install yum-utils # CentOS 7 或更早
dnf -y install dnf-plugins-core # CentOS 8 或更高
6. SSH 服务端:
yum -y install openssh-server # CentOS 7 或更早
dnf -y install openssh-server # CentOS 8 或更高
7. 图形界面相关(桌面环境需要):
yum -y install firefox # CentOS 7 或更早
dnf -y install firefox # CentOS 8 或更高
yum -y install libreoffice # CentOS 7 或更早
dnf -y install libreoffice # CentOS 8 或更高
yum -y install gimp # CentOS 7 或更早
dnf -y install gimp # CentOS 8 或更高
8. 系统监控:
yum -y install glances # CentOS 7 或更早,可能需要 EPEL 仓库
dnf -y install glances # CentOS 8 或更高
#配置仓库
系统源,EPEL源
#最小化安装系统后,建议安装常用软件
yum -y install autofs vim-enhanced tcpdump autofs chrony lrzsz tree telnet ftp lftp redhat-lsb-core bash-completion net-tools postfix wget bzip2 zip unzip xz lsof mlocate man-pages rsync
#Ubuntu系统
apt install iproute2 ntpdate tcpdump telnet traceroute nfskernel-server nfs-common lrzsz tree openssl libssl-dev libpcre3 libpcre3-dev
zlib1g-dev gcc openssh-server iotop unzip zip
#