/etc/init.d/nginx reload

/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代码文件中:
- #more /home/root/zabbix/conf/zabbix.conf.php
- <?php
- // Zabbix GUI configuration file
- global $DB;
- $DB['TYPE'] = 'MYSQL';
- $DB['SERVER'] = 'localhost';
- $DB['PORT'] = '3306';
- $DB['DATABASE'] = 'zabbix';
- $DB['USER'] = 'root';
- $DB['PASSWORD'] = '123456';
- // SCHEMA is relevant only for IBM_DB2 database
- $DB['SCHEMA'] = '';
- $ZBX_SERVER = '42.120.x.x';
- $ZBX_SERVER_PORT = '10051';
- $ZBX_SERVER_NAME = '';
- $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
- ?>
四、利用postfix配置邮件服务器发送报警
postfix安装略,可直接yum install postfix
配置文件更改:
- #vi /etc/postfix/main.cf
- queue_directory = /var/spool/postfix
- command_directory = /usr/sbin
- daemon_directory = /usr/libexec/postfix
- mail_owner = postfix
- myhostname = internal.yr.com #邮件域名
- mydomain = internal.yr.com
- myorigin = $mydomain
- inet_inteces = all
- #注意,这里权限开放错误的话,会导致邮件发送不出去,开始时没理解,只设了允许本机IP,导致其它机器测试telnet 25过来全不通,WEB管理界面Monitoring-->Events-->Time可查看出错信息
- mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
- unknown_local_recipient_reject_code = 550
- mynetworks = 42.120.x.x, 127.0.0.1
- relay_domains = $mydestination, 42.120.x.x, internal.yr.com
- alias_maps = hash:/etc/aliases
- alias_database = hash:/etc/aliases
- home_mailbox = Maildir/
- smtpd_banner = $myhostname ESMTP unknow
- debug_peer_level = 2
- debugger_command =
- PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
- xxgdb $daemon_directory/$process_name $process_id & sleep 5
- sendmail_path = /usr/sbin/sendmail.postfix
- newaliases_path = /usr/bin/newaliases.postfix
- mailq_path = /usr/bin/mailq.postfix
- setgid_group = postdrop
- html_directory = no
- manpage_directory = /usr/share/man
- sample_directory = /usr/share/doc/postfix-2.3.3/samples
- readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-27594-2.html
只不过马云的办公室和祖宗的墓地风水好
你知道什么意思了吧
虽然我们现在应该在军事上做好最坏的打算