今天突然发现有一台cenots 虚拟机占用了过多的CPU资源,搞得系统很慢。 检查一下发现居然就是这个makewhatis捣的鬼,这个东西对我没有什么作用,干脆就把它关掉。 总共有两个地方需求 去掉,一个地方是:/etc/cron.daily/下有一个makewhatis.cron自动运行的...
今天在一台新服务器下切换用户的时候出现This account is currently not available错误 上网检索了一下发现是用户的shell禁止登录的问题 解决办法: 比如我是 su - apache的时候出现的问题 用vi看看apache的帐号信息 # vi /etc/passwd | grep apache 发现它的...
一、检测硬盘能否被识别 # fdisk -lDisk /dev/sda: 36.7 GB, 36703934464 bytes255 heads, 63 sectors/track, 4462 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/sda1 * 1 261 2096451 83 Linux/...
CentOS,安装httpd-2.2.4 和php-5.2.3,一切顺利, 最后一步重新启动apache报如下错误: httpd: Syntax error on line 53 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/li...
nginx的版本号默认是打开的,可以在默认的错误页面和http响应头中查看到。如: curl -I www.nginx.org HTTP/1.1 200 OK Server: nginx/0.8.44 Date: Tue, 13 Jul 2010 14:05:11 GMT Content-Type: text/html Content-Length: 8284 Last-Modified: Tue, 13 Ju...
系统环境: [root@host conf]# more /etc/issue Red Hat Enterprise Linux Server release 5 (Tikanga) Kernel \r on an \m 问题现象: [root@ha]# locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_...
今天安装samba出现错误: [root@localhost CentOS]# rpm -ivh samba-3.0.33-3.29.el5_5.1.i386.rpm warning: samba-3.0.33-3.29.el5_5.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897 error: Failed dependencies: perl(Convert::ASN1) is nee...
在安装php-gd时出现The program package-cleanup is found in the yum-utils package。。。 解决方法: yum clean allrpm rebuilddbyum update...
CentOS(Community ENTerprise Operating System)是Linux发行版之一,它是来自于Red Hat Enterprise Linux依照开放源代码规定释 出的源代码所编译而成。由于出自同样的源代码,因此有些要求高度稳定性的服务器以CentOS替代商业版的Red Hat Enterprise Linux...
查看所有80端口的连接数 1 netstat-nat|grep-i80|wc-l 对连接的IP按连接数量进行排序 1 netstat-ntu |awk{print $5}|cut-d: -f1 |sort|uniq-c |sort-n 查看TCP连接状态 1 2 3 4 5 6 netstat-nat |awk{print $6}|sort|uniq-c|sort-rn netstat-n |awk/^tcp/ {+...