1+
进入Fedora LiveCD后sshd服务默认是没有开启来的,ssh需要手动开启来,开启之后需要给root添加一个密码,不然ssh登录不上的
[root@localhost ~]# systemctl enable sshd.service
ln -s '/usr/lib/systemd/system/sshd.service' '/etc/systemd/system/multi-user.target.wants/sshd.service'
[root@localhost ~]# systemctl start sshd.service
当然最好还是将 iptables 给关掉:
[root@localhost ~]# systemctl stop iptables....
fedora, linux阅读全文
0+
0+
昨晚一台windows服务器重启后,Nagios发出报警,报警内容是"NSClient - ERROR: Failed to get PDH value."
上网查了一些资料,据 http://www.nic-nac-project.de/~jose/tag/nsclient/ 介绍是windows计数器的错误,重建计数器就可以解决,我使用
lodctr /R 重建了计数器,但问题依然存在.
我想会不会是 windows 2003 数据保护的原因,于是将windows2003 的数据保护给关掉,
右键 我的电脑==>属性 ==>高级==>性能设置==>数据执行保护==>
为除下列选定程序之外的所有程序和服务启用DEP==>...
Nagios监控阅读全文
0+
1+
昨天装备通过check_esx3.pl监控一台新的esxi4.1虚拟化,但是在终端上执行检测命令是出现Server version unavailable的错误:
/usr/local/nagios/libexec/check_esx3.pl -H 172.16.10.11 -u root -p password -l cpu CHECK_ESX3.PL
CRITICAL - Server version unavailable at 'https://172.16.10.11:443/sdk/vimService.wsdl' at /usr/lib/perl5/5.8.8/VMware/VICommon.pm line 545.
网上查询了一些资料,根据http://www.claudiokuenzler.com/blog/210/check_esx3.pl-error-server-version-unavailable-lwp-...
esxi, Nagios监控阅读全文
0+
在编译安装 mcrypt 出现了错误 ,一下是错误信息
[root@localhost mcrypt-2.6.8]# make
make all-recursive
make[1]: Entering directory `/root/tools/lamp/mcrypt-2.6.8'
Making all in doc
make[2]: Entering directory `/root/tools/lamp/mcrypt-2.6.8/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/tools/lamp/mcrypt-2.6.8/doc'
Making all in src
make[2]: Entering directory `/root/tools/lamp/mcrypt-2.6.8/src'
gcc -DHAVE_CONFI...
linux阅读全文
1+
CentOS默认是不能挂载NTFS格式的分区的,不过现在的移动硬盘,U盘基本上是格式化成NTFS格式,如果要挂载那么就要使用 ntfs-3g 了
使用fdisk -l 查看 系统中的分区
[root@centos6 ~]# fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd343a3a6
Device Boot...
centos, linux, ntfs阅读全文
0+
Centos 5.4 Xorg 启动不了
今天我用图形界面安装了CentOS 5.4, 可是启动的时候却进不了X. 用FC12 LiveCD测试, 可以进入图形界面. 不知道哪里出问题了. xorg.conf 不能自动配置.
主板: Intel 965G 集成显卡.
麻烦大家帮忙看看. 谢谢!
下面是系统信息和Log:
# cat /etc/X11/xorg.conf
# Xorg configuration created by system-config-display
Section "ServerLayout"
Identifier "single head configuration"
&...
centos, linux阅读全文
2+
今天公司的网站,有几个IP过于频繁的访问,频繁查询数据库,导致机器负载很高,于是根据实际情况,参考 http://gdl.pzhl.net/?p=149 屏蔽掉访问频繁的IP,问题得以解决,在这里贴出来,供大家参考参考.
脚本需要根据实际的nginx log 格式,修改,取出 访问IP 和User-Agent.
在nginx配置文件中添加一条配置
include ./vhost/blockip.conf;
脚本内容:
#!/bin/bash
nginx_home=/usr/local/webserver/nginx
log_path=/usr/local/webserver/nginx/logs
&...
nginx阅读全文
0+
VirtualBox虚拟机随着使用时间的增长,就算虚拟机里面的文件删除了,但是 虚拟机的 vdi 文件也不会缩小,这时我们就需要手动的对vdi文件进行瘦身了.看看文件太大了:
[root@host30 winxp]# du -sh winxp.vdi
15G winxp.vdi
(1)瘦身需要准备工具 SDelete , 可以到 http://115.com/file/c2d3b4hr下载,也可以访问这里http://technet.microsoft.com/en-us/sysinternals/bb897443下载
将下载的文件解压,然后进入Dos命令行,执行 sdelete.exe 进行瘦身
...
virtualbox阅读全文