王殊勋的个人博客

只要开始,虽远不迟!

原因: 缺少包安装linux-kernel-headers. 解决: 有桌面系统进入yast2 搜索linux-kernel-headers安装. 没有桌面系统去http://rpm.pbone.net/ 搜索下载rpm安装. 下载地址: 1 2 ftp://ftp.pbone.net/mirror/ftp.opensuse.org/distribution/11.2/repo/oss/suse/noarch/linux-kernel-headers-2.6.31-3.4.noarch.rpm rpm -ivh linux-kernel-headers-2.6.31-3.4.noarch
阅读全文 »

Gem使用中遇到错误: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 henry@henry-laptop:~/Soft/Ruby/RubyGem/rubygems-0.9.0$ sudo gem update --system Updating RubyGems... Bulk updating Gem source index for: http://gems.rubyforge.org Attempting remote update of rubygems-update ERROR: While executing gem ... (Errno::E
阅读全文 »

1.安装开始 1 2 rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm yum install nagios nagios-plugins nagios-plugins-all nagios-plugins-nrpe nrpe rrdtool* pnp4nagios httpd php php-gd 2、修改nagios.cfg 1 vim nagios.cfg 修改如下: 1 2 3 process_performance_data=1 ser
阅读全文 »

今天在开发时突然apache无法启动了.表现为,输入 httpd -X 后片刻自动退出,同时在error_log中有如下内容: 1 [Fri Aug 15 10:54:31 2008] [emerg] (28)No space left on device: Couldn't create accept lock df一下发现不是磁盘空间的问题.Google了一下就找到了解决方案,原来是系统的信号量不够用了.用以下命令可以查看所有的信号量: 1 2 3 4 5 6 7 8 9 $ ipcs -s key semid owner perms nsems 0x00000000 19
阅读全文 »

To add nginx yum repository, create a file named /etc/yum.repos.d/nginx.repo and paste one of the configurations below: CentOS: 1 2 3 4 5 [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=0 enabled=1 After this: 1 yum install nginx
阅读全文 »

lastlog文件在每次有用户登录时被查询.可以使用lastlog命令检查某特定用户上次登录的时间,并格式化输出上次登录日志 /var/log/lastlog的内容.它根据UID排序显示登录名、端口号(tty)和上次登录时间.如果一个用户从未登录过,lastlog显示Never logged.注意需要以root身份运行该命令.运行该命令如下所示: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 4
阅读全文 »

eAccelerator的前身其实是truck-mmcache,因为开发truk-mmcache的人被Zend给招安了,所以开发eAccelerator的人继承了truk-mmcache的一些特性,设计出eAccelerator加速器.安装如下: 1 2 3 4 5 6 7 8 $wget http://jaist.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.5.tar.bz2 $tar -jxf eaccelerator-0.9.5.tar.bz2 $cd eaccelerator-0.9.5 $/usr/l
阅读全文 »
0%