Articles of Debian

bind9区域传输问题 – 不授权

我一直在殴打自己试图弄清楚这一点。 ns1似乎正常工作。 ns2但是没有收到区域传输。 也许我只是需要在这个问题上的另一个眼球! ns1 named.conf: include "/etc/bind/named.conf.options"; include "/etc/bind/named.conf.local"; include "/etc/bind/named.conf.default-zones"; //include "/etc/bind/named.conf.transfer"; //include "/etc/bind/rndc.key"; include "/etc/bind/tsig.key"; //controls { // inet 127.0.0.1 port 953 // allow { 127.0.0.1; } keys { "rndc-key"; }; //}; ns1 tsig.key(安全编辑密钥) key "TRANSFER" { algorithm hmac-md5; secret "/QUbT7wtaTrCQUg4sNC9WA=="; }; server 24.119.63.195 { keys { TRANSFER; }; }; ns1 named.conf.options […]

puppet环境variables$ PATH未设置

我正试图在Debian 6.0上安装一个带有puppet 2.7的模块,并且不断收到这个错误: returns: change from notrun to 0 failed: Could not find command 'tar' 这是相关的代码: file {"zookeeper-tarball": path => "${zookeeper_parent_dir}/${tarball}", source => "puppet:///modules/zookeeper/${tarball}", ensure => file, } exec { "zookeeper_untar": path => "${zookeeper_parent_dir}", command => "tar -xzf ${zookeeper_parent_dir}/${tarball}", cwd => "${zookeeper_parent_dir}", user => "$user", require => File["zookeeper-tarball"], creates => "${zookeeper_parent_dir}/zookeeper-${zookeeper_version}", } 在manifests/site.pp我有这样的: Exec { […]

如何找出谁使用了所有RAM(更新)?

有时候我发现使用了我的小型Debian机器的100%的RAM,但是我不知道如何find这个漏洞: 顶部显示所有的内存都被使用了,但是我找不到任何在进程中占用这个内存的进程列表(进程按字段'n' – %MEMsorting): top – 12:50:41 up 8 days, 1:13, 1 user, load average: 0.06, 0.15, 1.63 Tasks: 101 total, 1 running, 100 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 1016252k total, 996428k used, 19824k free, 684k buffers Swap: 1983480k total, 105052k used, 1878428k free, 16884k cached […]

在My Book Live上升级错误

我的局域网上有一个WD My Book Livenetworking驱动器( http://www.wdc.com/en/products/products.aspx?id=280 )。 我可以在似乎运行Debian的networking驱动器上使用SSH: >> cat /etc/issue Debian GNU/Linux 5.0 \n \l 我尝试的第一件事是检查更新,但似乎有防止升级包的错误。 以下是我运行的升级命令的一些输出: >> apt-get update Hit http://ftp.us.debian.org squeeze Release.gpg Hit http://ftp.us.debian.org wheezy Release.gpg Hit http://ftp.us.debian.org squeeze Release Hit http://ftp.us.debian.org wheezy Release Ign http://ftp.us.debian.org squeeze/main Packages/DiffIndex Hit http://ftp.us.debian.org wheezy/main Packages/DiffIndex Hit http://ftp.us.debian.org squeeze/main Packages Reading package lists… Done >> apt-get upgrade […]

使用别名设置Apache2虚拟主机的最佳实践?

我正在用Debian Squeeze服务器设置我的Apache2虚拟主机: 文件名:whatever.mydomain.com Alias /whatever /var/www/whatever.mydomain.com <VirtualHost *:80> ServerAlias whatever.mydomain.com ServerAdmin [email protected] VirtualDocumentRoot /var/www/%0 ErrorLog /var/log/apache2/whatever.mydomain.com-error.log CustomLog /var/log/apache2/whatever.mydomain.com-access.log combined </VirtualHost> <Directory /var/www/whatever.mydomain.com> AuthPAM_Enabled On AuthType basic AuthName "Authorization Required to proceed" AuthBasicAuthoritative off AuthUserFile /dev/null Require valid-user </Directory> 我想用两个url:whatever.mydomain.com和www.mydomain.com/whatever来为同一个网站提供服务 所以为了解决这个问题,我在文件的开始部分configuration了Alias / whatever /var/www/whatever.mydomain.com。 但我不知道这是否是一个好的做法。 关于VirtualHost设置? 有什么可以做得更好? 最后一个问题:有一种方法来使用文件内的variables? 例如在VirtualDocumentRoot之外的地方重复%0? 提前致谢, 编辑:我有一个新的问题。 随着全球别名,我所有的虚拟主机将回答/任何别名,我只希望在www.mydomain.com上应用别名。 我现在正在努力与RedirectMatch没有成功。 我正在使用redirect而不是别名,因为使用别名,访问和错误日​​志不会进入虚拟主机日志文件。

将passenger_base_uri传递给Rails应用程序

我们构build了一个由以下path组成的Rails应用程序: namespace :api do namespace :v1 do resources … end end 这意味着所有的控制器都可以通过www.url.com/api/v1/controller进行访问。 要在根域下运行独立的web应用程序,我有以下本地nginx设置: server { listen 8080; server_name localhost; location / { root /Users/swramba/Sites; index index.html index.htm; } location ~ /api { proxy_pass http://127.0.0.1:3000; } } 这意味着, /api下的所有东西都被代理到用于开发的WEBrick服务器。 现在,在我们的生产环境中,我们想用类似的设置来使用Phusion Passenger。 所以,我为生产nginx写了下面的configuration文件: server { listen 80; server_name localhost; root /home/someuser/sites/web/www.myapp.com; passenger_base_uri /api; passenger_enabled on; rails_env production; […]

HP DL360 G7 P410i控制器故障排除

服务器是带有P410i磁盘控制器的HP DL360 G7。 2xE5620 CPU。 16GB RAM。 Linux mysql 2.6.32-5-amd64#1 SMP Mon Feb 25 00:26:11 UTC 2013 x86_64 GNU / Linux(Debian 6.0.7) hpacucli“ctrl全部显示状态” Smart Array P410i in Slot 0 (Embedded) Controller Status: OK Cache Status: OK Battery/Capacitor Status: OK hpacucli“ctrl all show config” Smart Array P410i in Slot 0 (Embedded) (sn: 5001438014555B80) array A (SAS, […]

穆宁:聚合networkingstream量

我在我的服务器上有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 […]

使用debian软件raid是否安全?

我的问题和标题一样简单: it is good and safe to use debian6 software raid? 它有多安全? 我可以有软件RAIDconfiguration备份吗? 我如何处理/从硬盘问题恢复? 我一直在网上阅读,但大家都在讨论如何configuration。 我已经设法configuration和安装Debian挤压软件RAID,但是,将grub引导加载程序安装在两个磁盘,或者我应该手动? 谢谢

isakmp的vpnc debianconfiguration

我需要从我的debian服务器连接站点到站点的VPN 我有主机,同行和isakmp的关键 我应该如何configurationvpnc使用isakmp? 或者如果你能指向我很好的vpnc文档,我无法find或一些其他教程我看到的所有教程是用户名密码configuration,但只有信息提供的其他部分是主机(一些本地ips),偷看和isakmp键 谢谢