zabbix2.2安装配置(1)
生活随笔
收集整理的這篇文章主要介紹了
zabbix2.2安装配置(1)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1、安裝LAMP環境,并安裝依賴包。
[root@localhost?~]#?yum?-y?install?httpd?php?mysql-server [root@localhost?~]#?yum?-y?install?mysql-devel?gcc?net-snmp-devel?crul-devel?libxml2-devel?perl-DBI?php-gd?php-mysql?php-bcmath?php-mbstring?php-xml [root@localhost?~]#?chkconfig?httpd?on [root@localhost?~]#?chkconfig?mysqld?on2、添加用戶,創建數據庫,添加授權賬戶
[root@localhost?~]#?useradd?zabbix [root@localhost?~]#?mysqladmin?-u?root?-h?localhost?password?"password" [root@localhost?~]#?mysql?-uroot?-p mysql>?create?database?zabbix?character?set?utf8; mysql>?grant?all?privileges?on?zabbix.*?to?zabbix@localhost?identified?by?'password';3、編譯安裝zabbix,下載地址:http://www.zabbix.com/download.php
4、導入數據庫。
[root@localhost?zabbix-2.2.4]#?mysql?-uzabbix?-pzabbix?-hlocalhost?zabbix?<?database/mysql/schema.sql [root@localhost?zabbix-2.2.4]#?mysql?-uzabbix?-pzabbix?-hlocalhost?zabbix?<?database/mysql/p_w_picpaths.sql [root@localhost?zabbix-2.2.4]#?mysql?-uzabbix?-pzabbix?-hlocalhost?zabbix?<?database/mysql/data.sql5、修改配置文件,添加服務端口,啟動服務。
[root@localhost?zabbix-2.2.4]#?cp?misc/init.d/fedora/core/zabbix_server?/etc/init.d/ [root@localhost?zabbix-2.2.4]#?cp?misc/init.d/fedora/core/zabbix_agentd?/etc/init.d/ [root@localhost?zabbix-2.2.4]#?cp?-R?frontends/php?/var/www/html/zabbix [root@localhost?~]#?vim?/usr/local/zabbix/etc/zabbix_server.conf DBUser=zabbix DBPassword=zabbix [root@localhost?~]#?vim?/etc/init.d/zabbix_server? BASEDIR=/usr/local/zabbix [root@localhost?~]#?vim?/etc/init.d/zabbix_agentd? BASEDIR=/usr/local/zabbix [root@localhost?~]#?vim?/etc/services? zabbix-agent?10050/tcp?Zabbix?Agent zabbix-agent?10050/udp?Zabbix?Agent zabbix-trapper?10051/tcp?Zabbix?Trapper zabbix-trapper?10051/udp?Zabbix?Trapper [root@localhost?~]#?/etc/init.d/zabbix_server?start [root@localhost?~]#?/etc/init.d/zabbix_agentd?start [root@localhost?~]#?echo?"/etc/init.d/zabbix_server?start"?>>?/etc/rc.local [root@localhost?~]#?echo?"/etc/init.d/zabbix_agentd?start"?>>?/etc/rc.local6、web登錄:http://ip/zabbix?
如有fail需要完善系統要求
然后重新檢測
轉載于:https://blog.51cto.com/liang178/1436141
總結
以上是生活随笔為你收集整理的zabbix2.2安装配置(1)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux 文件系统在线扩容实战
- 下一篇: Centos7-install apac