一、自建yum倉庫,分別爲網絡源和本地源html
本地源 客戶端 服務端在本機
1.光盤放入光驅
2.掛載.
mount /dev/sr0 /mnt/cdrom df驗證
3保證.yum.repos.d沒有repo結尾的文件,新建test.repo
編輯test.repo文件
[test]
name=test
baseurl=file;///mnt/cdrom
gpgcheck=0
保存文件
cat test.repo文件驗證linux
網絡源 客戶端本機 服務端在遠端
客戶端配置
.保證.yum.repos.d沒有repo結尾的文件,新建test.repo
編輯test.repo文件
[test]
name=test
baseurl=https://mirrors.aliyun.com/epel/$releasever/$basearch/
gpgcheck=0
保存文件
cat test.repo文件驗證服務器
網絡源 客戶端本機 服務端固定
客戶端配置
1.保證.yum.repos.d沒有repo結尾的文件,新建test.repo
編輯test.repo文件
[test]
name=test
baseurl=https://mirrors.aliyun.com/epel/$releasever/$basearch/
gpgcheck=0
保存文件
cat test.repo文件驗證
服務器端
1 selinux 關閉 cat /etc/selinux 驗證
2 systemctl stop firewalld systemctl status firewalld.service
3.安裝http服務 systemctl start httpd
4.拷貝對應光盤目錄文件
cd /var/www/html/ mkdir /os/{6.7}/86-64 -pv網絡
二、編譯安裝http2.4,實現能夠正常訪問,並將編譯步驟和結果提交。ide
三、建立一個2G的文件系統,塊大小爲2048byte,預留1%可用空間,文件系統 ext4,卷標爲TEST,要求此分區開機後自動掛載至/test目錄,且默認有acl掛載選項
四、建立一個至少有兩個PV組成的大小爲20G的名爲testvg的VG;要求PE大小 爲16MB, 然後在卷組中建立大小爲5G的邏輯卷testlv;掛載至/users目錄url