리눅스 네트워크 서비스 장 배포 얌웨어 하우스

제 4 장 배포 냠웨어 하우스 서비스

1. 노트

명령을 시작 systemctl : 재부팅

처음부터 부팅 : enable 명령을 systemctl

NETSTAT의 -anput | grep 명령이 : 열려 있는지 확인

비제로 실패, 명령이 성공하면 0, 성공적으로 실행되었는지 확인 :? $ 에코

냠 패키지를 제공합니다 : 패키지 이름을 확인

 

2. 바탕으로 는 FTP는 : // 로컬 CD-ROM 만들 Y- UM의 창고 프로세스를

설치 냠 ftp를 -Y (설치 FTP의 패키지)

언 마운트는 / dev / SR0       (제거 CD 는 / dev / SR0 )

/ FTP / centos7에서 mkdir / var에가   (에 디렉토리를 생성 / var에 / FTP / centos7 )

마운트는 / dev / SR0은 / var / FTP / centos7 / (마운트 는 / dev / SR0 마운트 는 / var / FTP / centos7를 )

/etc/yum.repos.d/local.repo VIM   (편집자 /etc/yum.repos.d/local.repo )

[로컬] (하우스 이름)

= 로컬 이름 (하우스 이름)

= base을 FTP : //192.168.203.4 ( 로컬 주소 ) / centos7 (지정 회전 수 패키지 위치)

= 0 gpgcheck (비활성화 GPG의 확인)

1 = 활성화 (로컬 활성화저장소)

청소 모든 -Y 냠 (빈 버퍼)

makecache 냠 (재건 캐시)

 

 

저장소 구성 3.centos7 온라인 소스와 소스 EPEL 냠 냠

 

http://rpm.pbone.net/

http://rpmfind.net/

 

RPM-Uvhhttps : //dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

  1. 거울 완료 후 마운트하고로 /etc/yum.repos.d 당신은 파일 백업에서 폴더를 만든 후

CD를 /etc/yum.r*

MKDIR A /

MV는 C를 * /

2. 새로운 다운로드 에 CentOS-Base.repo가 하는 /etc/yum.repos.d/ 또는 가상 머신에 파일을 다운로드 한 후 /etc/yum.repos.dxia 에서

wget을 -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

 

 

3 실행 한 후, 모든 청소 -y 얌 캐시를 삭제, 실행 냠 makecache 새로운 캐시를 생성

 

[루트 @의 bogon의 yum.repos.d] # 냠 -y 깨끗한 모든

[루트 @의 bogon의 yum.repos.d] # yum을 makecache

 

설치 EPEL의 소스

[루트 @의 bogon의 yum.repos.d] # 얌 목록 | 그렙 EPEL 출시

EPEL-release.noarch 7-9 엑스트라
[루트 @의 bogon의 yum.repos.d] # 냠 -y 설치 EPEL 릴리스
로드 플러그인 : fastestmirror의
로드 미러 속도 캐시 hostfile에서
* 기본 : mirrors.aliyun.com
* 엑스트라 : 거울. aliyun.com
* 업데이트 : mirrors.aliyun.com
해결 종속성
-> 실행 트랜잭션 확인
---> 패키지 EPEL-release.noarch 0 : 7 ~ 9가 설치됩니다
-> 완료 종속성 해결

종속성 해결

==================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================
Installing:
epel-release noarch 7-9 extras 14 k

Transaction Summary
==================================================================================================================================
Install 1 Package

Total download size: 14 k
Installed size: 24 k
Downloading packages:
epel-release-7-9.noarch.rpm | 14 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-7-9.noarch 1/1
Verifying : epel-release-7-9.noarch 1/1

Installed:
epel-release.noarch 0:7-9

Complete!
[root@bogon yum.repos.d]# ls

#多了epel.repoepel-testing.repo
CentOS-Base.repo epel.repo epel-testing.repo repo_bak

 

运行yum clean all 清除缓存,运行 yum makecache 生成新的缓存

[root@bogon yum.repos.d]# yum repolist enabled #查看启用的仓库
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.ustc.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
repo id repo name status
base/7/x86_64 CentOS-7 - Base - mirrors.aliyun.com 9,591
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 12,277
extras/7/x86_64 CentOS-7 - Extras - mirrors.aliyun.com 388
updates/7/x86_64 CentOS-7 - Updates - mirrors.aliyun.com 1,929
repolist: 24,185
[root@bogon yum.repos.d]# yum repolist all #查看所有的仓库
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.ustc.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
repo id repo name status
base/7/x86_64 CentOS-7 - Base - mirrors.aliyun.com enabled: 9,591
centosplus/7/x86_64 CentOS-7 - Plus - mirrors.aliyun.com disabled
contrib/7/x86_64 CentOS-7 - Contrib - mirrors.aliyun.com disabled
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 enabled: 12,277
epel-debuginfo/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 - Debug disabled
epel-source/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 - Source disabled
epel-testing/x86_64 Extra Packages for Enterprise Linux 7 - Testing - x86_64 disabled
epel-testing-debuginfo/x86_64 Extra Packages for Enterprise Linux 7 - Testing - x86_64 - Debug disabled
epel-testing-source/x86_64 Extra Packages for Enterprise Linux 7 - Testing - x86_64 - Source disabled
extras/7/x86_64 CentOS-7 - Extras - mirrors.aliyun.com enabled: 388
updates/7/x86_64 CentOS-7 - Updates - mirrors.aliyun.com enabled: 1,929
repolist: 24,185

추천

출처www.cnblogs.com/ZCQ123456/p/11402308.html