既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上软件测试知识点,真正体系化!
由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新
四,安装并且启动mysql5.6及初始化数据库信息
![复制代码](https://img-blog.csdnimg.cn/20181228161615275)
[root@linux-node2 ~]# rpm -ivh http://repo.mysql.com/yum/mysql-5.6-community/el/6/x86_64/mysql-community-release-el6-5.noarch.rpm
[root@linux-node2 ~]# yum install -y mysql-community-server
[root@linux-node2 ~]# systemctl start mysqld
[root@linux-node2 ~]# /sbin/chkconfig mysqld on #开机启动
[root@linux-node2 ~]# mysql_secure_installation #初始化数据库信息
…
![复制代码](https://img-blog.csdnimg.cn/20181228161615275)
五,创建zabbix数据库,创建zabbix账号
![复制代码](https://img-blog.csdnimg.cn/20181228161615275)
[root@linux-node2 ~]# mysql -uroot -p
…
mysql> create database zabbix character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.00 sec)
mysql> grant all privileges on zabbix.* to ‘zabbix’@‘localhost’ identified by ‘zabbix’;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)
![复制代码](https://img-blog.csdnimg.cn/20181228161615275)
六,导入默认的zabbix数据库信息
[root@linux-node2 zabbix-server-mysql-3.0.12]# zcat /usr/share/doc/zabbix-server-mysql-3.0.12/create.sql.gz | mysql zabbix -uzabbix -pzabbix
七,修改zabbix\_server.conf的配置文件
[root@linux-node2 ~]# grep ^DB /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
八,修改配置文件/etc/httpd/conf.d/zabbix.conf,时区改成 Asia/Shanghai
![复制代码](https://img-blog.csdnimg.cn/20181228161615275)
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value always_populate_raw_post_data -1
php_value date.timezone Asia/Shanghai
![复制代码](https://img-blog.csdnimg.cn/20181228161615275)
九,启动apache/zabbix-server服务并设置为开机启动
![复制代码](https://img-blog.csdnimg.cn/20181228161615275)
[root@linux-node2 ~]# systemctl start httpd
[root@linux-node2 ~]# systemctl enable httpd
[root@linux-node2 ~]# netstat -an |grep 80
tcp 0 0 192.168.56.11:80 0.0.0.0:* LISTEN
[root@linux-node2 ~]# systemctl start zabbix-server
[root@linux-node2 ~]# systemctl enable zabbix-server
![复制代码](https://img-blog.csdnimg.cn/20181228161615275)
查看zabbix-server日志
![](https://img-blog.csdnimg.cn/20181228161615680) View Code
[root@linux-node1 ~]# tailf /var/log/zabbix/zabbix_server.log
6516:20171029:091122.131 Starting Zabbix Server. Zabbix 3.0.12 (revision 73586).
6516:20171029:091122.131 ****** Enabled features ******
6516:20171029:091122.131 SNMP monitoring: YES
6516:20171029:091122.131 IPMI monitoring: YES
6516:20171029:091122.131 Web monitoring: YES
6516:20171029:091122.131 VMware monitoring: YES
6516:20171029:091122.131 SMTP authentication: YES
6516:20171029:091122.131 Jabber notifications: YES
6516:20171029:091122.131 Ez Texting notifications: YES
6516:20171029:091122.131 ODBC: YES
6516:20171029:091122.131 SSH2 support: YES
6516:20171029:091122.131 IPv6 support: YES
6516:20171029:091122.131 TLS support: YES
zabbix-server的web目录
![](https://img-blog.csdnimg.cn/20181228161615680) View Code
[root@linux-node1 zabbix]# ls /usr/share/zabbix
actionconf.php app chart.php hostgroups.php index.php popup_media.php scripts_exec.php tr_events.php
adm.gui.php applications.php charts.php hostinventoriesoverview.php items.php popup.php search.php trigger_prototypes.php
adm.housekeeper.php audio conf hostinventories.php js popup_right.php services.php triggers.php
adm.iconmapping.php auditacts.php conf.import.php host_prototypes.php jsLoader.php popup_trexpr.php setup.php tr_logform.php
adm.images.php auditlogs.php dashconf.php host_screen.php jsrpc.php profile.php slideconf.php tr_status.php
adm.macros.php authentication.php discoveryconf.php hosts.php latest.php queue.php slides.php tr_testexpr.php
adm.other.php browserwarning.php disc_prototypes.php httpconf.php local report2.php srv_status.php usergrps.php
adm.regexps.php chart2.php events.php httpdetails.php locale report4.php styles users.php
adm.triggerdisplayoptions.php chart3.php favicon.ico image.php maintenance.php robots.txt sysmap.php zabbix.php
adm.triggerseverities.php chart4.php fonts images map.import.php screenconf.php sysmaps.php
adm.valuemapping.php chart5.php graphs.php img map.php screenedit.php templates.php
adm.workingtime.php chart6.php history.php imgstore.php overview.php screen.import.php toptriggers.php
api_jsonrpc.php chart7.php host_discovery.php include popup_httpstep.php screens.php tr_comments.php
![复制代码](https://common.cnblogs.com/images/copycode.gif)
十,访问网站,例如:http://本机IP/zabbix,如下图所示:
![](https://img-blog.csdnimg.cn/20181228161615758)
十一,选择下一步,Check of pre-requisites,如图所示:
![](https://img-blog.csdnimg.cn/20181228161615801)
十二,选择下一步,配置zabbix server detail,如下图所示:
![](https://img-blog.csdnimg.cn/20181228161615841)
十三,选择下一步,配置zabbix server detail,如下图所示:
![](https://img-blog.csdnimg.cn/20181228161615891)
十四:点击下一步,便完成安装,安装完成的界面如下图所示:
![](https://img-blog.csdnimg.cn/20181228161615943)
十五,安装完成,如下图所示:
![](https://img-blog.csdnimg.cn/20181228161615997)
根据提示可以看到上面图形界面的操作都写到一个配置文件中
![复制代码](https://img-blog.csdnimg.cn/20181228161615275)
[root@linux-node1 zabbix]# more /etc/zabbix/web/zabbix.conf.php
<?php // Zabbix GUI configuration file. global $DB; $DB['TYPE'] = 'MYSQL'; $DB['SERVER'] = 'localhost'; $DB['PORT'] = '0'; $DB['DATABASE'] = 'zabbix'; $DB['USER'] = 'zabbix'; $DB['PASSWORD'] = '123456'; // Schema name. Used for IBM DB2 and PostgreSQL. $DB['SCHEMA'] = ''; $ZBX_SERVER = 'localhost'; $ZBX_SERVER_PORT = '10051'; $ZBX_SERVER_NAME = 'zabbix 3.0.12'; $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG; ``` ![复制代码](https://img-blog.csdnimg.cn/20181228161615275) 十六:Zabbix·server的默认账号Admin 密码zabbix,如图所示: ![](https://img-blog.csdnimg.cn/20181228161616127) 十七,默认登陆首页,如下图所示: ![](https://img-blog.csdnimg.cn/20181228161616189) 十八,移除或改名web目录下面的setup.php文件 ``` [root@linux-node2 zabbix]# pwd /usr/share/zabbix [root@linux-node2 zabbix]# mv setup.php setup.php.bak ``` 十九,更改web登陆的Admin默认密码 ![](https://img-blog.csdnimg.cn/20181228161616230) ![img](https://img-blog.csdnimg.cn/img_convert/4f66c18b16c06cfc48fcfee5984b976c.png) ![img](https://img-blog.csdnimg.cn/img_convert/04ced4acbbeae5323bf86b824778276d.png) ![img](https://img-blog.csdnimg.cn/img_convert/120809e096a222ea34139703383fd3e0.png) **既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上软件测试知识点,真正体系化!** **由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新** **[需要这份系统化的资料的朋友,可以戳这里获取](https://bbs.csdn.net/topics/618631832)** 1715895705437)] [外链图片转存中...(img-91Yztr36-1715895705437)] **既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上软件测试知识点,真正体系化!** **由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新** **[需要这份系统化的资料的朋友,可以戳这里获取](https://bbs.csdn.net/topics/618631832)**