亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

CentOS7配置本地鏡像及安裝gluster服務

發布時間:2020-07-20 00:57:03 來源:網絡 閱讀:2020 作者:fei_0123456789 欄目:開發技術


【【【【【創建本地鏡像及安裝gluster操作手冊】】】】】


首先,把準備的鏡像從網絡上下載或直接拷貝到/home/ecp2/mirror 目錄下(該目錄是根據該案例設定,可根據需要創建自己的文件目錄)

   1、sudo mkdir /home/ecp2/mirror         創建mirror目錄,把鏡像拷貝到mirror下  
 
   2. sudo mkdir -p /media/CentOS          創建CentOS目錄,把磁盤.iso鏡像mount到CentOS目錄下

   3、sudo mount /dev/sr0 /media/CentOS    把iso安裝鏡像掛在到/media/CentOS 目錄下,該目錄是 /etc/yum.repos.d/CentOS-Media.repo  鏡像文件的baseurl默認的第一個目錄

修改鏡像有效路徑:  sudo vi /etc/yum.repos.d/CentOS-Media.repo 


[ecp2@localhost root]$ sudo vi /etc/yum.repos.d/CentOS-Media.repo
# CentOS-Media.repo
#
#  This repo can be used with mounted DVD media, verify the mount point for
#  CentOS-7.  You can use this repo and yum to install items directly off the
#  DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
#  yum --enablerepo=c7-media [command]
#  
# or for ONLY the media repo, do this:
#
#  yum --disablerepo=\* --enablerepo=c7-media [command]

[c7-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
        file:///media/cdrom/
        file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[offline-extras]
name=CentOS-$releasever - Media
baseurl=file:///home/ecp2/mirror/extras/x86_64
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7           -------這塊新增的內容,配置為本地鏡像home/ecp2/mirror/extras/x86_64 路徑下的鏡像, 數字簽名為etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

CentOS7配置本地鏡像及安裝gluster服務



   4、sudo yum --disablerepo=\* --enablerepo=c7-media,offline-extras list | grep gluster   -----該命令是查看鏡像中的gluster中的鏡像 查看安裝gluster安裝的鏡像,如【centos-release-gluster38.noarch 】
   5、sudo yum --disablerepo=\* --enablerepo=c7-media,offline-extras install centos-release-gluster38.noarch  ----該命令 安裝centos-release-gluster38.noarch  
                     
   5.1、 ls /etc/pki/rpm-gpg/                                   ------------查看pki-------多出來 RPM-GPG-KEY-CentOS-SIG-Storage            
   5.2、 ls /home/ecp2/mirror/storage/x86_64/gluster-3.8        ------------新生成的鏡像
   
   6、sudo vi /etc/yum.repos.d/CentOS-Media.repo    ----修改鏡像配置
[ecp2@localhost root]$ vi /etc/yum.repos.d/CentOS-Media.repo

# CentOS-Media.repo
#
#  This repo can be used with mounted DVD media, verify the mount point for
#  CentOS-7.  You can use this repo and yum to install items directly off the
#  DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
#  yum --enablerepo=c7-media [command]
#  
# or for ONLY the media repo, do this:
#
#  yum --disablerepo=\* --enablerepo=c7-media [command]

[c7-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
        file:///media/cdrom/
        file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[offline-extras]
name=CentOS-$releasever - Media
baseurl=file:///home/ecp2/mirror/extras/x86_64
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[offline-storage-gluster38]
name=CentOS-$releasever - Media
baseurl=file:///home/ecp2/mirror/storage/x86_64/gluster-3.8
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-G                      ------這塊新增內容配置鏡像home/ecp2/mirror/storage/x86_64/gluster-3.8 為之后安裝gluster,如【sudo yum install glusterfs-server glusterfs glusterfs-fuse】


CentOS7配置本地鏡像及安裝gluster服務


  7、sudo yum --disablerepo=\* --enablerepo=c7-media,offline-extras,offline-storage-gluster38 list | grep glusterfs  ---查看新配置的鏡像

 

  8、sudo yum --disablerepo=\* --enablerepo=c7-media,offline-extras,offline-storage-gluster38 install glusterfs-server glusterfs glusterfs-fuse  -------安裝gluster環境 glusterfs-server glusterfs glusterfs-fuse
 
  9、sudo systemctl list-unit-files glusterd.service                        -----該命令查看gluster服務是否啟動
 
  10、sudo systemctl enable glusterd.service && sudo systemctl start glusterd.service      ----sudo systemctl enable glusterd.service設置開機啟動, sudo systemctl start glusterd.service
 
  11、sudo systemctl -l status glusterd.service    --查看gluster服務啟動狀態
 
[ecp2@localhost x86_64]$ sudo systemctl -l status glusterd.service
● glusterd.service - GlusterFS, a clustered file-system server
   Loaded: loaded (/usr/lib/systemd/system/glusterd.service; enabled; vendor preset: disabled)
   Active: active (running) since 二 2017-03-14 14:05:07 CST; 45s ago
  Process: 18453 ExecStart=/usr/sbin/glusterd -p /var/run/glusterd.pid --log-level $LOG_LEVEL $GLUSTERD_OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 18454 (glusterd)
   CGroup: /system.slice/glusterd.service
           └─18454 /usr/sbin/glusterd -p /var/run/glusterd.pid --log-level INFO

3月 14 14:05:07 localhost.localdomain systemd[1]: Starting GlusterFS, a clustered file-system server...
3月 14 14:05:07 localhost.localdomain systemd[1]: Started GlusterFS, a clustered file-system server.


CentOS7配置本地鏡像及安裝gluster服務
  12、sudo netstat -tpnl                           --查看服務信息(哪些服務在啟動,占用端口等信息)

CentOS7配置本地鏡像及安裝gluster服務 

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

梁山县| 鲁甸县| 雅安市| 婺源县| 青州市| 兴山县| 碌曲县| 克拉玛依市| 洛川县| 揭阳市| 左云县| 盐池县| 宁化县| 太和县| 奎屯市| 射阳县| 双桥区| 沁水县| 巴东县| 清河县| 益阳市| 依安县| 河源市| 九寨沟县| 手机| 淮安市| 扬中市| 巴林左旗| 盘锦市| 金寨县| 天长市| 无为县| 涟水县| 疏附县| 九龙坡区| 凤阳县| 关岭| 靖安县| 莫力| 富锦市| 白朗县|