centos7最小版配置

centos7最小版配置

1. 配置启用dns

cd /etc/sysconfig/network-scripts/
vi ifcfg-ens33

# 修改ONBOOT为yes
ONBOOT=yes

2. 重启系统

reboot

3. 安装net-tools

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
posted @ 2020-01-21 08:59  喵喵扑  阅读(1565)  评论(0编辑  收藏  举报