此文章收录-最小化安装后的系统初始化-持续更新
CentOS最小化安装建议安装常用包
yum -y install gcc make autoconf gcc-c++ glibc glibc-devel pcre pcre-devel openssl openssl-devel systemd-devel zlib-devel vim lrzsz tree tmux lsof tcpdump wget net-tools iotop bc bzip2 zip unzip nfs-utils man-pages redhat-lsb-core postfix mailx bash-completion man-pages httpd createrepo apr-devel apr-util-devel redhat-rpm-config
CentOS 必须做的操作初始化
systemctl disable --now firewalld # 关闭防火墙
vi /etc/selinux/config
SELINUX=disabled #关闭SELINUX
Ubuntu 建议安装常用包
apt purge ufw lxd lxd-client lxcfs liblxc-common
apt -y install iproute2 ntpdate tcpdump telnet traceroute nfs-kernel-server nfs-common lrzsz tree openssl libssl-dev libpcre3 libpcre3-dev zlib1g-dev gcc openssh-server iotop unzip zip apt-file make libapr1-dev libaprutil1-dev
安装和配置邮件系统
yum -y install postfix;systemctl enable --now postfix
vim /etc/mail.rc
set from=*******@qq.com
set smtp=smtp.qq.com
set smtp-auth-user=******@qq.com
set smtp-auth-password=*******
此处补充各个安装包的用途
yum -y install vim #vim文本编辑器
yum -y install net-tools #ifconfig 依赖包
Hello Word !

浙公网安备 33010602011771号