服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
我注意到许多域名在Exchange 2013上都失败了,因为他们的网站上有一个无效的通配符证书。 我如何(至less)扫描和testing这种types的失败? 下面是我的脚本的开始,但在Powershell中真的很生疏。 有没有人认为这是一个有效的解决scheme,或有一个更好的? $ErrorActionPreference = "Stop"; $domains = get-accepteddomain foreach ($d in $domains) { Try { $url = "https://$d" $wc = New-Object System.Net.WebClient $wc.DownloadString($url) } Catch { $ErrorMessage = $_.Exception.Message $FailedItem = $_.Exception.ItemName Send-MailMessage -From [email protected] -To [email protected] -Subject "Invalid SSL Certificate" -SmtpServer internalsmtp.nfp.com -Body "We failed to read file $FailedItem. The error […]
我目前在我的虚拟主机configuration中正在工作,但是我想修改它。 目前我的虚拟主机configuration看起来像 <VirtualHost *:8080> ServerName dev ServerAlias *.dev CustomLog "/Users/owen/Sites/logs/dev-access_log" combinedmassvhost ErrorLog "/Users/owen/Sites/logs/dev-error_log" VirtualDocumentRoot /Users/owen/Sites/%-2+/httpdocs </VirtualHost> 所以这个自动路由,像http://owen.website.dev到/Users/owen/Sites/owen.website/ 但是,我想修改它,所以owen前缀是自动的,例如,当您访问http://owen.website.dev它将转到/Users/owen/Sites/website/ 我试图干脆 <VirtualHost *:8080> ServerName dev ServerAlias *.dev CustomLog "/Users/owen/Sites/logs/dev-access_log" combinedmassvhost ErrorLog "/Users/owen/Sites/logs/dev-error_log" VirtualDocumentRoot /Users/owen/Sites/owen.%-2+/httpdocs and #VirtualDocumentRoot /Users/owen/Sites/owen\.%-2+/httpdocs </VirtualHost> 然而无济于事,请有人提供给我正确的VirtuaDocumentroot来启用这个自动虚拟主机? 谢谢
我无法让Passenger在重新启动nginx时启动我的Nodejs(iojs)应用程序。 我已经按照教程安装了先决条件: $ nginx -V nginx版本:nginx / 1.8.0 configuration参数:–with-cc-opt =' – g -O2 -fstack-protector -param = ssp-buffer-size = 4 -Wformat ……… –add-module = / tmp / buildd / nginx-1.8 0.0 /的Debian /模块/乘客/ EXT / nginx的 在http块启用: passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini; passenger_ruby /usr/bin/passenger_free_ruby; passenger_nodejs /usr/local/bin/node; passenger_default_user staging; passenger_default_group www-data; 然后在服务器块中: upstream instance { # point to node instance […]
我试图杀死Windows服务器2008 R2上的wuauserv,但它具有与其他服务相同的PID,我不想杀死它。 我假设运行taskkill / f / pid [PID]会将它们全部杀死,我该如何针对wuauserv服务?
目前,我在同一台服务器上的RHEL和Zabbix上运行Apache。 我可以通过example.com和zabbix通过example.com:81/zabbix访问Web服务器。 我希望能够使用example.com/zabbix来查看zabbix。 我如何重新configurationZabbix以这种方式工作? 我正在考虑使用别名到zabbix文件夹,但不知道如何做,或者如果它甚至可以正常工作。 我已经安装http以及从补充回购httpd24。 httpclosures,只有httpd24正在运行。 我将zabbix.conf文件移到conf.d目录,现在我得到权限被拒绝。 zabbix.conf文件位于/opt/rh/httpd24/root/etc/httpd/conf.d/ 任何build议如何做到这一点? 操作系统:RHEL 6.5 Alias /zabbix /usr/share/zabbix <Directory "/usr/share/zabbix"> Options FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> 更新:我授予访问httpd.conf文件中的/ usr / share / zabbix,现在我可以获得login页面。 但是,login后我得到一个空白页面。 查看源代码显示没有HTML。
我有一台主机使用Linux绑定模式1(主动/备份)连接到2个独立的交换机。 请有人确认这是否可以在NICS之间成功进行故障切换,还是必须互连两个交换机? 如果这已经回答了某个地方,请将我指向资源 规范: – 6.5的Linux主机configuration了以下ifconfig-bond1文件: – [Server1 network-scripts]$ cat ifcfg-bond1 DEVICE=bond1 ONBOOT=yes USERCTL=no IPV6INIT=no PEERDNS=yes DHCP_HOSTNAME=Server1 BOOTPROTO=none IPADDR=192.168.49.11 NETMASK=255.255.255.0 GATEWAY=192.168.49.254 BONDING_OPTS="mode=1 miimon=100 downdelay=200 updelay=200" 和1Gbe eth0 / 1接口文件是这样工作的: – [server1 network-scripts]$ cat ifcfg-eth0 DEVICE=eth0 ONBOOT=yes TYPE=Ethernet MASTER=bond1 SLAVE=yes USERCTL=no [Server1 network-scripts]$ cat ifcfg-eth1 DEVICE=eth1 ONBOOT=yes TYPE=Ethernet MASTER=bond1 SLAVE=yes USERCTL=no eth0连接到一级交换机,而eth1连接到备份交换机(2个独立的瞻博networkingEX3300型号) 谢谢 亚当
Digital Ocean提供的内部IP不是stream量计量的。 我如何configurationDocker专门使用这个专用networking? 如何使docker0创builddocker0的networking接口只使用专用networking?
我有点新思科和我已经分配了5个静态IP到我的串行接口0/0。 我已经通过其中一个辅助IP将邮件NAT到服务器。 但是,当我尝试发送邮件时,它将作为我的主IP地址发送。 如何将我想要的辅助IP地址转换为电子邮件服务器? Router(config)#do show run | include nat ip nat outside ip nat inside ip nat inside source list 1 interface GigabitEthernet0/0 overload ip nat inside source static tcp 172.16.0.30 25 2.2.1.2 25 extendable ip nat inside source static tcp 172.16.0.30 80 2.2.1.2 80 extendable ip nat inside source static tcp 172.16.0.30 443 […]
我的一个朋友有一个Linux机器托pipejenkins和Windows 2008域控制器。 他在Jenkins中使用Active Directory身份validation,只在Jenkinsconfiguration中指定了域名和域控制器。 所有用户都可以使用他们的Windows域用户名和密码访问Jenkins网页界面。 我不明白这是可能的吗? 我已经了解到,您必须在Active Directory环境中使用Kerberos进行用户身份validation。 活动目录Jenkins插件的网站说他们正在使用“Active Directory的LDAP服务”。 我试图在Windows 2008服务器上find这样的东西,但找不到它。 “活动目录轻型目录服务”模拟LDAP服务器,jenkins只是试图用给出的用户名/密码访问目录(如果testing成功,访问Web界面被授予)? 如果Kerberos不需要对AD用户进行身份validation,是否可以在不使用Kerberos的情况下针对Windows域服务器validationSamba用户,也无需join域? 我有一个Linux文件服务器应该提供networking共享给Windows域中的Windows客户端。
我有一个运行在Tomcat上的Java webservice( /opt/tomcat8/webapps/mysvr ),通过url http://mysvr.example.com访问。 使用/etc/httpd/conf/httpd.conf的以下configuration可以正常工作。 <VirtualHost *:80> ServerName mysvr.example.com ProxyRequests Off ProxyPreserveHost On <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://localhost:8080/mysvr/ ProxyPassReverse / http://localhost:8080/mysvr/ </VirtualHost> 另外,要使用URL http://mysvr.example.com/results/来映射/var/www/html/mysvr/results ,其中我存储了一些txt文件,以便URL http://mysvr.example.com/results/1.txt下载/var/www/html/mysvr/results/1.txt 。 我的服务器是Red Hat上的AWS EC2。 我怎样才能做到这一点?