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

debian 10 安装apache2 zabbix

 nginx 可以略过,改为apache2

apt updateapt-get install nginx -ynginx -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.lryc.cn/news/207341.html

相关文章:

  • Qt之菜单栏、工具栏、状态栏介绍及工具栏QAction的动态增删显示实现方式
  • 十四天学会C++之第八天:文件操作
  • 基于(N-1)×(N-1)棋盘的解的情况推出N×N棋盘的解的情况的N皇后问题
  • Vue mixin混入
  • 基于 FFmpeg 的跨平台视频播放器简明教程(十):在 Android 运行 FFmpeg
  • 正点原子嵌入式linux驱动开发——Linux LCD驱动
  • 2-Java进阶知识总结-6-多线程
  • openwrt下游设备在校园网(DLUT-LingShui)中使用ipv6网络
  • 10个基于.Net开发的Windows开源软件项目
  • Java多线程秘籍,掌握这5种方法,让你的代码优化升级
  • npm install报错 缺少python
  • 达梦:开启sql日志记录
  • C语言开发,指针进阶,字符串查找,包含,拼接
  • PyCharm中文使用详解
  • 一键同步,无处不在的书签体验:探索多电脑Chrome书签同步插件
  • 在Go项目中二次封装Kafka客户端功能
  • CVE-2021-44228 Apache log4j 远程命令执行漏洞
  • 前端跨域相关
  • HTML笔记-狂神
  • python自动化测试工具selenium
  • 输入/输出应用程序接口和设备驱动程序接口
  • Python---Socket 网络通信
  • 使用 jdbc 技术升级水果库存系统(优化版本)
  • 网络协议--广播和多播
  • python爬虫入门(三)正则表达式
  • fabric.js介绍
  • YOLOv5源码中的参数超详细解析(3)— 训练部分(train.py)| 模型训练调参
  • Linux高性能编程学习-TCP/IP协议族
  • 用爬虫代码爬取高音质音频示例
  • 深度学习与计算机视觉(一)