每当我运行du -sh或rsync我的磁盘利用率达到 100% 时。这会导致出现 mysql 慢查询,这通常会导致我的网站出现故障。
以某种方式运行这些命令的任何提示或技巧,因此磁盘访问的优先级与 Mysql 和其他核心服务保持一致?
我们的 Linux 服务器有点像噩梦。
Somehack 正在使用我们的服务器发送垃圾邮件。我清理了所有输入,有验证码图像,更改密码等,但仍然如此。
不知何故,他们继续这样做。每小时收到数千封电子邮件。我们每天有 3000 封电子邮件限制,因此在我清理队列后几乎立即阻止了我们的 SMTP。问题是,所有那些不断进来的电子邮件都以“未处理”的形式存储在某处,这将我们的磁盘空间增加到了极限,然后我什至看不到网站。我们的服务器是典型的 Linux,使用 Plesk 9.3 作为面板。在所有这些垃圾邮件中,他们将 root@ip-188-121-62-27.ip-secureserver.net 显示为发件人,我猜这是默认的系统地址。
我迫切需要阻止这种情况,我只是不知道该怎么做。有没有办法阻止该电子邮件地址发送电子邮件?通过 SSH 还是在 Plesk 中?
这是其中 1 封垃圾邮件的标题:
Received: (qmail 20441 invoked by uid 48); 9 Mar 2012 09:29:55 -0200
Date: 9 Mar 2012 09:29:55 -0200
Message-ID: <20120309112955.20439.qmail@ip-188-121-62-27.ip.secureserver.net>
To: harsadeyes@aol.com
Subject: Viaqra 0,89
From: "Reuben Velasquez" <reuben_velasquez@vigrxplus-ue.com>
MIME-Version: 1.0
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Run Code Online (Sandbox Code Playgroud) 我在 /home/myuser/.ssh/privateKey 中有一个私钥
我在连接到 ssh 服务器时遇到问题,因为我总是得到:
Permission denied (publickey).
Run Code Online (Sandbox Code Playgroud)
我试图调试问题,我发现 ssh 正在读取错误的文件,看看输出:
[damiano@Damiano-PC .ssh]$ ssh -v root@vps1
OpenSSH_5.8p2, OpenSSL 1.0.0g-fips 18 Jan 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for vps1
debug1: Applying options for *
debug1: Connecting to 111.111.111.111 [111.111.111.111] port 2000.
debug1: Connection established.
debug1: identity file /home/damiano/.ssh/id_rsa type -1
debug1: identity file /home/damiano/.ssh/id_rsa-cert type -1
debug1: identity file /home/damiano/.ssh/id_dsa type -1
debug1: identity file /home/damiano/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version …Run Code Online (Sandbox Code Playgroud) 这是我收到的错误消息:
heartbeat[22269]: 2012/03/21_07:36:55 ERROR: Illegal directive [unicast] in /etc/ha.d/ha.cf
heartbeat[22269]: 2012/03/21_07:36:55 ERROR: Heartbeat not started: configuration error.
heartbeat[22269]: 2012/03/21_07:36:55 ERROR: Configuration error, heartbeat not started.
Run Code Online (Sandbox Code Playgroud)
这是我的 ha.cf 文件:
logfile /var/log/ha-log
###logfacility local0
keepalive 1
deadtime 10
initdead 90
udpport 694
unicast eth0 "node02_IP_Address
auto_failback on
node node01
node node02
###respawn hacluster /usr/lib/heartbeat/ipfail
Run Code Online (Sandbox Code Playgroud)
任何想法谢谢,E。
我有 2 台运行 linux 的服务器,其中一台托管图片共享服务(目前有 193G 的图片),我想进行增量备份。每次都复制整个站点不是一种选择,所以我想要像 rsync 这样的东西,但它应该能够使用以前版本的备份,并且只是硬链接最新的文件。是否有一些现有的解决方案?
我已经编辑了我/etc/bashrc的设置,LD_LIBRARY_PATH就像我之前问的问题一样。不过好像没有生效。即使echo $LD_LIBRARY_PATH确实显示了我的修改。并运行我的程序:LD_LIBRARY_PATH="/usr/local/lib" ./test.cgi显式确实有效。我需要重新启动系统吗?这是怎么回事?
我有 Tomcat,我正在尝试绑定到 2 个特定端口(使用自定义连接器)。例如端口A和端口B。
问题:
当我这样做时,netstat -a |grep A我没有看到列出的端口。
如果我这样做,netstat -antp我会看到两个端口A并B列出。
命令之间有什么区别?
我有一个无法正确解析依赖项的 redhat 服务器。
我想通过 yum "yum install httpd" 安装 httpd 并且它安装正确,但是当我启动 httpd 时出现以下错误:
Stopping httpd: [FAILED]
Starting httpd: /usr/sbin/httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory
[FAILED]
Run Code Online (Sandbox Code Playgroud)
它缺少 apr-util 包的依赖项。
奇怪的是,安装的是 i386 包而不是 x86_64 包。任何人都可以解释为什么可能无法正确解决依赖关系?
ldd /usr/sbin/httpd
libm.so.6 => /lib64/libm.so.6 (0x00002b02370db000)
libpcre.so.0 => /lib64/libpcre.so.0 (0x00002b023735e000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00002b023757a000)
libaprutil-1.so.0 => not found
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00002b0237793000)
libldap-2.3.so.0 => /usr/lib64/libldap-2.3.so.0 (0x00002b02379cb000)
liblber-2.3.so.0 => /usr/lib64/liblber-2.3.so.0 (0x00002b0237c06000)
libdb-4.3.so => /lib64/libdb-4.3.so …Run Code Online (Sandbox Code Playgroud) 我在 HP Proliant DL 380 G7 上安装了 Suse Linux 11。在安装过程中,我收到错误“找不到可用的硬盘”我卡住了过去 4 天..需要优先帮助,
我用virtualbox4创建了一个盒子(8G磁盘),安装了一个Fedora 16。很快我发现空间不够,我无法下载任何东西~/download。
我曾经VBoxManage把磁盘大小增加到20G,但我仍然无法下载任何东西。
经过一些研究(我是 linux 的新手),我意识到增加的磁盘没有被使用。我试图/使用它,但失败了。因为有些命令的结果和我的linux书不一样。
df
cd /
df -h
Run Code Online (Sandbox Code Playgroud)
印刷:
[freewind@localhost /]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_fedora16-lv_root
3.6G 3.5G 7.7M 100% /
tmpfs 565M 272K 565M 1% /dev/shm
/dev/sda1 485M 55M 405M 12% /boot
/dev/sr0 49M 49M 0 100% /media/VBOXADDITIONS_4.1.12_77245
Run Code Online (Sandbox Code Playgroud)
磁盘
fdisk -l
Run Code Online (Sandbox Code Playgroud)
打印(感谢迈克):
[root@localhost ~]# fdisk -l
Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 …Run Code Online (Sandbox Code Playgroud)