整理到這裏,並無發現啥問題,在用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 顯示機器和/或可用的源版本。