Zabbix 系统监控软件

来源:互联网 发布:ae数据模板 编辑:程序博客网 时间:2024/05/16 00:54

LAMP搭建(如果已经搭建好了,可以忽略,只需要将PHP模块开启就OK了)

[html] view plain copy
 在CODE上查看代码片派生到我的代码片
  1. sudo apt-get install apache2  
  2.   
  3. sudo apt-get install php5  
  4.   
  5. sudo apt-get install libapache2-mod-php5  
  6.   
  7. sudo /etc/init.d/apache2 restart // 重启apache,此时php5已经可用了  
  8.   
  9. sudo apt-get install mysql-server//数据库账号:root密码:root  
  10.   
  11. sudo apt-get install libapache2-mod-auth-mysql  
  12.   
  13. sudo apt-get install php5-mysql  
  14.   
  15. sudo /etc/init.d/apache2 restart // 再次重启apache,使新服务正常激活  
  16.   
  17. 然后在终端输入:  
  18.   
  19. sudo ls /etc/apache2/mods-enabled  
  20.   
  21. 看看这个目录下(默认存在),有没有php5.conf 和 php5.load,如果没有则:  
  22.   
  23. sudo a2enmod php5  
  24.   
  25. 启用 php 模块,然后重启apache即可。OK,apache、php5、mysql都已经可用了。  
  26.   
  27. sudo /etc/init.d/apache2 restart  

sudo vi /etc/php5/apache2/php.ini


[html] view plain copy
 在CODE上查看代码片派生到我的代码片
  1. ;date.timezone ===>去掉注释在=后添加 Asia/Shanghai  
  2.   
  3. max_input_time =600  
  4.   
  5. max_execution_time600  
  6.   
  7. post_max_size =32M  


sudo /etc/init.d/apache2 restart


[html] view plain copy
 在CODE上查看代码片派生到我的代码片
  1. //安装zabbix服务端  
  2.   
  3. sudo apt-get install zabbix-server-mysql  
  4.   
  5. //安装过程会弹出许多窗口,默认就行了,期间要求输入2-3次数据库的密码(这里一直填root) 


[html] view plain copy
 在CODE上查看代码片派生到我的代码片
  1. cat /etc/default/zabbix-server  
  2.   
  3. #如下一段  
  4. # This is by default set to "no" because a MySQL database needs to be prepared  
  5. # and configured before you can start the Zabbix server for the first time.  
  6. #  
  7. # Instructions on how to set up the database can be found in  
  8. # /usr/share/doc/zabbix-server-mysql/README.Debian  
  9. START=no  




Zabbix 官网:https://sourceforge.net/projects/zabbix/

源码安装(服务端):http://blog.csdn.net/yabingshi_tech/article/details/50664273

源码安装(客户端):http://blog.csdn.net/yabingshi_tech/article/details/50679458

Ubuntu下安装Zabbix:http://blog.csdn.net/Yoara/article/details/41845473

鸟哥服务端:http://blog.chinaunix.net/uid-25266990-id-3380929.html

鸟哥客户端:http://blog.chinaunix.net/uid-25266990-id-3387002.html

0 0