Articles of debian squeeze

从debian lenny更新到挤压

我试图从debian lenny更新挤压我的64位根服务器,并做了以下事情: 修改sources.list apt-get更新 apt-get升级 apt-get install linux-image-2.6-amd64 最后一步导致以下错误输出: Reading package lists… Done Building dependency tree Reading state information… Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been […]

无法在Debian上为Apache 2设置SSL支持

我正在尝试在Debian上设置对Apache 2的ssl支持。 版本是: Debian GNU/Linux 6.0 apache2 2.2.16-6+squeeze1 我跟随了很多日子,但我无法做到这一点。 这里是我的步骤和configuration文件(ServerName和DocumentRoot被改变为隐私,以防告诉我): # mkdir /etc/apache2/ssl # openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/ssl/apache.pem -keyout /etc/apache2/ssl/apache.pem 在这一点上,我对apache.pem的权限有疑问,在这一步他们是 -rw-r–r– 1 root root 也许它必须属于万维网数据? 然后我启用ssl-mod # a2enmod ssl # /etc/init.d/apache2 restart 我以这种方式修改/ etc / apache2 / sites-available / default-ssl(我把端口8080,因为我需要端口443用于另一个目的): <VirtualHost *:8080> SSLEngine on SSLCertificateFile /etc/apache2/ssl/apache.pem SSLCertificateKeyFile /etc/apache2/ssl/apache.pem […]

添加新的/ 29-Net后出现意外的自动路由

我在接口中添加了一个新的networking到Debian 6.0.1 x86_64 Linux 2.6.32-5-amd64服务器。 allow-hotplug eth2 iface eth2 inet static address 172.251.1.86 netmask 255.255.255.248 network 172.251.1.80 #(tried with and without) broadcast 172.251.1.87 #(tried with and without) 其他接口是经典静态声明。 安装了bridge-utils,但没有启用br-device。 ifup后: 2: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000 link/ether e4:1f:13:6d:36:98 brd ff:ff:ff:ff:ff:ff inet 172.251.1.86 peer 172.251.1.1/29 brd 172.251.1.87 scope global eth2 inet6 […]

备份正在使用的文件时出现Backup2l错误。

我有backup2l设置rsync我的备份。 虽然我发现如果在备份发生时文件正在使用,它会产生一个错误。 这是我收到的电子邮件: /etc/cron.daily/zz-backup2l: backup2l v1.5 by Gundolf Kiefer Sun Sep 25 03:20:50 BST 2011 Running pre-backup procedure… writing dpkg selections to /root/.dpkg-selections.log… dumping databases Removing old backups… Preparing differential level-2 backup <all.104> based on <all.103>… 145008 / 145008 file(s), 12432 / 12432 dir(s), 10.3GB / 10.3GB (uncompressed) skipping: 175 file(s), 0 dir(s), 735KB (uncompressed) […]

在raid上面用lvm挤压0无法使用grub2启动

GRUB Loading Welcome to GRUB! error: no such device: <GUID>. Entering rescue mode… grub rescue> ls (hd0), (hd0,msdos2) (hd0,msdos1) grub rescue> set prefix=(hd0,msdos1)/grub root=hd0,msdos1 grub rescue> ls /boot error: file not found. grub rescue> insmod linux error: file not found. grub rescue> insmod normal error: file not found. grub rescue> normal Unkown command 'normal' grub […]

服务器进入睡眠模式

我使用debian squeeze安装了一个新的戴尔Poweredge R410服务器。 如果服务器闲置较长时间,似乎进入睡眠模式。 如果我ping的服务器,它不会回答10-20秒,然后再次出现。 在/var/log/messages我可以看到: Oct 13 12:54:56 localhost kernel: [74420.949520] device eth0 entered promiscuous mode Oct 13 12:55:49 localhost kernel: [74473.200155] device eth0 left promiscuous mode 在/etc/acpi中没有任何configuration,如果长时间没有活动,服务器应该进入睡眠模式。 有谁知道还有什么可以导致这个问题?

在Debian挤压/ xen的顶端vs vmstat

我在xen 4.0.1上运行一个完全卸载的DomU。 我注意到iostat和顶部之间的cpu状态有所不同: 顶部(在每一个iter): Cpu0 : 0.2%us, 2.0%sy, 0.0%ni, 94.2%id, 2.7%wa, 0.0%hi, 0.0%si, 0.9%st iostat -x 3(第一个): avg-cpu: %user %nice %system %iowait %steal %idle 0.19 0.00 1.98 2.69 0.88 94.26 iostat -x 3(随后的iters): avg-cpu: %user %nice %system %iowait %steal %idle 0.00 0.00 0.00 0.00 0.00 100.00 我是对的,如果我认为顶端显示累积百分比,而不是现在和现在1迭代之间的差异? 我知道顶部理解为累积模式,但这对我来说只应该影响进程显示,而不是CPU状态统计。 错误? 也许Xen相关? 问候 蒂姆

ext3会修剪被支持吗?

目前的Linux内核版本支持修剪,但Debian Squeeze使用旧版本,不。 据我所知,修剪支持是在Linux内核本身,而不是一个特定的文件系统。 那么ext3会在新内核中支持trim吗? 如果没有,将来是否会支持它?

Xen domU内存集问题

我遇到了我的xen 4.0.1服务器上的问题(debian squeeze) 我的主机有32G的内存,Domain-0有2048M分配给它。 (用xm mem-set Domain-0 2048缩小)在Domain-0的顶部证实了这一点。 我使用以下选项创build了一个虚拟机configuration文件(使用xen-tools): memory = '512' maxmem = '2048' 主机和客户机都运行标准的2.6.32-5-xen-amd64 debian内核。 “xm create”按预期创build一个512MB内存的虚拟机。 那么'xm mem-set domU 1024' 不会将内存扩展到1024MB 运行“xm mem-set domU 400”会将内存设置为大约400MB 然后'xm mem-set domU 1024'将内存扩展回512MB 基于此,你会说xm忽略maxmem,并默默地将maxmem设置为512,但在xm top的输出中,MAXMEM列读取2G。 MEM列不会超过512M。 xm list的输出讲述了另外一个故事,当我'xm mem-set domU 1024'时显示1024。 我已经围绕互联网search了这个问题,发现大多数人不缩减Domain-0。 我知道我已经看到关于我遇到的问题的错误报告,但无法再find它。 有没有人看到我在这里做错了? 嗯..我只是升级了我的内核到debian backports提供的内核。 问题已经消失。

pipe理cron来清除caching的目录

pipe理每周从多个位置删除文件的cron作业的最佳方法是什么? 当我说pipe理,我的意思是不同的位置理想情况下,这将在MySQL数据库中最好的工作。 无需为每个位置创build一个cron作业。 原因是我们有许多不同的网站项目可以生成caching的文件,在过去的几周内已经开始增长。