封神太子修改器,漫画大乱斗私服,李新良上将女儿李继红
https://www.zabbix.com/documentation/5.0/manual/installation/upgrade/packages/rhel_centos
cat /etc/redhat-release
centos linux release 7.6.1810 (core)
nginx -vnginx
version: nginx/1.16.1
[root@shvm01 ~]# rpm -qa |grep zabbix
zabbix-release-4.4-1.el7.noarch
zabbix-web-4.4.7-1.el7.noarch
zabbix-server-mysql-4.4.7-1.el7.x86_64
zabbix-web-mysql-4.4.7-1.el7.noarch
zabbix-agent-4.4.7-1.el7.x86_64
[root@shvm01 ~]# mysql -v
mysql ver 14.14 distrib 5.7.29, for linux (x86_64) using editline wrapper
https://www.zabbix.com/documentation/5.0/manual/installation/install_from_packages/frontend_on_rhel7
mkdir -p /home/backup/zabbix-backup
cp /etc/zabbix/zabbix_server.conf /home/backup/zabbix-backup
cp /etc/zabbix/zabbix_agentd.conf /home/backup/zabbix-backup
cp /etc/zabbix/web/zabbix.conf.php /home/backup/zabbix-backup
cp -r /usr/share/zabbix/ /home/backup/zabbix-backup
cp –r /usr/share/doc/zabbix-* /home/backup/zabbix-backup
mysql root@localhost:(none)> select count(8) tables,table_schema from information_schema.tables where table_schema = 'zabbix'; +--------+--------------+ | tables | table_schema | +--------+--------------+ | 149 | zabbix | +--------+--------------+ 1 row in set time: 0.014s mysqldump -uzabbix -pzabbix --opt --skip-lock-tables zabbix | gzip > /home/backup/zabbix_$(date +%y%m%d_%h%m%s).sql.gz [root@shvm01 doc]# ll /home/backup/ 总用量 5120 -rw-r--r-- 1 root root 20 4月 23 10:48 zabbix_20200423_104832.sql.gz -rw-r--r-- 1 root root 5233446 4月 23 10:48 zabbix_20200423_104849.sql.gz drwxr-xr-x 3 root root 4096 4月 23 10:45 zabbix-backup
systemctl stop zabbix-server zabbix-agent nginx php-fpm
systemctl disable nginx php-fpm
yum remove zabbix-web-* nginx* php-fpm* -y
#安装scl存储库
yum install centos-release-scl -y
#更新存储库软件包
rpm -uvh https://repo.zabbix.com/zabbix/4.5/rhel/7/x86_64/zabbix-release-4.5-2.el7.noarch.rpm
yum clean all
升级zabbix 软件包
yum upgrade zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-get -y
#便于安装从红帽软件集合zabbix-web包的php依赖
yum install https://repo.zabbix.com/zabbix/4.5/rhel/7/x86_64/deprecated/zabbix-web-deps-scl-5.0.0-0.5beta1.el7.noarch.rpm -y
yum install https://repo.zabbix.com/zabbix/4.5/rhel/7/x86_64/deprecated/zabbix-web-5.0.0-0.5beta1.el7.noarch.rpm -y
#mysql的zabbix web前端(scl版本)
yum install https://repo.zabbix.com/zabbix/4.5/rhel/7/x86_64/deprecated/zabbix-web-mysql-scl-5.0.0-0.5beta1.el7.noarch.rpm -y
#nginx(scl版本)的zabbix前端配置 安装的时候有时候可能会遇到网络问题 多执行安装几次
yum install https://repo.zabbix.com/zabbix/4.5/rhel/7/x86_64/deprecated/zabbix-nginx-conf-scl-5.0.0-0.5beta1.el7.noarch.rpm -y
vim /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf
....
listen.acl_users = apache,nginx
listen.allowed_clients = 127.0.0.1,10.0.0.6
...
vim /etc/opt/rh/rh-nginx116/nginx/conf.d/zabbix.conf
...
server {
listen 80;
server_name 10.0.0.6;
root /usr/share/zabbix;
...
mysql root@localhost:(none)> select count(8) tables,table_schema from information_schema.tables where table_schema = 'zabbix';
+--------+--------------+
| tables | table_schema |
+--------+--------------+
| 154 | zabbix |
+--------+--------------+
1 row in set
time: 0.026s
mysql root@localhost:(none)>
systemctl restart rh-nginx116-nginx rh-php72-php-fpm
systemctl enable rh-nginx116-nginx rh-php72-php-fpm zabbix-server zabbix-agent
systemctl start zabbix-server
[root@shvm01 root]# zabbix_server -v
zabbix_server (zabbix) 5.0.0beta1
revision d3cf98e98b 14 april 2020, compilation time: apr 14 2020 10:17:42
copyright (c) 2020 zabbix sia
license gplv2+: gnu gpl version 2 or later <http://gnu.org/licenses/gpl.html>.
this is free software: you are free to change and redistribute it according to
the license. there is no warranty, to the extent permitted by law.
this product includes software developed by the openssl project
for use in the openssl toolkit (http://www.openssl.org/).
compiled with openssl 1.0.1e-fips 11 feb 2013
running with openssl 1.0.1e-fips 11 feb 2013
折叠式菜单,仅包含图标。
|
隐藏菜单。
|
用户界面中的测试项目
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
网友评论