服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
我已经在GCP上激活了HTTPS负载均衡器,并带有SSL证书。 在前面我已经指定HTTPS / 443作为监听协议和HTTP与后端通信。 HTTPS很好地工作,但负载均衡器也接受http / 80连接导致404页面。 有什么办法直接从负载均衡器转发http到https? 谢谢
我尝试访问运行PostgreSQL的Server_A 。 该服务器位于本地networking上,这就是为什么我必须从Server_B转发端口, Server_B可以在同一networking中访问。 要访问Server_B上的postgreSQl,我可以轻松地转发像这样的端口: ssh -L 54320:Server_A:5432 user@Server_B 而在另一个terminal: psql -p 54320 -d db_name -U user 我的问题是我想重现从Server_B的networking中存在的机器完成的连接。 这台机器可以使用以下命令将自己连接到数据库: psql -h Server_A -p 5432 -d db_name -U user 其实我有问题: 我无法使用ssh命令转发5432端口: 通过在ssh命令中插入5432:Server_A:5432来转发5432端口,我有这个错误: psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? […]
OpenLdap 2.4。*正在使用,与ppolicy插件 我注意到,pwdFailureTime多值属性被添加到LDAP数据库,但看起来像它永远不会被删除。 有没有简单的方法来使该属性的旧值自动删除? 看到数据库保存越来越多的这些logging,我感到不高兴。 我可以从虚假的值过滤LDAP备份,并使用slapadd重新添加整个数据库,但更简单的解决scheme将不胜感激。
我知道这是一个古老的问题,但我还没有find一个令人满意的答案,如何识别后缀上的垃圾邮件脚本。 我知道我必须查看postfix的邮件日志,获取消息ID并检查我已经完成的标题内容。 我似乎没有看到“X-PHP-Originating-Script”这一行来查找确切的脚本。 相反,我有X-mailer:Mailer v1.0。 有没有其他方法可以find从本地机器发送电子邮件的脚本? 以下是消息ID *** MESSAGE CONTENTS deferred/1/17A30ED943C *** Received: from somedomain.com (localhost [127.0.0.1]) by mymail-server.com (Postfix) with ESMTP id 17A30ED943C for <[email protected]>; Mon, 18 Jul 2016 12:45:54 +0300 (EAT) Date: Mon, 18 Jul 2016 09:45:54 +0000 (UTC) From: jms <[email protected]> To: [email protected] Message-ID: <[email protected]> Subject: FW: Hi nolaspud MIME-Version: 1.0 Content-Type: […]
我正在使用ubuntu-16.04,并一直试图与Tomcat合作。 我的版本是:Apache Tomcat / 8.0.36。 我有一个应用程序在http:// localhost:8080 / mynewapp ,我想作为根应用程序访问,这意味着我想看到我的应用程序,当我访问http://127.0.0.1:8080 请帮我一下。
我已经按照以下步骤在服务器A上添加了mysql ssl支持: # Generate a CA key and certificate with SHA1 digest openssl genrsa 2048 > ca-key.pem openssl req -sha1 -new -x509 -nodes -days 3650 -key ca-key.pem > ca-cert.pem # Create server key and certficate with SHA1 digest, sign it and convert # the RSA key from PKCS #8 (OpenSSL 1.0 and newer) to the […]
我正在使用具有两个EC2实例的AWS Beanstalk(Tomcat)。 我有最小和最大的实例计数到2和Any 2在可用区。 根据Beanstalk FAQ部署新的WAR时,我期待高可用性,但是当ELBparsing为当前正在部署WAR的节点时,会出现504 Gateway Timeout错误。 如何部署具有高可用性的WAR?
search了这个,但找不到任何明确的答案 – 一个证书SAN可以包含像“citrix * .domain.com”的名称,以允许使用citrixdirector.domain.com和citrixprod.domain.com,例如?
SP运行Shibboleth 2.5.6。 对于一个特定的IdP,我有这些属性映射: <Attribute name="role" nameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified" id="role" /> <Attribute name="urn:mace:dir:attribute-def:givenName" nameFormat="urn:mace:shibboleth:1.0:attributeNamespace:uri" id="givenName" /> 我收到一条包含以下内容的电报 <AttributeStatement> <Attribute Name="role" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"> <AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Educator</AttributeValue> </Attribute> <Attribute Name="urn:mace:dir:attribute-def:givenName" NameFormat="urn:mace:shibboleth:1.0:attributeNamespace:uri"> <AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">intraguest</AttributeValue> </Attribute> </AttributeStatement> 哪些日志: Shibboleth.AttributeExtractor.XML : creating mapping for Attribute role, Format/Namespace:urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified Shibboleth.AttributeExtractor.XML : creating mapping for Attribute urn:mace:dir:attribute-def:givenName … DEBUG Shibboleth.AttributeDecoder.String [1]: decoding SimpleAttribute (role) […]
我有两台机器运行相同的JBoss和HTTPD设置。 他们从RedHat 7完全相同的安装开始,并遵循相同的过程在两台机器上安装一切。 在一台机器上,SELinux以默认设置运行,一切正常。 我从来没有碰过SELinux。 在另一台机器上,当我尝试在networking浏览器中访问它时,出现403条禁止的错误消息。 当我在网上search为什么时,我发现一个build议,我应该禁用SELinux,看看它是否工作。 所以我跑了setenforce 0 ,重新启动jboss和httpd,刷新我的浏览器,禁止的消息走了,一切都工作了。 我用setenforce 1重新打开SELinux setenforce 1 ,重新启动应用程序,刷新浏览器,禁止的消息回来。 所以在我的第二台机器上,SELinux肯定有些问题。 这很奇怪,因为我没有在任何一台机器上碰到SELinux,直到我试图在第二秒钟把它关掉。 我已经证实,在第一台机器上,当我运行getenforce ,它确实返回Enforcing 。 我的问题是 – 如何查看每台机器上的SELinuxconfiguration? 我怎么能比较它们,找出它们之间的差异,编辑或复制它们,以便我可以在不干扰我的应用的情况下在第二台机器上运行SELinux,就像在我的第一台机器上一样? 编辑 – 我运行这个命令来search审计日志: cat /var/log/audit/audit.log | grep httpd | grep denied 第一行重复了好几次。 最后两行只在最后出现一次。 type=AVC msg=audit(1468877854.297:22110): avc: denied { getattr } for pid=5193 comm="httpd" path="/var/www/html/sfo/index.htm" dev="dm-0" ino=70334613 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:var_t:s0 tclass=file type=AVC msg=audit(1468877854.297:22111): […]