Zabbix installation of Epel source under Centos7
The last time the initial installation of Zabbix test, because there are other projects so did not continue to study, now finally idle down, sneak in, study.
Centos7 the Epel source has been installed.
- Install the MySQL server yum install mariadb mariadb-server
- Install Zabbix (will automatically install Apache PHP) yum install zabbix22-dbfiles-mysql.noarch zabbix22-server-mysql zabbix22-server Zabbix22-web-mysql.noarch Zabbix22-web
- Run Zabbix_agentd
Zabbix_server
error Zabbix_server [2837]: User Zabbix does not exist
Zabbix_server [2837]: cannot run as root!
Install Agent Yun Install Zabbix22-agent
Error changed to Zabbix_server [2925]: Cannot open [/var/log/zabbixsrv/zabbix_server.log]: [] Permission denied
Create a new log file and authorize
Touch/var/log/zabbixsrv/zabbix_server.log
Chown Zabbix/var/log/zabbixsrv/zabbix_server.log
error Zabbix_server [3704]: Cannot create PID file [/run/zabbixsrv/zabbix_server.pid]: [] Permission denied
Create a new run file and authorize
Touch/run/zabbixsrv/zabbix_server.pid
Chown Zabbix/run/zabbixsrv/zabbix_server.pid
Error [Z3001] connection to database ' Zabbix ' failed: [1044] Access denied for user "@ ' localhost ' to database ' Zabbix '
13061:20141211:111949.698 cannot connect to the database. Exiting ...
Create database user name, import database
Mysql_secure_installation #设置root密码
Create DATABASE Zabbix default CharSet UTF8; #创建数据库
GRANT all privileges the zabbix.* to ' Zabbix ' @ ' localhost ' identified by ' Zabbix '; #创建用户名密码
Flush privileges; #刷新权限
cd/usr/share/zabbix-mysql/
Mysql-u root-p Zabbix<schema.sql
Mysql-u root-p Zabbix<images.sql
Mysql-u root-p Zabbix<data.sql
Modify the user name and password in the configuration file vim/etc/zabbix_server.conf
Dbuser=zabbix
Dbpassword= ' Zabbix '
Try Running
Ok.
Then set the web-side
Enter Http://ip/zabbix and click Next
Set PHP.ini
Post_max_size =16m
max_execution_time=300
max_input_time=300
Date.timezone =PRC
of the input settings MySQL User name Password
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/55/43/wKiom1SJQYzTo9rvAABfOM38o_E398.jpg "/>
Error after entry
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/55/41/wKioL1SJQiShbsYeAACKUp6jPME186.jpg "/>
SELinux problem, A, workaround close SELinux setenforce 0
B, set the Httpd_can_network_connect parameter to open
Setsebool-p Httpd_can_network_connect on
4. Set up the service from start and start the service.
Systemctl Enable Httpd.service Mariadb.service
Systemctl Start Httpd.service Mariadb.service
5. Set up and start the firewall
Firewall-cmd--permanent--add-service=http
Firewall-cmd--permanent--add-port=10051/tcp
Firewall-cmd--permanent--add-port=10050/tcp
Firewall-cmd Reload
6. Set Chinese display
vim/usr/share/zabbix/include/locales.inc.php
ZH_CN set to True
vim/usr/share/zabbix/include/defines.inc.php
Locate the C:\Windows\Fonts\simkai.ttf upload to the/usr/share/fonts/dejavu directory, and then do the following
Modify Dejavusans to Simkai
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/55/43/wKiom1SJQYyR4wwAAACbNGjXnAU315.jpg "/>
Finally, the Zabbix server is enabled in the configuration host.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/55/41/wKioL1SJQiTBfzZJAAEOLV3tFbE312.jpg "/>
Ps:
Http://www.niubilety.com/2014/10/20/70.html
http://www.ttlsa.com/zabbix/follow-ttlsa-to-study-zabbix/
Zabbix installation of Epel source under Centos7