记录一些CentOS的基本软件安装。
版本:
[root@localhost java]$ cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
[root@localhost java]$ uname -r
3.10.0-862.14.4.el7.x86_64
1:更新yum
[root@731a23b79fc7 /]# yum update -y
2:安装ifconfig
[root@731a23b79fc7 /]# yum search ifconfig
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
* base: mirrors.nju.edu.cn
* extras: mirrors.huaweicloud.com
* updates: mirrors.huaweicloud.com
=================================Matched: ifconfig========================================
net-tools.x86_64 : Basic networking tools
[root@731a23b79fc7 /]# yum install net-tools.x86_64 -y
3:安装,启动,开机启动sshd
// 安装
[root@731a23b79fc7 /]# yum install openssh-server -y
// 启动
[root@731a23b79fc7 /]# systemctl start sshd.service
// 开机启动
[root@731a23b79fc7 /]# systemctl enable sshd.service
4:安装vim
[root@705d10498821 usr]# yum search vim
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.huaweicloud.com
* updates: mirrors.aliyun.com
===================================== N/S matched: vim ===================================
protobuf-vim.x86_64 : Vim syntax highlighting for Google Protocol Buffers descriptions
vim-X11.x86_64 : The VIM version of the vi editor for the X Window System
vim-common.x86_64 : The common files needed by any version of the VIM editor
vim-enhanced.x86_64 : A version of the VIM editor which includes recent enhancements //包含了最近改进的VIM编辑器的一个版本。
vim-filesystem.x86_64 : VIM filesystem layout
vim-minimal.x86_64 : A minimal version of the VIM editor
Name and summary matches only, use "search all" for everything.
[root@705d10498821 usr]# yum install vim-enhanced.x86_64 -y
5:安装rz,sz
[root@705d10498821 /]# yum search lrzsz
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.huaweicloud.com
* updates: mirrors.aliyun.com
============================================== N/S matched: lrzsz ===========================================
lrzsz.x86_64 : The lrz and lsz modem communications programs
Name and summary matches only, use "search all" for everything.
[root@705d10498821 /]# yum install lrzsz.x86_64 -y
6:安装wget
[root@705d10498821 /]# yum install wget -y