b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

zabbix客户端安装配置_zabbix安装_zabbix3.0安装(2)

电脑杂谈  发布时间:2017-01-20 14:03:36  来源:网络整理

/etc/init.d/nginx reload

zabbix客户端安装配置_zabbix安装_zabbix3.0安装

/etc/init.d/php-fpm restart

WEB访问: 默认用户名admin 密码zabbix

按照提示输入的连接信息及主机端口,依次:

Database type : mysql

Database host : localhost

Database name : zabbix

User : root

Password : 123456

Host : 42.120.x.x

Port : 10051

完成后这些信息是会记录到对应的前端php代码文件中:

  1. #more /home/root/zabbix/conf/zabbix.conf.php  
  2. <?php 
  3. // Zabbix GUI configuration file  
  4. global $DB;  
  5. $DB['TYPE']     = 'MYSQL';  
  6. $DB['SERVER']   = 'localhost';  
  7. $DB['PORT']     = '3306';  
  8. $DB['DATABASE'] = 'zabbix';  
  9. $DB['USER']     = 'root';  
  10. $DB['PASSWORD'] = '123456';  
  11. // SCHEMA is relevant only for IBM_DB2 database  
  12. $DB['SCHEMA'] = '';  
  13. $ZBX_SERVER      = '42.120.x.x';  
  14. $ZBX_SERVER_PORT = '10051';  
  15. $ZBX_SERVER_NAME = '';  
  16. $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;  
  17. ?> 

四、利用postfix配置邮件服务器发送报警

postfix安装略,可直接yum install postfix

配置文件更改:

  1. #vi /etc/postfix/main.cf  
  2. queue_directory = /var/spool/postfix  
  3. command_directory = /usr/sbin  
  4. daemon_directory = /usr/libexec/postfix  
  5. mail_owner = postfix 
  6. myhostname = internal.yr.com         #邮件域名  
  7. mydomain = internal.yr.com  
  8. myorigin = $mydomain  
  9. inet_inteces = all                               
  10. #注意,这里权限开放错误的话,会导致邮件发送不出去,开始时没理解,只设了允许本机IP,导致其它机器测试telnet 25过来全不通,WEB管理界面Monitoring-->Events-->Time可查看出错信息 
  11. mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain  
  12. unknown_local_recipient_reject_code = 550 
  13. mynetworks = 42.120.x.x, 127.0.0.1  
  14. relay_domains = $mydestination, 42.120.x.x, internal.yr.com  
  15. alias_maps = hash:/etc/aliases  
  16. alias_database = hash:/etc/aliases  
  17. home_mailbox = Maildir/  
  18.      
  19. smtpd_banner = $myhostname ESMTP unknow  
  20. debug_peer_level = 2 
  21. debugger_command =  
  22.          PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin  
  23.          xxgdb $daemon_directory/$process_name $process_id & sleep 5  
  24. sendmail_path = /usr/sbin/sendmail.postfix  
  25. newaliases_path = /usr/bin/newaliases.postfix  
  26. mailq_path = /usr/bin/mailq.postfix  
  27. setgid_group = postdrop 
  28. html_directory = no 
  29. manpage_directory = /usr/share/man  
  30. sample_directory = /usr/share/doc/postfix-2.3.3/samples  
  31. readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES 


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-27594-2.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    • 时鑫
      时鑫

      虽然我们现在应该在军事上做好最坏的打算

      • 孙咸
        孙咸

        只不过马云的办公室和祖宗的墓地风水好

    • 徐冉
      徐冉

      你知道什么意思了吧

    每日福利
    热点图片
    拼命载入中...