整理到这里,并无发现啥问题,在用yum 安装和手动安装的区别就是手动编译安装能够自定义目录。在上的的命令中并无。yum 安装会按照Linux 标准的安装方式,安装到不一样的目录中,没有专业linxu 操做经验,找起文件来比较麻烦。
该命令简单解释以下:mysql
-c /etc/yum.conf 表示指定yum配置文件地址linux
--installroot=/usr/local 表示指定自定义的安装目录nginx
--releasever=/ 表示指定当前的镜像缓存查找sql
yum 跟新镜像源docker
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
更新 yum 缓存:shell
sudo yum makecache fast
搜狐开源镜像站:http://mirrors.sohu.com
阿里云镜像:http://mirrors.aliyun.com
网易镜像: http://mirrors.163.com/数据库
systemctl enable docker 加入开机启动centos
systemctl start docker 启动缓存
systemctl stop docker 中止ide
systemctl status docker 查看状态
check 检查 RPM 数据库问题 check-update 检查是否有可用的软件包更新 clean 删除缓存数据 deplist 列出软件包的依赖关系 distribution-synchronization 已同步软件包到最新可用版本 downgrade 降级软件包 erase 从系统中移除一个或多个软件包 fs Acts on the filesystem data of the host, mainly for removing docs/lanuages for minimal hosts. fssnapshot Creates filesystem snapshots, or lists/deletes current snapshots. groups 显示或使用、组信息 help 显示用法提示 history 显示或使用事务历史 info 显示关于软件包或组的详细信息 install 向系统中安装一个或多个软件包 list 列出一个或一组软件包 load-transaction 从文件名中加载一个已存事务 makecache 建立元数据缓存 provides 查找提供指定内容的软件包 reinstall 覆盖安装软件包 repo-pkgs 将一个源看成一个软件包组,这样咱们就能够一次性安装/移除所有软件包。 repolist 显示已配置的源 search 在软件包详细信息中搜索指定字符串 shell 运行交互式的 yum shell swap Simple way to swap packages, instead of using shell update 更新系统中的一个或多个软件包 update-minimal Works like upgrade, but goes to the 'newest' package match which fixes a problem that affects your system updateinfo Acts on repository update information upgrade 更新软件包同时考虑软件包取代关系 version 显示机器和/或可用的源版本。