AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题

全部问题(server)

Martin Hope
TomOnTime
Asked: 2016-11-02 12:04:36 +0800 CST

在 systemd 中,After= 和 Requires= 有什么区别?

  • 107

Requires=我正在创建一个 systemd .service 文件,我需要帮助理解和之间的区别After=。手册页说“配置对其他单元的Requires=需求依赖关系”。和After=“配置单元之间的排序依赖关系”。有什么不同?

systemd
  • 3 个回答
  • 143678 Views
Martin Hope
pavs-maha
Asked: 2013-05-05 21:06:39 +0800 CST

这个 nginx 错误“rewrite or internal redirection cycle”是什么意思?

  • 107
tail -f /var/log/nginx/error.log
2013/05/04 23:43:35 [error] 733#0: *3662 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: 127.0.0.1, server: _, request: "GET /robots.txt HTTP/1.1", host: "kowol.mysite.net"
HTTP/1.1", host: "www.joesfitness.net"
2013/05/05 00:49:14 [error] 733#0: *3783 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: 127.0.0.1, server: _, request: "GET / http://www.qq.com/ HTTP/1.1", host: "www.qq.com"
2013/05/05 03:12:33 [error] 733#0: *4232 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", host: "joesfitness.net"

我从 nginx 错误日志中获取这些信息,我没有“kowol”子域,我的网站上没有任何指向 qq.com 或 joesfitness.net 的链接。这是怎么回事?

编辑:Nginx 默认配置:

server {
    listen   8080; ## listen for ipv4; this line is default and implied
    listen   [::]:8080 default ipv6only=on; ## listen for ipv6

    root /usr/share/nginx/www;
    index index.php index.html index.htm;

    # Make site accessible from http://localhost/
    server_name _;

    location / {
        # First attempt to serve request as file, then
        # as directory, then fall back to index.html
        try_files $uri $uri/ /index.html;
        # Uncomment to enable naxsi on this location
        # include /etc/nginx/naxsi.rules
    }

    location /doc/ {
        alias /usr/share/doc/;
        autoindex on;
        allow 127.0.0.1;
        deny all;
    }

    # Only for nginx-naxsi : process denied requests
    #location /RequestDenied {
        # For example, return an error code
        #return 418;
    #}

    #error_page 404 /404.html;

    # redirect server error pages to the static page /50x.html
    #
    #error_page 500 502 503 504 /50x.html;
    #location = /50x.html {
    #   root /usr/share/nginx/www;
    #}

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini

        # With php5-cgi alone:
        fastcgi_pass 127.0.0.1:9000;
        #With php5-fpm:
        #fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
    }

    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    #location ~ /\.ht {
    #   deny all;
    #}
}
nginx
  • 7 个回答
  • 180682 Views
Martin Hope
Chris S
Asked: 2012-08-21 12:30:19 +0800 CST

打击垃圾邮件 - 作为电子邮件管理员、域所有者或用户,我可以做什么?

  • 110
想要改进这篇文章?提供此问题的详细答案,包括引用和解释为什么你的答案是正确的。不够详细的答案可能会被编辑或删除。

这是关于打击垃圾邮件的规范问题。
还相关:

  • 如何阻止人们使用我的域发送垃圾邮件?
  • 什么是 SPF 记录,我该如何配置它们?

关于打击垃圾邮件,有很多技术和很多知识需要了解。管理员、域所有者和最终用户可以使用哪些广泛使用的技巧和技术来帮助将垃圾拒之门外?

我们正在寻找一个从不同角度涵盖不同技术的答案。接受的答案应包括各种技术(例如 SPF/SenderID、DomainKeys/DKIM、灰名单、DNS RBL、信誉服务、过滤软件 [SpamAssassin 等]);最佳实践(例如永远不允许中继端口 25 上的邮件,应该使用端口 587 等)、术语(例如开放中继、反向散射、MSA/MTA/MUA、垃圾邮件/非垃圾邮件)以及可能的其他技术。

email spam spf dkim
  • 6 个回答
  • 64453 Views
Martin Hope
Billy Moon
Asked: 2012-08-09 06:17:34 +0800 CST

如何阻止人们使用我的域发送垃圾邮件?[复制]

  • 111
这个问题在这里已经有了答案:
打击垃圾邮件 - 作为电子邮件管理员、域所有者或用户,我可以做什么? (6 个答案)
8 年前关闭。

我收到 Mailer Daemon 消息说某些电子邮件发送失败。我的域是itaccess.org由 Google 应用程序管理的。有什么方法可以确定谁在从我的域发送电子邮件,以及他们是如何发送电子邮件的,而无需我为他们创建帐户?

Delivered-To: [email protected]
Received: by 10.142.152.34 with SMTP id z34csp12042wfd;
        Wed, 8 Aug 2012 07:12:46 -0700 (PDT)
Received: by 10.152.112.34 with SMTP id in2mr18229790lab.6.1344435165782;
        Wed, 08 Aug 2012 07:12:45 -0700 (PDT)
Return-Path: <[email protected]>
Received: from smtp-gw.fsdata.se (smtp-gw.fsdata.se. [195.35.82.145])
        by mx.google.com with ESMTP id b9si24888989lbg.77.2012.08.08.07.12.44;
        Wed, 08 Aug 2012 07:12:45 -0700 (PDT)
Received-SPF: neutral (google.com: 195.35.82.145 is neither permitted nor denied by best guess record for domain of [email protected]) client-ip=195.35.82.145;
Authentication-Results: mx.google.com; spf=neutral (google.com: 195.35.82.145 is neither permitted nor denied by best guess record for domain of [email protected]) [email protected]
Received: from www20.aname.net (www20.aname.net [89.221.250.20])
    by smtp-gw.fsdata.se (8.14.3/8.13.8) with ESMTP id q78EChia020085
    for <[email protected]>; Wed, 8 Aug 2012 16:12:43 +0200
Received: from www20.aname.net (localhost [127.0.0.1])
    by www20.aname.net (8.14.3/8.14.3) with ESMTP id q78ECgQ1013882
    for <[email protected]>; Wed, 8 Aug 2012 16:12:42 +0200
Received: (from whao@localhost)
    by www20.aname.net (8.14.3/8.12.0/Submit) id q78ECgKn013879;
    Wed, 8 Aug 2012 16:12:42 +0200
Date: Wed, 8 Aug 2012 16:12:42 +0200
Message-Id: <[email protected]>
To: [email protected]
References: <20120808171231.CAC5128A79D815BC08430@USER-PC>
In-Reply-To: <20120808171231.CAC5128A79D815BC08430@USER-PC>
X-Loop: [email protected]
From: [email protected]
Subject: whao.se:  kontot avstängt - account closed
X-FS-SpamAssassinScore: 1.8
X-FS-SpamAssassinRules: ALL_TRUSTED,DCC_CHECK,FRT_CONTACT,SUBJECT_NEEDS_ENCODING

    Detta är ett automatiskt svar från F S Data - http://www.fsdata.se

    Kontot för domänen whao.se är tillsvidare avstängt.
    För mer information, kontakta [email protected]

    Mvh,
    /F S Data

    -----

  This is an automatic reply from F S Data - http://www.fsdata.se

  The domain account "whao.se" is closed.
  For further information, please contact [email protected]

  Best regards,
  /F S Data
spam
  • 9 个回答
  • 136996 Views
Martin Hope
kylex
Asked: 2012-05-11 06:27:55 +0800 CST

shell 命令上的单破折号和双破折号标志有什么区别?

  • 110

我是 shell 的新手,这些命令的使用似乎很随意。有没有一个标志有一个破折号而另一个可能有两个破折号的原因?

shell
  • 5 个回答
  • 65521 Views
Martin Hope
jack
Asked: 2010-01-19 19:02:13 +0800 CST

InnoDB:错误:日志文件 ./ib_logfile0 大小不同

  • 109

在将一个数据库转换为使用 InnoDB 引擎后,我刚刚在 /etc/mysql/my.cnf 中添加了以下行。

innodb_buffer_pool_size = 2560M
innodb_log_file_size    = 256M
innodb_log_buffer_size  = 8M
innodb_flush_log_at_trx_commit  = 2
innodb_thread_concurrency   = 16
innodb_flush_method = O_DIRECT

但它在第 2 行引发“错误 2013(HY000):在查询期间丢失与 MySQL 服务器的连接”错误重新启动 mysqld。mysql错误日志显示如下

InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes
InnoDB: than specified in the .cnf file 0 268435456 bytes!
100118 20:52:52 [ERROR] Plugin 'InnoDB' init function returned error.
100118 20:52:52 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
100118 20:52:52 [ERROR] Unknown/unsupported table type: InnoDB
100118 20:52:52 [ERROR] Aborting

所以我注释掉了这一行

# innodb_log_file_size  = 256M

它成功地重新启动了mysql。

我想知道mysql错误中显示的“5242880字节的日志文件”是什么?这是该服务器上 InnoDB 引擎上的第一个数据库,那么该日志文件是何时何地创建的?在这种情况下,如何在 my.cnf 中启用 innodb_log_file_size 指令?

编辑

我试图删除 /var/lib/mysql/ib_logfile0 并重新启动 mysqld 但它仍然失败。它现在在错误日志中显示以下内容。

100118 21:27:11  InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 256 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Progress in MB: 100 200
InnoDB: Error: log file ./ib_logfile1 is of different size 0 5242880 bytes
InnoDB: than specified in the .cnf file 0 268435456 bytes!

解析度

删除 /var/lib/mysql 中的 ib_logfile0 和 ib_logfile1 后,它现在可以工作了

mysql log-files innodb
  • 1 个回答
  • 155037 Views
Martin Hope
user11722
Asked: 2009-07-07 03:56:55 +0800 CST

如何从“用户 root 的身份验证失败太多”中恢复

  • 108

我已经多次尝试使用 putty 终端为用户 root@host 建立 SSH-connecton。这样做时,我多次指定了错误的凭据,然后我正确指定了它们,然后在接受凭据后,ssh会话中断

“服务器意外关闭网络连接”。

putty终端报此错误。当尝试从本地控制台 ssh root@localhost - 它工作正常。当我从其他主机 ssh otheruser@host 时,它也可以正常工作。所以网络连接问题是无罪的。我想到的唯一错误是:“用户 root 的身份验证失败太多”,尽管 putty 报告了一个不同的错误。

问题是:如何从这种错误情况中恢复并让 putty 再次登录?重新启动 sshd 似乎没有帮助

ssh putty
  • 22 个回答
  • 401664 Views
Martin Hope
jldugger
Asked: 2009-05-21 11:53:08 +0800 CST

我如何知道安装了哪个版本的 IIS?

  • 111

我有一个运行 Win2k3 的盒子和一些来自 Microsoft KB 的关于 SSL 证书的说明,适用于 IIS 5.0 和 6.0。如何判断当前安装了哪个版本的 IIS?

windows iis
  • 13 个回答
  • 351870 Views
Martin Hope
paulgreg
Asked: 2009-05-19 01:13:08 +0800 CST

在哪里可以找到作为“本地系统帐户”运行的 Windows 服务存储的数据?

  • 110

我正在使用将数据存储在磁盘上的服务。该服务作为“本地系统帐户”运行。

该系统用户的存储数据在哪里?

我正在考虑,C:\Documents and Settings\Default User但我不确定。

有人可以确认吗?

windows service users
  • 6 个回答
  • 107528 Views
Martin Hope
Ian Kelling
Asked: 2009-05-10 14:50:19 +0800 CST

如何从 Linux 制作 Windows 7 USB 闪存安装介质?

  • 108

我有:

  • Windows 7 安装介质的ISO 映像
  • 4 GB USB 闪存驱动器
  • 没有 DVD 驱动器
  • 已安装 Linux
linux usb windows-7
  • 4 个回答
  • 235150 Views
上一页
下一页

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve