当前位置: 首页 > article >正文

debian 10 安装apache2 zabbix

 nginx 可以略过,改为apache2

apt update

apt-get install nginx -y

nginx -v
nginx version: nginx/1.14.2


  1. mysql 安装参考linux debian10 安装mysql5.7_debian apt install mysql5.7-CSDN博客
  2. Install and configure Zabbix for your platform
  3. a. Install Zabbix repository

    Documentation

    wget https://repo.zabbix.com/zabbix/5.0/debian/pool/main/z/zabbix-release/zabbix-release_5.0-1+buster_all.deb
    dpkg -i zabbix-release_5.0-1+buster_all.deb
    apt update
    b. Install Zabbix server, frontend, agent
    apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent
    c. Create initial database

    Documentation

    Make sure you have database server up and running.

    Run the following on your database host.

    mysql -uroot -p
    password
    mysql> create database zabbix character set utf8 collate utf8_bin;
    mysql> create user zabbix@localhost identified by 'password';
    mysql> grant all privileges on zabbix.* to zabbix@localhost;
    mysql> set global log_bin_trust_function_creators = 1;
    mysql> quit;

    On Zabbix server host import initial schema and data. You will be prompted to enter your newly created password.

    zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix

    Disable log_bin_trust_function_creators option after importing database schema.

    mysql -uroot -p
    password
    mysql> set global log_bin_trust_function_creators = 0;
    mysql> quit;
    d. Configure the database for Zabbix server

    Edit file /etc/zabbix/zabbix_server.conf

    DBPassword=password
    e. Configure PHP for Zabbix frontend

    Edit file /etc/zabbix/apache.conf uncomment and set the right timezone for you.

     
    php_value date.timezone Europe/Riga
    f. Start Zabbix server and agent processes

    Start Zabbix server and agent processes and make it start at system boot.

    systemctl restart zabbix-server zabbix-agent apache2
    systemctl enable zabbix-server zabbix-agent apache2

  4. Start using Zabbix

如果没有其它应用占用80端口 此步略过

vim /etc/apache2/ports.conf

Listen 81

systemctl restart apache2
 

vim /etc/php/7.3/apache2/php.ini
 

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Asia/Shanghai

 systemctl restart zabbix-server zabbix-agent apache2
 


http://www.kler.cn/a/107676.html

相关文章:

  • qt 快捷功能 快速生成 setter getter 构造函数 父类虚函数重写 成员函数实现 代码框架 查看父类及父类中的虚函数
  • 2025年第三届“华数杯”国际赛A题解题思路与代码(Python版)
  • 前端开发:HTML常见标签
  • Zookeeper 集群安装
  • 【机器学习:八、逻辑回归】
  • 关于量子神经网络的思考
  • 五、Qt中的常用类
  • 前端学习之Babel转码器
  • C语言 位操作符 >> << | ^
  • IPv6的主要优势有哪些?
  • Python-pptx教程之一从零开始生成PPT文件
  • TSINGSEE青犀睡岗离岗检测算法——确保加油站安全运营
  • 数据安全的重要性:如何解密[thekeyishere@cock.li].Elbie勒索病毒
  • springboot + redis实现签到与统计功能
  • RabbitMQ消息中间件
  • Linux C语言开发-D7D8运算符
  • python excel接口自动化测试框架
  • vue3 源码解析(2)— ref、toRef、toRefs、shallowRef 响应式的实现
  • 【Linux】虚拟机安装Linux、客户端工具,MobaXterm的使用,Linux常用命令
  • redis archive github
  • 数据结构之队列
  • 消息队列中间件面试笔记总结RabbitMQ,Kafka,RocketMQ
  • el-table(vue2中)滚动条被固定列盖住
  • 为什么axios会有params和data两个参数
  • 数字孪生智慧工厂三维可视化系统解决方案,打造新一代智慧工厂
  • 【JAVA学习笔记】48 - 八大常用Wrapper类(包装类)