debian10安装apache2zabbix
- 手机
- 2025-08-15 13:54:01

nginx 可以略过,改为apache2
apt update apt-get install nginx -y nginx -v nginx version: nginx/1.14.2 mysql 安装参考linux debian10 安装mysql5.7_debian apt install mysql5.7-CSDN博客 Install and configure Zabbix for your platform a. Install Zabbix repositoryDocumentation
wget repo.zabbix /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 databaseDocumentation
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 zabbixDisable 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 serverEdit file /etc/zabbix/zabbix_server.conf
DBPassword=password e. Configure PHP for Zabbix frontendEdit 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 processesStart 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 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/Shanghaisystemctl restart zabbix-server zabbix-agent apache2
debian10安装apache2zabbix由讯客互联手机栏目发布,感谢您对讯客互联的认可,以及对我们原创作品以及文章的青睐,非常欢迎各位朋友分享到个人网站或者朋友圈,但转载请说明文章出处“debian10安装apache2zabbix”
上一篇
JDBC与MySql数据库
下一篇
C语言实现通讯录