7.
10月10日任務(wù)
7.6 yum更換國內(nèi)源?
7.7 yum下載rpm包?
7.8/7.9 源碼包安裝??
7.6 yum更換國內(nèi)源
cd /etc/yum.repods.d
rm -f dvd.repo
wgethttp://mirrors.163.com/.help/CentOS7-Base-163.repo
或者
curl -Ohttp://mirrors.163.com/.help/CentOS7-Base-163.repo?#CentOS7-Base-163.repo
yum repolist #查看可用倉庫
7.7?yum下載rpm包
yum install -y 包名 --downloadonly #yum只下載不安裝
ls /var/cache/yum/x86_64/7/ #yum下載包路徑
yum install -y 包名 --downloadonly --downloaddir=路徑 #指定包的下載路徑
yum reinstall -y 包名 --downloadonly --downloaddir=路徑 #指定已經(jīng)安裝的包再次下載的路徑
安裝擴展源epel
yum install -y epel-release # epel-testing.repo epel.repo
yum list |grep epel
7.8?源碼包安裝(上)
cd /usr/local/src/ #指定一個放置源碼包的路徑
wgethttp://mirror.cnnic.cn/apache/httpd/httpd-2.2.32.tar.gz? #下載aoache源碼包
tar zxvf httpd-2.2.32.tar.gz #解壓源碼包
cd httpd-2.2.32 #到解壓目錄下
README #軟件介紹?
INASTALL #安裝使用步驟指南
./configure --help #幫助文檔
./configure --prefix=/usr/local/apache2 #prefix 指定安裝路徑
有錯誤時按提示安裝依賴包
echo $? #上一條命令是否正確 0是 1否
make #編譯
make install
卸載就是刪除安裝的軟件