Linux环境(CentOS)安装维护过程中用到的常见命令

1. yum 安装时需要选择仓库 一般的路径

/etc/repos.d/ 

2. 查看安装了哪些软件的

yum list |grep docker 

installed 的就是已经安装的软件. 

3. 卸载软件

rpm -e --nodeps 的方式鞋子啊.

4. tar 是打包 不是压缩..

    gzip可以进行压缩.

5. ssh-keygen 生成 秘钥进行登录

   ssh-copy-id targetip  分发秘钥

6. curl 下载

    curl -sSL 下载 https 的网址数据

7. docker save 保存成tar文件

   docker load < 具体的tar文件 导入docker images

8. systemctl daemon-reload

    重新加载systemd的配置文件.

9. 关掉swap

   临时 swapoff -a

  永久 vim /etc/fstab

  注释掉 swap的哪一行

10. 

原文地址:https://www.cnblogs.com/jinanxiaolaohu/p/8251121.html