Articles of Debian

为什么我的服务器启动旧的debian内核?

我安装了Debian的vServer(重要的是因为我不知道Debian是如何安装和/或构build的)。 输出~# uname -r : 2.6.26-2-xen-amd64 。 在执行(先安装一些其他的3.2版本的内核后) ~# apt-get install xen-linux-system-3.2.0-4-amd64并在~# update-grub和~# reboot ,内核版本似乎是不变。 为什么? ~# dpkg -l | grep xen ~# dpkg -l | grep xen给(重新格式化): libxen-4.1 (4.1.4-2) libxenstore3.0 (4.1.4-2) xen-hypervisor-4.1-amd64 (4.1.4-2) xen-linux-system-3.2.0-4-amd64 (3.2.35-2) xen-system-amd64 (4.1.4-2) xen-utils-4.1 (4.1.4-2) xen-utils-common (4.1.4-2) xenstore-utils (4.1.4-2) ~# cat /boot/grub/grub.cfg给出: # # DO NOT EDIT THIS FILE # […]

debian 6 – php 5.4.1 – xdebug phpize php-config –version不正确

我很新的Linux服务器pipe理,我有一个Linux服务器,具有以下configuration: Distributor ID: Debian Description: Debian GNU/Linux 6.0.6 (squeeze) Release: 6.0.6 Codename: squeeze PHP version: 5.4.12-1~dotdeb.1 我正在尝试安装xdebug,并在xdebug网站()上使用了该向导。 Output of xdebug Xdebug installed: no Server API: Apache 2.0 Handler Windows: no Zend Server: no PHP Version: 5.4.12-1 Zend API nr: 220100525 PHP API nr: 20100525 Debug Build: no Thread Safe Build: no Configuration File Path: /etc/php5/apache2 […]

如何从Ubuntu的shell脚本启用sysstat?

在Ubuntu中,我可以使用apt来安装sysstat ,例如 apt-get install sysstat 然后通过交互式提示启用它 dpkg-reconfigure sysstat 但是我想使用完全自动化的shell脚本来自动化这个过程,我可以使用什么命令?

在Debian Squeeze中以xy用户身份重新启动script.py

如何在Debian Squeeze中自动重新启动用户xy后启动python script.py?

无法通过ssl通过外部webmail的虚拟域发送邮件

我有问题后缀通过SSL从外部邮件发送邮件。 我在我的服务器上configuration了postfix与MySQLconfiguration了几个域设置。 当我发送邮件与我的主域名domain1.com一切正常,但如果从domain2.com发送邮件我把这个到我的日志: 请注意,如果我在Web邮件上禁用SSL,它将起作用。 connect from unknown[78.209.78.XXX] timeout after UNKNOWN from unknown[78.209.78.XXX] disconnect from unknown[78.209.78.XXX] 这是我的main.cf: smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff = no disable_vrfy_command = yes smtpd_helo_required = yes append_dot_mydomain = no mydomain= domain1.com myhostname = domain1.com myorigin = $mydomain mydestination = XXX.kimsufi.com, localhost.kimsufi.com, localhost mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 alias_maps = hash:/etc/aliases […]

在Xen 6.1下,Debian挤出的内存不能超过32GB

在XEN 6.1下,我试图让一个debian压缩VM超过32GB的内存。 但是Xen Center给了我这个:“分配给这个虚拟机的物理内存的数量大于它的主服务器的总内存”。 主机服务器有更多的内存(128GB)。 这是一个Xen限制吗? 如果是这样,是否有解决方法? @David Schwartz # xl info host : xxx release : 2.6.32.43-0.4.1.xs1.6.10.734.170748xen version : #1 SMP Mon Sep 10 13:28:39 EDT 2012 machine : i686 nr_cpus : 16 max_cpu_id : 15 nr_nodes : 2 cores_per_socket : 4 threads_per_core : 2 cpu_mhz : 3292 hw_caps : xxx virt_caps : hvm […]

克隆一个debian虚拟专用服务器

我想有一些configuration和软件相同的VPS服务器。 有没有机会做这样的事情? : 安装一台服务器 做一些备份 得到另一个空白服务器 从第一台服务器恢复备份 修改一些文件,如主机名等 这可能吗? 现在我正在备份我的服务器文件,如下所示: tar cvpzf backup.tgz –exclude=/proc –exclude=/lost+found –exclude=/backup.tgz –exclude=/mnt –exclude=/sys / 但是我不确定是否将这个恢复到另一个系统上会有所帮助。 它可能会覆盖一些特定于服务器的文件。 谢谢你的想法

Debian 6上的Squid2 – 没有连接到代理

我正在尝试通过我的开发服务器来设置网页浏览代理。 非常基本的configuration工作,我能够浏览,现在当我试图复杂的事情,它突然停止工作,我在浏览器中的连接超时,我的日志文件是空的。 我试图实现的是将代理限制在我的国家/地区的IP范围内,并为其设置一个基本的httpauthentication。 这是我的configuration acl所有src所有 aclpipe理器proto cache_object http_port 1302 emulate_httpd_log acl localhost src 127.0.0.1/32 acl Safe_ports端口1302 auth_param基本程序/ usr / lib / squid / ncsa_auth / etc / squid / squid_passwd auth_param基本的孩子5 auth_param基本领域NiceIdea auth_param基本凭证2小时 auth_param基本casesensitive on acl israel src 84.108.0.0/16 acl deb0rian proxy_auth需要 http_access允许localhost http_access允许以色列debian http_access拒绝!Safe_ports http_access拒绝所有 visible_hostname nadinspes 转发closures header_access通过拒绝所有 header_access转发 – 拒绝所有 header_access X-Forwarded-For全部拒绝 […]

使用iptables转发stream量到一个IP地址

设置: Debian的; 作为使用iptables的networking路由器,fail2ban由于外部的要求,两个networking都是192.168.1.x. eth0:192.168.1.1 eth1:192.168.1.2 Ubuntu(192.168.1.3)充当eth0的networking桥:192.168.1.3 wlan0:192.168.1.10 客户端计算机(192.168.1.100至200)连接到交换机 我的内部networking上的Debian eth0(192.168.1.1)连接到一台交换机以及台式计算机,无线设备等的客户端计算机。 eth1直接连接到Ubuntu的eth0。 我可以从Debian ping到ssh到Ubuntu而没有任何问题。 当我尝试从其中一台客户端计算机(连接到Debian的eth0)ping或SSH时,我的连接超时。 我不确定是否应该使用路由(或完全确定如何使用路由)或iptables从Debian的eth0获取stream量到eth1和Ubuntu。 这是我的iptables输出: Chain INPUT (policy DROP 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 0 0 ACCEPT all — lo * 0.0.0.0/0 0.0.0.0/0 0 0 ACCEPT all — eth0 * 0.0.0.0/0 0.0.0.0/0 0 0 ACCEPT all […]

为什么Googlebot无法覆盖有效且可访问的url?

有一段时间,Googlebot无法抓取我的网站(事实上,我遇到这个问题的时间太长,以至于我的网站实际上是从Google取消列出的)。 在谷歌网站pipe理员工具中使用Fetch As Googlebottesting我的网站实际上返回了一个空白页面:Googlebot无法访问我的网站,并且不能提供可以解释缺less可达性的诊断消息。 那是怎么回事?