标签:user har httpd images conf 启动 gen ntpdate set
创建用户账号
groupadd zabbix useradd -g zabbix zabbix
安装mysql数据库
wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm rpm -ivh mysql-community-release-el7-5.noarch.rpm yum install mysql-community-server
新建mysql用户
mysql -uroot create database zabbix character set utf8 collate utf8_bin; grant all privileges on zabbix.* to zabbix@localhost identified by ‘12‘; quit
导入sql数据
cd database/mysql mysql -u zabbix -p 12 use zabbix; source schema.sql source images.sql source data.sql
安装httpd、php
yum -y install php httpd
配置httpd,添加php模块
vim /etc/httpd/conf/httpd.conf
添加
LoadModule php5_module /usr/lib64/httpd/modules/libphp5.so AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps
重启httpd,设置开机启动
service httpd restart systemctl enable httpd
安装zabbix
yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent
修改zabbix 数据库配置
vim /etc/zabbix/zabbix_server.conf
修改
DBHost=localhost DBName=zabbix DBUser=zabbix DBPassword=12
启动zabbix,设置开机启动
service zabbix_server start systemctl enable zabbix-server
修改php配置
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
安装时间同步ntpdate
yum -y install ntpdate
访问http://ip/zabbix,填写配置,安装完成
标签:user har httpd images conf 启动 gen ntpdate set
原文地址:http://www.cnblogs.com/yangxunwu1992/p/7651621.html