服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
我与我的nginx服务器conf有问题。 当我运行nginx -t它说所有的东西都是正确的,但是当我检查每个文件的configuration文件时,它就是KO。 它说 : nginx:[emerg]“server”指令在/etc/nginx/sites-available/thebishop.fr.conf中是不允许的:1 这里有一些conf文件:nginx.conf user www-data; worker_processes auto; pid /run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { ## # Basic Settings ## sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; server_tokens off; more_set_headers 'Server: 185.216.27.123'; client_max_body_size 20M; fastcgi_buffers 16 16k; fastcgi_buffer_size 32k; # server_names_hash_bucket_size 64; # server_name_in_redirect […]
我正在使用Ansible 2.0 uri模块。 我有这样的代码在api上进行POST。 – name: Example POST uri: url: http://example.com:8001/api method: POST status_code: 201 body_format: json body: key1: value key2: value2 register: response changed_when: response.status == 201 我有两个目标服务器在不同的库存。 这工作againts服务器答:服务器B上失败,错误: fatal: [ip]: FAILED! => {"failed": true, "msg": "ERROR! The conditional check 'response.status == 201' failed. The error was: ERROR! error while evaluating conditional (response.status == […]
情况如下: 我有两台服务器在我的机器上运行。 一个是面向外的服务器,而另一个是第二个服务器的反向代理,它只监听本地主机并提供服务。 第二台服务器应该运行在https 。 我知道看到两个select: 只需在第二台服务器上实现https ,然后让反向代理服务器将https服务器发送给它。 在反向代理中实现https逻辑,为第二个服务器“抽象https”。 我甚至不知道这两个选项是否可行,更不用说可行了。 如果是的话,两种解决scheme的优缺点是什么? 编辑:在这种情况下,反向代理是nginx, 服务提供服务器是一个Node.js服务器。
我使用iis 8.5为我们的web服务器运行Windows server 2012 r2。 是否有可能升级到iis 10,因为我们正在寻找http / 2的支持。 谢谢,Matt。
我有一个这2个服务器块在我的nginx/sites-enabled/application.conf : upstream myapplication { server 127.0.0.1:8081; } server { listen 80; server_name app1.example.net app2.example.net app3.example.net; return 301 https://$server_name$request_uri; } server { listen 80; server_name app1.example.net app2.example.net app3.example.net; ssl_session_cache shared:SSL:1m; ssl_session_timeout 10m; ssl_certificate /etc/ssl/certs/example_net.crt; ssl_certificate_key /etc/ssl/certs/example_net.key; ssl_verify_client off; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers RC4:HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; proxy_ssl_session_reuse off; location /apply { rewrite ^/apply(.*) $scheme://$server_name/?$query_string? permanent; […]
我有一个Windows Server 2016 x64应用程序服务器。 我testing了各种打印机,它工作正常。 但是,当客户端尝试从远程会话打印时,谁安装了标准的TCP / IP端口打印机,从远程桌面打印时会出错。 我检查过打印机驱动程序,这很好。 什么可能是创造性的问题? 是在我的最后还是在我的客户端? 我已经testing过: Brother 5450DN(TCP / IP)打印机 Adobe PDF 所有其他共享打印机 所有其他networking共享打印机 客户有 Brother MFC 8890DW(TCP / PC)打印机从其他计算机共享。 希望亲切合作。
执行 iptables -F 是非常危险的,如果您的一个或所有链条的默认政策是DROP 我想在bashrc使用别名 alias iptables -F="echo \ 'WARNING: due to the DROP default rule, flushing all rules would lock you out'" 但是这不起作用。
我使用configuration了/etc/dhcp/dhcpd.conf的isc-dhcp-server: ddns-updates on; ddns-update-style interim; include "/etc/bind/rndc.key"; authoritative; zone bat. { primary localhost; key rndc-key; } zone lan.bat. { primary localhost; key rndc-key; } zone wlan.bat. { primary localhost; key rndc-key; } zone 10.in-addr.arpa. { primary localhost; key rndc-key; } zone 50.10.in-addr.arpa. { primary localhost; key rndc-key; } zone 100.10.in-addr.arpa. { primary localhost; key rndc-key; […]
我如何重新configurationHyper-V虚拟机 我希望能够使用Powershell更改VMconfiguration文件,检查点和虚拟硬盘位置。 我的Google-FU只是指着我移动,我有大约100个虚拟机来改变,我可以移动这些文件,我不介意有点宕机,当每个虚拟机穿过向导时,大约需要5到15分钟虚拟机和那些是较小的,我需要能够在两个小时内完成100个。 如果我需要澄清,请让我知道。 ==我卡在哪里== 是的,我已经看到了这个链接,看了大多数的命令,但是没有做我正在寻找的。 这些文件一起大约是14TB 大约100台虚拟机在7台主机之间进行集群。 共享存储是EMC旋转磁盘,我想将它们移动到3Par SSD。 现在,我已经能够成功地做到了closures虚拟机,移动文件,删除所有虚拟机,并重新创build他们威盛powershell,当我告诉我的首席技术官,可能是他唯一的方式他妈的小猫。 我想能够不移动VM的只是重新configuration他们, 在其他作品中可以改变: 至: 我希望能够使用powershell来做到这一点,我也需要能够为检查点,configuration文件和所有其他Hyper-V VM组件做同样的事情。 我可以容忍大约2个小时的停机时间,通过向导来执行所有虚拟机的MOVE不仅会磨损我的鼠标,而且需要大约6个小时。 我也一直在研究这个,并且在几个星期内testing出不同的策略。 ====再一个镜头==== 我不希望“移动”所有我想要能够做的是改变设置从超V的移动将取长补短,我更快的复制文件通过networking,只是更新path在Hyper-V中,我可以closures机器。 我认为这是不能做到的?
我正在尝试在Azure IaaS中设置公共DNS服务器。 我已经成功创build了服务器,安装了DNS并configuration了我的授权区域。 我为TCP和UDP端口53configuration了端点。目前,Windows防火墙已closures以进行testing。 当我做nslookup,指定本地主机,一切工作正常。 但是,当我做一个nslookup指定公共IP地址,请求超时。 我应该采取什么措施来诊断问题?