2024年企业实战|CentOS8安装Zabbix 4(1),软件测试面试基础技能罗列

img
img
img

既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上软件测试知识点,真正体系化!

由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新

需要这份系统化的资料的朋友,可以戳这里获取


更改:



BOOTPROTO=“static”


添加:



IPADDR=10.10.10.50
NETMASK=255.255.255.0
GATEWAY=10.10.10.1
DNS1=10.10.10.5


重启网络:



[root@localhost ~]# systemctl restart network


## 二、安装 Zabbix


1、更新系统:



[root@zabbix ~]# yum update -y


2、安装必要组件:



[root@zabbix ~]# dnf install -y httpd mysql-server
php php-mysqlnd php-mbstring php-pdo php-gd


3、开启必要组件的服务:



[root@zabbix ~]# systemctl enable --now httpd.service
[root@zabbix ~]# systemctl enable --now mysqld.service


4、更改 HTTP 时区



[root@zabbix ~]# vim /etc/php.ini


## 设置:



date.timezone = Asia/Shanghai


\*\*5、初始化数据:配置数据库密码(MySQL 的密码)  
 \*\*



[root@zabbix ~]# mysql_secure_installation Securing the MySQL server deployment. Connecting to MySQL using a blank password.

中间全部y

VALIDATE PASSWORD COMPONENT can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD component?
Press y|Y for Yes, any other key for No: y
There are three levels of password validation policy:
LOW Length >= 8
MEDIUM Length >= 8, numeric, mixed case, and special characters
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y Success.
All done!


\*\*6、创建并配置数据库:创建一个名为 zabbix 的数据,并为这个数据库创建一个名为 zabbix 的用户,并设 置密码为 “Shanghai2010@”,然后为这个用户赋予 \*\*



[root@zabbix tmp]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 10
Server version: 8.0.17 Source distribution
Copyright © 2000, 2019, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement. mysql> create database zabbix character set UTF8 collate utf8_bin;
Query OK, 1 row affected, 2 warnings (0.19 sec)

mysql> create user ‘zabbix’@‘localhost’ identified by ‘Shanghai2010@’;
Query OK, 0 rows affected (0.08 sec)

mysql> grant ALL on zabbix.* to ‘zabbix’@‘localhost’;
Query OK, 0 rows affected (0.17 sec) mysql> flush privileges;
Query OK, 0 rows affected (0.02 sec)

mysql> exit
Bye


**7、安装 Zabbix yum 库:**



[root@zabbix ~]# wget https://repo.zabbix.com/zabbix/4.4/rhel/8/x86_64/zabbix-release-4.4-1.el8.noarch.rpm
[root@zabbix ~]# dnf install -y zabbix-release-4.4-1.el8.noarch.rpm
[root@zabbix ~]# dnf makecache


**8、安装 Zabbix 服务器组件**



[root@zabbix ~]# dnf install -y zabbix-server-mysql zabbix-web-mysql zabbix- apache-conf


**9、使用Zabbix服务器安装文件中提供的脚本创建Zabbix存储库。**



[root@zabbix ~]# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -D zabbix -pShanghai2010@


**10、配置 Zabbix 服务器**



[root@zabbix ~]# vim /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=Shanghai2010@


**11、安装 Zabbix Agent,并启动服务**



[root@zabbix ~]# dnf install -y zabbix-agent
[root@zabbix ~]# systemctl enable --now zabbix-server
[root@zabbix ~]# systemctl enable --now zabbix-agent




![img](https://img-blog.csdnimg.cn/img_convert/23cd03d1bd552fac3e0c0e8adea08165.png)
![img](https://i-blog.csdnimg.cn/blog_migrate/2171962cfda5de74dcc745aaee4d6fb3.png)
![img](https://i-blog.csdnimg.cn/blog_migrate/1d5f52d099b68c0f1f25067b14532a2f.png)

**既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上软件测试知识点,真正体系化!**

**由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新**

**[需要这份系统化的资料的朋友,可以戳这里获取](https://bbs.csdn.net/forums/4f45ff00ff254613a03fab5e56a57acb)**

的小伙伴深入学习提升的进阶课程,涵盖了95%以上软件测试知识点,真正体系化!**

**由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新**

**[需要这份系统化的资料的朋友,可以戳这里获取](https://bbs.csdn.net/forums/4f45ff00ff254613a03fab5e56a57acb)**

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值