我发现了一个 Mumble 服务器的性能问题,我在上一个问题中描述了它是由未知来源的 I/O 延迟问题引起的。由于我不知道是什么导致了这种情况以及如何进一步调试它,因此我在询问您对这个主题的想法。
我正在运行Hetzner EX4S 根服务器作为 KVM 管理程序。该服务器运行 Debian Wheezy Beta 4,并通过 LibVirt 使用 KVM 虚拟化。
服务器有两个不同的 3TB 硬盘,因为在报告 SMART 错误后更换了其中一个硬盘。第一个硬盘是 Seagate Barracuda XT ST33000651AS(512 字节逻辑,4096 字节物理扇区大小),另一个是 Seagate Barracuda 7200.14 (AF) ST3000DM001-9YN166(512 字节逻辑和物理扇区大小)。有两个 Linux 软件 RAID1 设备。一个用于未加密的引导分区,另一个用作加密其余部分的容器,使用两个硬盘驱动器。
后一个 RAID 设备内部有一个 AES 加密的 LUKS 容器。在 LUKS 容器内有一个 LVM 物理卷。虚拟机管理程序的 VFS 在描述的 LVM 物理卷上分为三个逻辑卷:一个用于 /,一个用于 /home,一个用于交换。
下面是块设备配置栈的示意图:
sda (Physical HDD)
- md0 (RAID1)
- md1 (RAID1)
sdb (Physical HDD)
- md0 (RAID1)
- md1 …Run Code Online (Sandbox Code Playgroud) 查看/usr/share/doc/nginx/README.Debian文件,我们可以看到以下警告:
README for Debian
-----------------
Files under /var/www/ are not supported as per Debian Policy.
Please see: http://lintian.debian.org/tags/dir-or-file-in-var-www.html and,
http://www.pathname.com/fhs/pub/fhs-2.3.html#THEVARHIERARCHY for more
details and explanations.
Run Code Online (Sandbox Code Playgroud)
经过一些不成功的研究(我可能看错了地方......),我想知道:
/var/www”),或者如果它只是意味着标准 Debian 软件包安装不应在/var/www./var/www,我应该把它们放在哪里?提前致谢!
如何使用 make-jpkg 和 fakeroot 在 Debian Wheezy 上安装 Oracle Java?
在 debian wheezy 上安装 oracle java 的手册非常清晰易懂:
http://wiki.debian.org/JavaPackage https://blogs.oracle.com/marigan/entry/installation_of_the_jdk_on http://www.debian-administration.org/articles/142
以 root 身份运行:
make-jpkg jdk-7u21-linux-x64.tar.gz
fakeroot make-jpkg jdk-7u21-linux-x64.tar.gz
结果出现以下错误:
您是真正的 root —— 不幸的是,一些 Java 发行版具有直接操作 /etc 的安装脚本,并且可能会导致您的系统出现一些不一致。相反,您应该成为非 root 用户并运行:
fakeroot make-jpkg jdk-7u21-linux-x64.tar.gz
这不会对您的系统文件造成任何损害,并且仍然允许 Java 发行版成功解压。
正在流产。
作为普通用户运行:
make-jpkg jdk-7u21-linux-x64.tar.gz
fakeroot make-jpkg jdk-7u21-linux-x64.tar.gz
导致警告/错误墙。
一些错误:
dpkg-shlibdeps: warning: Can't extract name and version from library name `libverify.so'
error: couldn't find library libxslt.so.1 needed by …Run Code Online (Sandbox Code Playgroud) 我正在尝试构建我的个人圣杯:从 iSCSI 目标无盘启动我的 Debian Wheezy KVM 服务器,无盘服务器上唯一需要的配置是 NIC ROM 中的 iSCSI 参数。其余的配置应该都在 iSCSI LUN 的“内部”。
系统有两个 NIC,它们连接到支持 LACP 的交换机。所以,我想通过绑定接口启动机器,这也在桥内vmbr0。虽然这种组合并不完全有效。
因为我读到 iSCSI 连接不应在启动后中断(例如通过重新配置接口),所以我尝试在启动前设置所有 IP 配置(在内核参数/cmdline 中)。
iSCSI 引导部分由我的 Broadcom 双端口 NIC 的 ROM 处理。这似乎工作得很好:grub 启动后继续引导。在我的 grub 配置中,我有这个:
linux /vmlinuz-2.6.32-26-pve root=UUID={iscsi-disk-uuid} ro quiet bond=bond0:eth0,eth1:mode=802.3ad,lacp_rate=1,miimon=100,xmit_hash_policy=layer2+3 bridge=vmbr0:bond0 ip=192.168.15.4::192.168.15.1:255.255.0.0::vmbr0:off
Run Code Online (Sandbox Code Playgroud)
当 grub 启动内核时,我收到以下错误:
ipconfig: vmbr0: SIOCGIFINDEX: No such device
ipconfig: no devices to configure
... repeated 10 times...
/scripts/local-top/iscsi: .: line 426: can't open '/run/net-vmbr0.conf'
Run Code Online (Sandbox Code Playgroud)
我被放到了 initramfs shell 中,我发现它bond0根本没有配置(但是bonding模块已加载),vmbr0 …
我已经使用 apt 从官方存储库在 Debian Wheezy 上安装了 ClamAV。系统是最新的,我没有通过 获得任何更新apt-get upgrade,但我仍然在日志中收到此消息:
Your ClamAV installation is OUTDATED!
Run Code Online (Sandbox Code Playgroud)
我的版本是:
$ clamscan -V
ClamAV 0.98.1/19186/Sun Jul 13 00:34:56 2014
Run Code Online (Sandbox Code Playgroud)
在官方页面上:
最新的 ClamAV® 稳定版本是:0.98.4
看起来 Wheezy 的官方稳定存储库不是最新的。我找到的唯一信息是有关 Debian Volatile 项目的官方信息,该项目自 Squeeze 以来已关闭。
有没有替代的存储库?
如何让 ClamAV 始终保持最新状态并确保系统稳定?
编辑:
我的/etc/apt/sources.list:
deb http://ftp.ru.debian.org/debian/ wheezy main non-free contrib
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb http://ftp.ru.debian.org/debian/ wheezy-updates main contrib non-free
$ dpkg -l 'clamav*'
||/ Name Version Architecture Description
+++-========================================-=========================-=========================-======================================================================================
ii clamav …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用sudo visudo -f /etc/sudoers.d/abe
. 我添加了以下内容:
# Allow automatic update of abe
matt ALL=(root) NOPASSWD: python /home/matt/token-abe/setup.py install --force
Run Code Online (Sandbox Code Playgroud)
但是当我尝试写作并退出时,我得到“现在怎么办?” 没有错误:
$ sudo visudo -f /etc/sudoers.d/abe
[sudo] password for matt:
What now? e
What now?
Run Code Online (Sandbox Code Playgroud)
我正在使用 Debian 7。
我正在尝试在我的 Linux Debian 7.2 服务器上安装 PostgreSQL,但它失败了。
这就是我所做的:
user ~ $ sudo apt-get install postgresql
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Les paquets supplémentaires suivants seront installés :
postgresql-9.1 postgresql-client-9.1 postgresql-client-common postgresql-common
Paquets suggérés :
oidentd ident-server locales-all postgresql-doc-9.1
Les NOUVEAUX paquets suivants seront installés :
postgresql postgresql-9.1 postgresql-client-9.1 postgresql-client-common postgresql-common
0 mis à jour, 5 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de …Run Code Online (Sandbox Code Playgroud) 我在Linux服务器(Wheezy服务器版本)中部署了一个网页,该网页使用Arial字体生成一个PDF文件。我看过:
/usr/share/fonts/truetype/
Run Code Online (Sandbox Code Playgroud)
那里没有找到 Arial 字体,只有:
DejaVuSans-Bold.ttf
DejaVuSansMono-Bold.ttf
DejaVuSansMono.ttf
DejaVuSans.ttf
DejaVuSerif-Bold.ttf
DejaVuSerif.ttf
Run Code Online (Sandbox Code Playgroud)
如何安装Arial字体?
在交互式登录时,我得到:
dircolors: no SHELL environment variable, and no shell type option given
Run Code Online (Sandbox Code Playgroud)
但我确实设置了 SHELL 变量:
% set | grep SHELL
SHELL=/bin/bash
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
Run Code Online (Sandbox Code Playgroud)
在~/.bash_profile我这样的来源.dircolors:
eval "`dircolors ~/.dircolors`"
Run Code Online (Sandbox Code Playgroud)
我已经在其他 Linux 主机上这样做了,这从来都不是问题,但是当我这样做时vzctl enter $CTID(带有 Debian wheezy 的 OpenVZ 容器),这总是出现。
为什么要这样做?我该如何解决?
我正在与一个Debian GNU/Linux 7.5 (wheezy)
当我检查文件时/etc/apt/sources.list该文件有这一行:
# Line commented out by installer because it failed to verify:
#deb http://security.debian.org/ wheezy/updates main
Run Code Online (Sandbox Code Playgroud)
我尝试替换另一个存储库行,但每次替换它并apt-get update在一段时间后运行命令时,我得到:
E: Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)
我应该怎么做才能解决这个问题?