Articles of Debian

Apache2.2 – 无法连接?

我跟着教程http://www.debian-administration.org/articles/412 ,我做了一切,但我的网站没有显示它只是说“无法连接”,当我尝试访问我的地址浏览器。 我在Debian Lenny上使用Apache2.2。 我在这个服务器上有多个IP / RDNSconfiguration,我知道他们都工作。 我如何解决它? 我的httpd.conf是空的,我的apache2.conf和ports.conf是默认的。 这是我的网站启用configuration为我的网站看起来像: <VirtualHost *80> ServerAdmin [email protected] ServerName www.mydomain.com ServerAlias mydomain.com # Indexes + Directory Root. DirectoryIndex index.html DocumentRoot /home/user1/www/www.mydomain.com/htdocs/ # CGI Directory ScriptAlias /cgi-bin/ /home/user1/www/www.mydomain.com/cgi-bin/ <Location /cgi-bin> Options +ExecCGI </Location> # Logfiles ErrorLog /home/user1/www/www.mydomain.com/logs/error.log CustomLog /home/user1/www/www.mydomain.com/access.log combined `

如何在Debian Linux上configurationApache 2?

我正在运行Debian VPS作为Web服务器。 我已经安装了Debian 6,并且在那里安装了默认的Apache 2。 我已经读了一些关于Apache 2configuration在Debian上的安排略有不同,我只是想检查一下我是否理解Debian期望我如何将configuration更改为Apache。 我的理解是: 要添加模块: 使用apt-get安装模块 使用a2enmod启用模块 添加虚拟主机: 为/etc/apache2/sites-available/每个虚拟主机创build一个单独的configuration文件(最好命名为类似于虚拟主机的预期域名) 使用a2ensite命令启用站点 做任何事情: 为/etc/apache2/conf.d/每个configuration任务创build一个单独的configuration文件。 该目录中的所有文件都是默认包含的。 我基于http://www.control-escape.com/web/configuring-apache2-debian.html和/usr/share/doc/apache2.2-common/README.Debian.gz 。 我正确理解这个吗? 我猜测,直接编辑如apache2.conf不是一个好方法来添加我自己的configuration设置,因为我的更改可能会被更新在未来的blitzed?

iptables v1.4.10:无法初始化iptables表“NAT”:表不存在

xxx:~# iptables -t NAT -A PREROUTING -d xxx.xxx.xxx.xxx -j DNAT –to-destination 10.0.1.2 WARNING: All config files need .conf: /etc/modprobe.d/bad_list, it will be ignored in a future release. WARNING: All config files need .conf: /etc/modprobe.d/blacklist, it will be ignored in a future release. iptables v1.4.10: can't initialize iptables table `NAT': Table does not exist (do you […]

为什么postfix不遵循从PHP邮件的头();

我已经安装了没有configuration选项的后缀。 我试图发送电子邮件与PHP邮件(); 它工作,但它发送电子邮件与我的专用服务器的默认电子邮件。 有反正告诉后缀跟随邮件function设置的标题? 谢谢 码 $from='[email protected]'; $fromname='my Website'; mail($mailto,$subject,$text,'From: ' . $fromname . ' <'.$from.'>');

在Debian 5.0上安装APC

是否有关于如何安装APC(Debian 5.0上的替代PHPcaching)的教程。

ESXi主机磁盘空间

我们有一个ESXi主机,2x500gb raid 1 – > 500gb空间。 目前有2个客人系统正在运行: bs:28gb根分区,102gb数据分区(独立,不包含在快照中)t3:69gb根分区,131gb数据分区(也是独立的) 可用空间:122GB 我们设置了另一个guest(23gb root,97gb Data(独立) – > 2gb可用空间),并且创build了t3主机的快照。 然后过了一段时间,我们试图重新启动(t3)。 我们发现主机系统没有足够的空间。 现在最大的问题是,它需要多less?

apt-get无法正常使用

我正在处理VPS上的处女debian 5映像。 说实话,这可能不是世界上最亮的VPS提供商,我怀疑他们的形象并不完美。 apt-get一切都失败了: # apt-get -y install gcc Reading package lists… Done Building dependency tree… Done E: Couldn't find package gcc 有一个/etc/apt/sources.list : # cat /etc/apt/sources.list deb http://ftp.debian.org/debian lenny main contrib non-free deb http://ftp.debian.org/debian-volatile lenny/volatile main contrib non-free deb http://ftp.debian.org/debian-security lenny/updates main contrib non-free …我认为是正确的。 现在,如果我使用apt-cache ,我发现它: # apt-cache search gcc libgcc1 – GCC […]

默认文件权限(Debian / Ubuntu)

我有/ var / www中的文件,我已经设置了权限,如下所示: user:www-data chmod 755 我如何设置它,以便所有后续的file upload(通过SFTP)具有相同的权限,我不必保持重新运行chown/chgrp/chmod -R ?

9p文件系统与KVM savevm快照严重交互

我有一个VM内的9p安装。 我使用savevm <snapshot>拍摄虚拟机状态的savevm <snapshot> ,停止虚拟机,然后使用该快照(使用kvm -loadvm <snapshot> )重新启动它。 当我尝试通过umount或ls ing与挂载进行交互时,VM挂在内核空间中。 我正在启动快照的完整命令行如下所示: qemu-system-x86_64 -nographic -monitor telnet::6440,server,nowait \ -m 1280M -balloon virtio -bios \ external_sources/seabios/out/bios.bin \ -drive file=testvm/deb.instance.integrate,if=virtio \ -loadvm loaded \ -virtfs local,path=/tmp/mymount,security_model=none,mount_tag=mymount 这发生在64位Debian挤压内核版本2.6.32和2.6.38的客人。 qemu-kvm的版本是0.14.50,在内核为2.6.32-30的Ubuntu 10.04 amd64主机上。 我对如何进一步诊断这个问题感到茫然; 我现在唯一的select是用某种networking文件系统replace9p。

我如何在Debian上安装Sun Java JDK 6?

如果我尝试在Debian上安装Sun Java JDK 6,则不会安装它。 我不想安装OpenJDK,因为它不能和Sun JDK完全一样。 我使用以下命令: apt-get install sun-java6-jdk 包名称应该是正确的,请参阅链接http://packages.debian.org/sid/sun-java6-jdk 。