由于浏览堆栈交换和谷歌,我觉得这与我的主机文件有关。目前是 rw-r--r--,包含:
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomain localhost
Run Code Online (Sandbox Code Playgroud)
另外,我的相关(希望)httpd.conf 部分是:
ServerName 192.168.1.3
Run Code Online (Sandbox Code Playgroud)
虽然我已经为 ServerName 尝试了 localhost 和 127.0.0.1。盒子的本地IP是192.168.1.3 ip。
我得到的错误是:
[Thu May 17 07:50:44 2012] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "(none)"
Configuration Failed
Run Code Online (Sandbox Code Playgroud)
我正在使用 ArchLinux 安装,从包管理器安装 Apache。
有什么帮助吗?我是 Arc 的新手
[编辑]:添加我的文本墙 httpd.conf,请注意,我通常会对此进行一些自定义,但我又恢复了库存,希望能找出问题所在:
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> …Run Code Online (Sandbox Code Playgroud) 我正在使用 scp 命令将文件从本地计算机 (ArchLinux)复制到我的服务器 (CentOS 6.5)。
但对于每个 scp 命令都会建立一个新连接,尽管我使用 SSH 密钥进行身份验证,但该过程需要很长时间。
那么,有什么办法可以维持连接并通过它进行多次传输呢?
我有一个 ProLiant DL360 G5。我想在这台机器上安装 Arch Linux,但我遇到了以下困难:
我已经启动了 Arch Linux 安装 CD,但我似乎无法访问硬盘驱动器(显然,有 6 个)。有一个/dev/cciss/c0d0,但运行会fdisk c0d0;产生“fdisk:无法打开 c0d0:没有这样的设备或地址”。有/dev/sda{,1,2},但它们对应于安装介质。没有/dev/hd*。dmesg | grep -i cis产生“HP CISS 驱动程序 (v 3.6.26)”和“cciss 0000:06:00.0: cciss0: <0x3230> at PCI 0000:06:00.0 IRQ 24 using DAC”。lspci产生“RAID 总线控制器:惠普公司智能阵列控制器(修订版 04)”。
我没有使用 ProLiant(甚至其他“服务器机房”类型的机器)的经验。此外,这是一台二手机器,我无权访问原始所有者/配置者。其中一个硬盘驱动器的前面有一个橙色指示灯......我应该把它取出来吗?
根据我的阅读,智能阵列驱动程序已经包含在 linux 内核中一段时间了,但也许我仍然需要一些驱动程序?
如果我需要提供更多信息,请告诉我,如果您有关于将 archlinux 安装到这台机器上的任何提示,请告诉我。
使用:
Linux nomemory 2.6.32-24-generic #43-Ubuntu SMP Thu Sep 16 14:17:33 UTC 2010 i686 GNU/Linux
Run Code Online (Sandbox Code Playgroud)
我在我的文件夹$HOME名为~/.scriptfarm/scripts那里我继续我的一些自定义脚本。
nomemory@nomemory:~$ ls -l /home/nomemory/.scriptfarm/script
total 20
-rwxr-xr-x 1 nomemory nomemory 10 2010-09-21 01:31 aaa
-rwxr-xr-x 1 nomemory nomemory 31 2010-09-21 00:47 pt.chc
-rwxr-xr-x 1 nomemory nomemory 35 2010-09-21 00:47 pt.int
-rwxr-xr-x 1 nomemory nomemory 34 2010-09-21 00:47 pt.rem
-rwxr-xr-x 1 nomemory nomemory 54 2010-09-21 00:47 pt.up
Run Code Online (Sandbox Code Playgroud)
问题是在 Ubuntu 中,当前缀为sudo. 在脚本运行的 Arch 上,行为是不同的。
让我给你举个例子(aaa是一个 foobar 类型的脚本):
nomemory@nomemory:~$ aaa …Run Code Online (Sandbox Code Playgroud) 我不是服务器人,我的网络技能有点生疏,所以这可能是一个简单的问题。在一台全新的 archlinux 机器上,我设置了 sshd,并告诉它绑定到 0.0.0.0:9223。运行后,我使用 netstat 确认它正在侦听 *:9223。
运行“ssh -p 9223 localhost”连接正常,但远程连接失败。然后我在服务器上尝试了“ssh -p 9223 [REMOTE_IP]”,但失败了。
在试图找到问题的根源并失败后,我将 sshd 设置为绑定到 [REMOTE_IP],突然一切正常。
所以我的问题是,什么会导致绑定到 0.0.0.0 的套接字忽略来自 eth0 接口的 IP 地址的连接?
我在我的 tty 控制台中收到了很多这些错误消息,使它们无法使用。我不知道是什么导致了这些错误。我有点怀疑它与我的硬盘有关。
Jun 12 23:48:57 localhost kernel: [ 7683.593354] ata1.00: status: { DRDY ERR }
Jun 12 23:48:57 localhost kernel: [ 7683.593357] ata1.00: error: { UNC }
Jun 12 23:48:57 localhost kernel: [ 7686.199243] ata1.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x0
Jun 12 23:48:57 localhost kernel: [ 7686.199277] ata1.00: irq_stat 0x40000008
Jun 12 23:48:57 localhost kernel: [ 7686.199282] ata1.00: failed command: READ FPDMA QUEUED
Jun 12 23:48:57 localhost kernel: [ 7686.199292] ata1.00: cmd 60/08:00:80:11:f2/00:00:19:00:00/40 tag 0 …Run Code Online (Sandbox Code Playgroud) arch-linux ×7
ssh ×2
apache-2.2 ×1
bash ×1
centos ×1
files ×1
hp-proliant ×1
linux ×1
logging ×1
networking ×1
nginx ×1
path ×1
scp ×1
ubuntu ×1
wordpress ×1