一、 运行以下命令进行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重启之后,数据就导进来,恢复正常。