首页
Linux教程
Linux实战教程
Shell教程
Mysql教程
Keepalived教程
Linux基础教程
Linux进阶教程
运维题库
运维干货
视频教程
运维资讯
资源下载
关于我们
首页 Linux基础教程1.08 升级软件包

1.07 远程连接故障

1.09 Bash基础

1.1 配置yum源

1.1.1 配置阿里云yum源

# CentOS 7 阿里源配置
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

1.1.2 配置清华源

# 对于 CentOS 7
sudo sed -e 's|^mirrorlist=|#mirrorlist=|g' \
         -e 's|^#baseurl=http://mirror.centos.org|baseurl=https://mirrors.tuna.tsinghua.edu.cn|g' \
         -i.bak \
         /etc/yum.repos.d/CentOS-*.repo

1.1.3 配置epel源

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

1.2 更新软件包

在配置好yum源后更新,阿里源和清华源任选其一

1.2.1 更新所有软件到最新(学习不用更新)

yum update -y #总下载量279M

1.2.2 CentOS6和CentOS7都要安装的企业运维常用基础工具包

yum install tree nmap dos2unix lrzsz nc lsof wget -y
yum install tcpdump htop iftop iotop sysstat nethogs -y

1.2.3 CentOS7要安装的企业运维常用基础工具包

yum install psmisc net-tools bash-completion vim-enhanced -y

1.2.4 多个yum命令不能同时使用,必须顺序安装

[root@oldboy ~]# yum install tcpdump htop iftop iotop sysstat nethogs -y
已加载插件:fastestmirror
/var/run/yum.pid 已被锁定,PID 为 3701 的另一个程序正在运行。
Another app is currently holding the yum lock; waiting for it to exit...
另一个应用程序是:yum
# 解决1:
ctrl+c 终止
# 解决2:
[root@oldboy ~]# ps -ef|grep yum
root       1880  1701  0 09:09 pts/0    00:00:00 /var/run/yum.pid 
# 杀掉所有yum进程号
kill -9 1707

1.3 复制和黏贴

Windows上:

  • 复制: ctrl + c
  • 粘贴: ctrl + v

Linux Xshell上:

  • 复制:ctrl + insert
  • 粘贴:shift+insert ##推荐,部分笔记本需要同时按fn键
  • 自动复制: Xshell—-工具—–选项—–键盘和鼠标—勾选选中即复制

本文链接:https://www.yunweibase.com/archives/600

1.07 远程连接故障

1.09 Bash基础

网友评论comments

发表评论

邮箱地址不会被公开。 必填项已用*标注

暂无评论

Copyright © 运维基地 保留所有权
扫二维码
扫二维码
返回顶部