1、刪除自帶yum包
rpm -aq | grep yum | xargs rpm -e --nodeps
2、檢查一下
/mirrors.163.com/centos/7/os/x86_64/packages/yum-utils-1.1.31-50.el7.noarch.rpm4、安裝python
rpm -ivh python*
5、安裝yum
rpm -ivh --force --nodeps yum*
6、配置yum源
yum-config-manager --add-repo=""
7、更改yum的repo檔案內容
cd /etc/yum.repos.d/
vi centos6-base-163.repo
:%s/
$releasever
/7/ge
:%s/rpm-gpg-key-centos-6/rpm-gpg-key-centos-7/ge
8、清除快取
yum clean all
9、生成快取
yum makecache
yum makecache fast
initscripts conflicts with redhat-release-server-7.4-18.el7.x86_64
修改yum配置檔案
vim /etc/yum.conf
阻止yum 更新核心與initscripts包
exclude=kernel*
exclude=centos-release*
exclude=initscripts
一、上傳系統映象檔案至伺服器,掛載至本地
mkdir /mnt/redh
mount
-o loop /opt/*
.iso /mnt/redh
二、建立本地yum原始檔,刪除其他的
cd /etc/yum.repos.d/
vim local.repo
[local]
name=local
baseurl=file:///mnt/redh
enabled=1
gpgcheck=0
三、清理快取
yum clean all
libvirt報錯處理及解決
一 使用virt install安裝完成後要記得virsh start vm 001,開啟kvm。二 遇到報錯資訊 virsh start vm 001 error failed to start domain centos error internal error process exited w...
ZF報錯處理
fatal error uncaught exception zend controller response exception with message cannot send headers headers already sent inind xampp php pear z end con...
oracle報錯處理
這裡的序號 1.2.3.不是步驟,而是每個單獨問題。1.不登入鏈結資料庫 sqlplus nolog 2.oracle檢視並修改最大連線數 alter system set processes 1000 scope spfile alter system set session 1105 scope...