小编gek*_*kkz的帖子

聚合来自多个 nginx 服务器的流量统计信息的最佳工具是什么?

设置:

2 or more nginx machines
each machine has the same virtual hosts
traffic is load balanced via DNS to each machine
Run Code Online (Sandbox Code Playgroud)

我需要弄清楚用于获取一些流量统计数据的最佳工具是什么,主要是对点击量和以 GB 为单位的总流量感兴趣。很明显,日志信息会来自nginx,格式如下:

  log_format  main  '$remote_addr $host $remote_user [$time_local] "$request" '
                    '$status $body_bytes_sent "$http_referer" "$http_user_agent" "$gzip_ratio"';
Run Code Online (Sandbox Code Playgroud)

linux traffic nginx log-files

7
推荐指数
1
解决办法
1507
查看次数

Linode w/ Google Apps - 如何从 PHP 获取邮件?

我有一个作为 LAMP 堆栈运行的 CentOS Linode 实例。我也在使用 Google Apps 发送电子邮件。我的 MX 记录指向 google 的服务器,并且在转发我的电子邮件方面一切正常。

但是,盒子上的 sendmail 无法正常工作,这意味着来自 PHP (wordpress) 的电子邮件没有被发送。

查看本地邮件我可以看到这些消息在日志中重复 -

   ----- Transcript of session follows -----
<my email addr>... Deferred: Connection refused by aspmx.l.google.com.
Run Code Online (Sandbox Code Playgroud)

我没有配置 sendmail 的经验 - 谁能告诉我从哪里开始解决这个问题?我已经做了很多谷歌搜索,但无济于事。

sendmail wordpress linode g-suite

6
推荐指数
1
解决办法
2319
查看次数

标签 统计

g-suite ×1

linode ×1

linux ×1

log-files ×1

nginx ×1

sendmail ×1

traffic ×1

wordpress ×1