服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
这是我的Nginxconfiguration: upstream app_server { # Bindings to the Gunicorn server server 127.0.0.1:8002 fail_timeout=0; } server { listen 80; server_name "~^www\.(.*)$"; return 301 https://$host$request_uri; } server { access_log path_to_nginx-access.log; error_log path_to_nginx-error.log; listen 443 ssl; server_name _; ssl_certificate path_to_nginx.crt; ssl_certificate_key path_to_nginx.key; client_max_body_size 4G; keepalive_timeout 5; root path_to_root; location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header […]
我真的很困惑的FQDN。 所以在我的debian机器/etc/hosts上有这个文件。 那里到底是什么? 说我的VPS位于ipadress:39.22.11.99而我有几个域都指向这个IP地址。 让我们说: domainA.com , domainB.com , domainC.com 这三个域名为每个服务器提供另一个用途,并且正确configurationNginx以指向正确的数据:网站A,网站B,网站C 我有一个运行在我的VPS上的邮件服务器正在运行。 然而,不知何故,我认为我的/etc/hosts文件configuration不正确,因为即使我拥有所有3个域和子域的SSL证书,所有邮件都进入了我的垃圾邮件文件夹。 如何configuration他的/etc/hosts文件? 而虚拟主机/用户应该帮助我从不同的域发送邮件吗? 现在我的/etc/hosts文件看起来像这样: 127.0.0.1 localhost SomeAlias 39.22.11.99 domainA.com SomeAlias 39.22.11.99 mail.domainA.com SomeAlias 39.22.11.99 domainB.com SomeAlias 39.22.11.99 domainC.com SomeAlias
我有2个域名,都在我的服务器上,都是由我注册的。 但问题是,其中一个域昨天过期,我需要通过url紧急访问它的数据,但我不能在接下来的几天更新。 所以我可以在我的控制面板访问这两个网站,我可以控制他们的一切,DNS,子域名,别名域等… 由于domain2.com过期,我可以以某种方式创builddomain2.domain1.org子域或别名域,当我访问该子域来显示从过期domain2.com网站。 我已经尝试了几个解决scheme与子域,别名域创build,但没有运气。 我也尝试添加一个logging到我的DNS domain2.domain1.org指向domain2.com 有没有可能的方式redirect到过期的域名? 我的控制面板是ISPConfig如果重要,我也使用nginx和BIND的DNS。
我testinghaproxy与Keepalive 3台服务器。 Hyproxy服务器configuration工作正常(USLTS4 / USLTS5),但不keepalived。 这个过程在两个haproxy上都开始了,但是VIP没有被分配给master(USLTS4),所以不能从客户端访问。 这里是haproxy和keepalivedconfiguration: HAProxy的 KEEPALIVED haproxy的工作单独罚款和负载均衡 USLTS4:〜$ netstat -nlta | grep:80 tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN USLTS5:〜$ netstat -nlta | grep 80 tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 没有贵宾分配到主haproxy 使用单播和多播(默认)configuration进行testing。 unicast_peer { 192.168.20.254 }
我想通过Ubuntu 14.04版本发送邮件到我的Gmail邮箱ID。 Ubuntu在我的Windows机器上通过VMware运行。 请让我知道,如果上述说明不清楚,因为我是新手在使用虚拟机。 我已经安装了VMware Workstation 12 Player。 然后下载了ubuntu-14.04.4-desktop-amd64.iso并为它创build了一个虚拟机。 我试图运行下面的命令: echo "This is the body of the email" | mail -s "This is the subject line" myemailID echo "This is the body of the email" | mail -s "This is the subject line" myemailID 没有错误提示。 我已经在Ubuntu上执行了以下工具: sudo apt-get install mailutils sudo apt-get install postfix mailutils […]
尝试导入macauthentication的大量用户列表。 我可以创build用户,但无论我尝试什么,我都不能将它们添加到本地组。 我不断地得到“一个无效的目录path名被传递”给add函数。 这是实际的错误: Method invocation failed because [System.DirectoryServices.DirectoryEntry] does not contain a method named 'op_Addition'. At C:\Users\Administrator\Desktop\Import Script\Import1.ps1:12 char:2 + $objuser = [ADSI]"WinNT://RadiusSVR/" + $_.MAC + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (op_Addition:String) [], RuntimeException + FullyQualifiedErrorId : MethodNotFound Exception calling "Add" with "1" argument(s): "An invalid directory pathname was passed $Computername = $env:COMPUTERNAME $objgroup […]
我有一个指向Azure网站IP地址的logging。 现在我想将一个子域指向Azure虚拟机。 我可以创build一个NSloggingxxx.example.com -> xxx.southeastasia.cloudapp.azure.com ? 我是否需要创build任何CNAMElogging? 我必须在Azure上进行任何域名validation吗?
我没有configuration这个服务器,所以我不知道什么是正在运行或在哪里运行。 服务器是运行Centos的某种机架式服务器(运行在我们数据中心的1U或2U Dell)。 所以我们有在我们的服务器上运行的webapps。 一个是端口8080上的Jenkins。另一个是在服务器的端口1234上显示日志文件的目录列表。 我们以前可以通过端口1234访问日志,但是由于某种原因它今天停止工作。 我不知道什么Web服务器正在服务日志,但盲目执行: find / -name "tomcat*" 没有任何回报。 我也执行了 netstat -a | grep 1234 netstat -a | grep 8080 但它不显示端口,这是没有意义的B / Cjenkins正在运行,所以至less端口8080应该由netstat返回(至less我认为8080应该返回)。 jenkins看起来是在自己运行,所以它似乎没有使用tomcat java -jar /path/to/jenkins.war. 如果有人可以告诉我如何find运行在端口1234上的networking服务器,我会很感激。
我试图find我的服务器的一个奇怪的问题。 在最后一天左右,与某些受SSL保护的网站(包括HTTP和SMTP)的连接开始失败。 这是openssl的输出: CONNECTED(00000003)depth = 1 C = IL,O = StartCom有限公司OU =安全数字证书签名,CN = StartCom Class 2主要中间服务器CAvalidation错误:num = 20:无法获得本地颁发者证书validation返回:0 这仅影响受startcom证书保护的服务器,并且仅在最近几天才开始发生。 我证实,StartCom证书安装在/ etc / ssl / certs中,他们是我需要的。 是什么让这真是奇怪的是,使用wget成功和curl失败。 这是Debian Jessie。
我最终试图获得一个PHP CAS客户端(带有Apache的zend服务器8)来信任一个CAS服务器(tomcat 7),为此我已经尽了自己的私钥基础设施,在这里看到了密码取而代之的是臀部: PKI GEN #root key openssl genrsa -out rootCA.key -aes256 -passout pass:butts 4096 openssl req -x509 -new -key rootCA.key -out rootCA.crt -subj '/C=US/O=World Domination/CN=WorldDom Root CA' -days 3650 -sha256 -passin pass:butts #intermdiate key openssl genrsa -out intermediateCA.key -aes256 -passout pass:butts 4096 openssl req -new -key intermediateCA.key -out intermediateCA.csr -subj '/C=US/O=<orgname>/CN=<orgname> Intermediate CA' -passin […]