一、 運行以下命令進行centos 系統更新php
yum update
yum update
二、 運行下列命令,更新centreon源。web
cd /etc/yum.repo.d cp centreon.repo centreon.repo.bk20200514 sed -i s/19.04/20.04/g centreon.repo
cd /etc/yum.repo.d
cp centreon.repo centreon.repo.bk20200514
sed -i s/19.04/20.04/g centreon.repocentos
一、 清理yum緩存瀏覽器
yum clean all --enablerepo=*
yum clean all --enablerepo=*
二、 更新centreon緩存
yum update centreon\*
yum update centreon*php7
升級完之後,與之配合的php升級到7.2.若是不作任何處理,當咱們在瀏覽器進行登陸管理時,將出現以下報錯。
執行以下指令,關閉php7.1並啓動php7.2ide
systemctl stop rh-php71-php-fpm systemctl start rh-php72-php-fpm
systemctl stop rh-php71-php-fpm
systemctl start rh-php72-php-fpmphp-fpm
再刷新web頁面,便可進行下一步的升級操做。
根據頁面指引時區初始化設置。
在系統命令行下,修改文件/etc/opt/rh/rh-php72/php.ini,設置其時區爲"Asia/Shanghai"(默認值被註釋掉,而且爲空)。
修改完成之後,須要執行以下指令重啓php7.2.命令行
systemctl restart rh-php72-php-fpm
systemctl restart rh-php72-php-fpm
刷新瀏覽器,報錯消除。
繼續進行下一步,點按鈕「Next」。
開始更新做業。
沒有意外,出現下列頁面,恭喜,升級成功。3d
命令行執行以下指令(gorgoned不存在於之前的版本)
systemctl restart cbd centengine gorgoned
systemctl restart cbd centengine gorgoned
從新登陸centreon web管理後臺,將發現poller沒有工做。須要選擇poller,進行輸出操做。
Poller重啓之後,數據就導進來,恢復正常。