真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

CentOS7配置本地鏡像及安裝gluster服務(wù)-創(chuàng)新互聯(lián)

【【【【【創(chuàng)建本地鏡像及安裝gluster操作手冊(cè)】】】】】

我們提供的服務(wù)有:做網(wǎng)站、成都網(wǎng)站制作、微信公眾號(hào)開發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認(rèn)證、潤(rùn)州ssl等。為千余家企事業(yè)單位解決了網(wǎng)站和推廣的問題。提供周到的售前咨詢和貼心的售后服務(wù),是有科學(xué)管理、有技術(shù)的潤(rùn)州網(wǎng)站制作公司

首先,把準(zhǔn)備的鏡像從網(wǎng)絡(luò)上下載或直接拷貝到/home/ecp2/mirror 目錄下(該目錄是根據(jù)該案例設(shè)定,可根據(jù)需要?jiǎng)?chuàng)建自己的文件目錄)

  1、sudo mkdir /home/ecp2/mirror        創(chuàng)建mirror目錄,把鏡像拷貝到mirror下

  2. sudo mkdir -p /media/CentOS         創(chuàng)建CentOS目錄,把磁盤.iso鏡像mount到CentOS目錄下

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

修改鏡像有效路徑: 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          -------這塊新增的內(nèi)容,配置為本地鏡像home/ecp2/mirror/extras/x86_64 路徑下的鏡像, 數(shù)字簽名為etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

CentOS7配置本地鏡像及安裝gluster服務(wù)

  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                     ------這塊新增內(nèi)容配置鏡像home/ecp2/mirror/storage/x86_64/gluster-3.8 為之后安裝gluster,如【sudo yum install glusterfs-server glusterfs glusterfs-fuse】

CentOS7配置本地鏡像及安裝gluster服務(wù)

 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環(huán)境 glusterfs-server glusterfs glusterfs-fuse

 9、sudo systemctl list-unit-files glusterd.service                       -----該命令查看gluster服務(wù)是否啟動(dòng)

 10、sudo systemctl enable glusterd.service && sudo systemctl start glusterd.service     ----sudo systemctl enable glusterd.service設(shè)置開機(jī)啟動(dòng), sudo systemctl start glusterd.service

 11、sudo systemctl -l status glusterd.service   --查看gluster服務(wù)啟動(dòng)狀態(tài)

[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服務(wù)
 12、sudo netstat -tpnl                          --查看服務(wù)信息(哪些服務(wù)在啟動(dòng),占用端口等信息)

CentOS7配置本地鏡像及安裝gluster服務(wù)

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。


本文題目:CentOS7配置本地鏡像及安裝gluster服務(wù)-創(chuàng)新互聯(lián)
當(dāng)前網(wǎng)址:http://weahome.cn/article/disoci.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部