服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
嗨我收到以下错误,当我运行make all /usr/bin/install: cannot stat `nagios': No such file or directory make[2]: *** [install-basic] Error 1 make[2]: Leaving directory `/root/nagios/nagios/base' make[1]: *** [install] Error 2 make[1]: Leaving directory `/root/nagios/nagios/base' make: *** [install] Error 2 我正在遵循http://www.howtoforge.com/installing-nagios-3.4.4-on-centos-6.3并添加以下内容 1) Create Account Information Become the root user. su -l Create a new nagios user account and give it a […]
我在/etc/network/interfaces有三个条目 eth0:0… eth0:1… eth0:2… 和ips 10.0.0.210 10.0.0.211 10.0.0.212 他们都工作正常。 于是我添加了一个新的条目eth0:3 ,地址为10.0.0.213 。 现在,当我转到AWS控制台并从VPC仪表板中单击Elastic IP并尝试关联弹性IP时,刚刚创build的新IP不会显示。 我已经重新启动/etc/init.d/networking和ifconfig显示,一切工作正常。 以下是我在尝试关联弹性IP时看到的内容。 我已经刷新了很多次,等了几个小时,甚至重新启动了服务器。 10.0.0.213就不会显示出来。 我做错了什么?
我想知道是否有可能发送匹配特定ACL的HTTP请求可以redirect到HAProxy中的多个后端。 我想将请求的副本发送到另一个后端。
我有一个varnishlog过程像这样在后台运行: nohup varnishlog -c -m TxStatus:503 >/root/varnishlog.txt & 但由于缓冲,我不能完全看到最后的请求和响应,直到发生新的错误。 有没有办法刷新当前缓冲区输出? 杀varnishlog进程没有帮助,我只是松散的最后login的请求。 也许有更好的方法来logging由varnish返回的错误503?
我在运行WHM 11.36.0的quadcore CENTOS 5.9 i686标准。 这是一个专用的LAMP服务器,有很多网站,其中大部分都使用数据库。 我正在使用Munin监视服务器,并注意到负载总是很高,推动了限制(通常> 4)。 Munin还显示了一个内存图表,表示在4GB RAM服务器上不断交换和提交大约5-6 GB的内存。 这当然不健康? 我试图用tuning-primer.sh和mysqltuner.pl来调整mysql,但是现在我正处在一个我觉得我不能做更多的事情上。 这些工具不断推荐,但是不pipe我做什么,他们都不断给出新的build议,现在我觉得我现在在圈子里跑。 所以我的问题是:是否有一点,即使在理论上可能挤出更多的性能,试图进一步调整mysql实际上变得毫无意义? 有一个简单的方法来知道,如果mysql是最大的?
我被要求跳入并填写一个同事,并写一个Windows脚本,将在服务器#2上运行,并执行: 1)从服务器#2连接并validation到远程服务器#1 2)只复制服务器#1中匹配如此命名的文件的文件: Monthly_Review[1001-8754].journal 3)将这些文件移动到服务器#2上的pathD:/ Path / NotIntegrated 我不是一个Windows服务器pipe理员,并与Linux一起工作多年,所以任何build议/帮助,让我去是很好的。 谢谢 更新似乎PowerShell是这个任务的正确工具。 (感谢@Ryan Ries)我在Windows XP上进行了本地testing,这似乎只适用于PowerShell 1,因此下面的PowerShell 3脚本将无法在PowerShell 1上运行。我如何更改此版本以在PowerShell 1上运行? $source = "C:\Users\Me\" $destination ="C:\Users\Me\Processed\" if(-not(Test-Path $destination)){mkdir $destination | out-null} foreach($i in Get-Children -Path $source -Recurse) { if(($i.Name -notmatch "Monthly_Review[\d\d\d\d-\d\d\d\d].journal") -and (-not $i.PsIsContainer)) { continue; } Copy-Item -Path $i.FullName -Destination $i.FullName.Replace($source,$destination).Trim($i.Name) }
我最近试图在nginx上安装乘客。 安装工作,一切都很好。 不过,我想在我的服务器上运行roundcube webmail。 基本上我的问题是,nginx的根指令设置为乘客应用程序: root /home/me/www/hello/public 并且将roundcube创build为服务器上的符号链接,如下所示: /home/me/www/webmail 我的问题如何获得URL www.my-server.com引用正常的根,但www.my-server.com/webmail引用roundcube文件夹? 我已经试过在我的nginx.conf中没有运气的变化: location /webmail/ { #root /home/me/www; alias /home/me/www; try_files $uri /index.php; passenger_enabled off; } 当使用www.my-server.com/webmail时,上述configuration导致403禁止,使用URI:www.my-server.com/webmail/index.php时找不到File。 有任何想法吗?
我正在尝试构build一个VPN设置,其中有几个Road-Warriors(各种操作系统)想要与VPN网关后面的内部networking进行通信。 关键事实是: 内部networking是10.254.0.0/24 没有DHCP 内部主机都是RHEL / CentOS 6 Road-Warriors在10.2.0.0/24内分配虚拟地址 VPN网关是RHEL 6盒,其中包含: 内部地址10.254.0.111 外部地址XXXX VPN网关不是内部主机的默认网关 VPN是使用Strongswan实现的 到目前为止,Road-Warriors成功连接到VPN网关。 问题是,在每个内部主机上,如果我希望它们可以访问RW,就必须设置路由表来发送10.2.0.0/24stream量到10.254.0.111。 什么是其他选项? 如何集中pipe理路由信息,以便内部主机自动发现?
所有, 我是新的Windowspipe理员types的东西,但我熟悉的Unix / Linux等我有一个简单的PowerShell 1脚本,应该只复制文件符合这个命名约定: Daily_Reviews[1099-9987].journal $ source中的模式导致错误:“无法findpath的一部分..”我需要知道如何在PowerShell环境中进行模式匹配 这是我的代码: $source = "C:\Users\Tom\Daily_Reviews\[\d\d\d\d\-\d\d\d\d\]\.journal" $destination ="C:\Users\Tom\Processed\" if(-not(Test-Path $destination)){mkdir $destination | out-null} Copy-Item $source $destination
我在我的服务器上有3个默认configuration的munin-node,我想创build一个显示总输出带宽的摘要图表。 这是我做minin.conf: [example.com;aggregation] update no total_bandwidth.graph_title Aggregated bandwidth total_bandwidth.upload.label upload total_bandwidth.upload.sum \ serv1.example.com:if_eth0:up \ serv2.example.com:if_eth0:up \ serv3.example.com:if_eth0:up 但它不工作,我只能得到破碎的图像,而不是graphics。 在munin-graph.log中: [RRD ERROR] Unable to graph /var/www/munin/example.com/aggregation/total_bandwidth-month.png : opening '': No such file or directory 编辑: 遵循http://waste.mandragor.org/munin_tutorial/munin.html ,我已经尝试过,这不起作用更好: [example.com;aggregation] update no total_bandwidth.graph_title Our total bandwidth total_bandwidth.out.sum example.com;serv1.example.com:if_eth0:up example.com;serv2.example.com:if_eth0:up total_bandwidth.out.draw STACK total_bandwidth.out.label Out bandwidth total_bandwidth.in.sum example.com;serv1.example.com:if_eth0:down example.com;serv2.example.com:if_eth0:down total_bandwidth.in.draw […]