您现在的位置是:yum - 技术吧
  • CentOS替换阿里云yum源

    cd /etc/yum.repos.d/
    mv CentOS-Base.repo CentOS-Base.repo.bak
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
    yum clean all
    yum makecache

    yuli0927 2018年08月29日 标签: Linux yum分类: Linux

  • Linux安装Docker

    yum install -y yum-utils device-mapper-persistent-data lvm2
    yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
    yum makecache fast
    yum -y install docker-ce
    service docker start
    vi /etc/docker/daemon.json
    {
      "registry-mirrors": ["https://*****.mirror.aliyuncs.com"]
    }
    systemctl daemon-reload
    systemctl restart docker
    yum源
    [root@localhost ~]# cd /etc/yum.repos.d/
    [root@localhost yum.repos.d]# ll
    total 44
    -rw-r--r--. 1 root root 2573 Mar 21  2017 CentOS-Base.repo
    -rw-r--r--. 1 root root 1664 Nov 30  2016 CentOS-Base.repo.backup
    
    Docker加速
    [root@localhost ~]# cat /etc/docker/daemon.json 
    {
      "registry-mirrors": ["https://*****.mirror.aliyuncs.com"]
    }
    

    yuli0927 2018年01月23日 标签: Linux yum分类: Linux

  • Linux升级内核kernel

    uname -r
    yum groupinstall "Development Tools" -y
    rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
    rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
    yum --disablerepo="*" --enablerepo="elrepo-kernel"list available
    yum --disablerepo="*" --enablerepo="elrepo-kernel" list available
    yum --enablerepo=elrepo-kernel install kernel-lt
    awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg 
    grub2-set-default0
    reboot
    uname -r

    启动项

    [root@localhost ~]# awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg
    CentOS Linux (4.4.112-1.el7.elrepo.x86_64) 7 (Core)
    CentOS Linux (3.10.0-514.10.2.el7.x86_64) 7 (Core)
    CentOS Linux (3.10.0-514.el7.x86_64) 7 (Core)
    CentOS Linux (0-rescue-5bb255f67f7f40dd8f4af646ea15c6b5) 7 (Core)
    

    yuli0927 2018年01月23日 标签: Linux yum kernel分类: Linux

  • yum安装crontab

    yum install vixie-cron crontabs
    chkconfig crond on
    service crond start

    yuli0927 2016年07月06日 标签: Shell Linux yum分类: Linux