大橙子网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
#systemctl stop firewalld
#vim /etc/selinux/config
SELINUX=permissive
#setenforce 0
rpm -Uvh https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpm
# yum install -y zabbix-server-mysql zabbix-web-mysql
# yum install zabbix-proxy-mysql -y
安装zabbix-agent客户端
为华蓥等地区用户提供了全套网页设计制作服务,及华蓥网站建设行业解决方案。主营业务为成都网站设计、成都网站制作、华蓥网站设计,以传统方式定制建设网站,并提供域名空间备案等一条龙服务,秉承以专业、用心的态度为用户提供真诚的服务。我们深信只要达到每一位用户的要求,就会得到认可,从而选择与我们长期合作。这样,我们也可以走得更远!
# yum install zabbix-agent -y
设置开机自启动
# systemctl start zabbix-agent
# chkconfig zabbix-agent on
# rpm -U vh http://repo.mysql.com/yum/mysql-5.6-community/el/6/x86_64/mysql-community-release-el6-5.noarch.rpm
# yum install -y mysql-community-server
# systemctl start mysqld
# chkconfig mysqld on
# mysql_secure_installation
# mysql -uroot -p
创建一个zabbix库并设置为utf8的字符编码格式
mysql> create database zabbix character set utf8 collate utf8_bin;
创建账户并且授权设置密码
mysql> grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by 'zabbix';
刷新
mysql> flush privileges;
# zcat /usr/share/doc/zabbix-server-mysql-4.2.0/create.sql.gz | mysql zabbix -uzabbix -pzabbix
# vim /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
# vim /etc/php.ini
在最后一行添加一下内容
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
安装ntp服务
# yum install ntpdate -y
调整为亚洲上海时区
# ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
同步时间服务器
# ntpdate us.pool.ntp.org
# date
# vim /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Shanghai
启动apache
# systemctl start httpd
# systemctl enable httpd
# systemctl status httpd
启动zabbix-server服务并设置为开机启动
# systemctl start zabbix-server
# systemctl enable zabbix-server
查看zabbix-server日志
# vim /var/log/zabbix/zabbix_server.log
18050:20190827:135341.502 Starting Zabbix Server. Zabbix 4.2.5 (revision 2c0e4d1d39).
18050:20190827:135341.503 ****** Enabled features ******
18050:20190827:135341.503 SNMP monitoring: YES
18050:20190827:135341.503 IPMI monitoring: YES
18050:20190827:135341.503 Web monitoring: YES
18050:20190827:135341.503 VMware monitoring: YES
18050:20190827:135341.503 SMTP authentication: YES
18050:20190827:135341.503 Jabber notifications: NO
18050:20190827:135341.503 Ez Texting notifications: YES
18050:20190827:135341.503 ODBC: YES
18050:20190827:135341.503 SSH2 support: YES
18050:20190827:135341.503 IPv6 support: YES
18050:20190827:135341.503 TLS support: YES
18050:20190827:135341.503 ******************************
18050:20190827:135341.503 using configuration file: /etc/zabbix/zabbix_server.conf
http://本机IP/zabbix![在这里插入图片描述](/upload/otherpic76/2019082715465132.png)
希望可×××学习。蟹蟹