centos7最小版配置
1. 配置啟用dns
cd /etc/sysconfig/network-scripts/
vi ifcfg-ens33
# 修改ONBOOT為yes
ONBOOT=yes
2. 重啟系統
reboot
yum install net-tools
4. 查看ip
ifconfig
5. 安裝openssh、openssl 並啟動
# 安裝
yum install openssh*
yum -y install openssl openssl-devel patch
# 啟動
systemctl start sshd
6. 安裝vim
yum -y install vim
7. 安裝wget
yum -y install wget
8. 安裝gcc編譯套件
yum install gcc
9. 安裝systemctl自動補全服務名稱
yum install -y bash-completion
10. 安裝zip壓縮解壓工具
yum install -y unzip zip
11. 安裝curl
yum -y install curl
12. 安裝lsof,列出當前系統打開文件的工具
yum install lsof -y
13. 文件上傳下載
yum -y install lrzsz
14. 安裝網絡監聽iftop
# 先安裝epel-release
yum install epel-release
# 然后在安裝iftop
yum install iftop
15. 進程監控工具htop(升級版top)
yum install htop -y
16. 文件樹tree
yum install tree -y
17. 服務器資源監控glances
yum install epel* -y
yum install python-pip python-devel -y
yum install glances -y
18.服務器信息查看redhat-lsb
yum install -y redhat-lsb
# 執行指令
lsb_release -a
# 輸出如下信息,可看出系統的版本信息
[root@localhost ~]# lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.6.1810 (Core)
Release: 7.6.1810
Codename: Core
19.yum工具包
yum -y install yum-utils