同步于官方文档+实验论证 1、安装zabbix-release # wget http://repo.zabbix.com/zabbix/2.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_2.4-1+trusty_all.deb # dpkg -i zabbix-release_2.4-1+trusty_all.deb # apt-get update
# apt-get install zabbix-server-mysql zabbix-frontend-php
2、安装zabbix-agent
apt-get install zabbix-agent
3、修改时区等配置:
#sudo vim /etc/apache2/conf-available/zabbix.conf)
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 date.timezone Europe/Riga php_value date.timezone Asia/Shanghai
4、重启apache2配置
sudo service apache2 restart
过程中存在以下报错解决方法:
Ubuntu下Apache重启错误:Could not reliably determine解决
错误信息:
apache2: Could not reliably determine the server‘s fully qualified domain name, using 127.0.1.1 for ServerName
解决方法:
sudo gedit /etc/apache2/apache2.conf
在文件后面加上:
#Server Name
ServerName = 127.0.0.1
时间: 2024-10-08 16:43:52