天道酬勤

Oracle and My Life

Archive for the ‘LAMP’ Category

Starting udev hang

leave a comment

搭建个TSM的学习环境,没想碰到VMware的一个bug了(与CPU设置有关),而这个bug只针对RHEL5.2 X86版本。bug症状是系统启动时一直停在Starting udev,解决方法超级简单,移步这里即可。

-The End-

Written by ochef

May 9th, 2011 at 5:42 pm

Posted in LAMP

Tagged with

vsftpd dead but subsys locked & error 530

leave a comment

linux下,如发现vsftpd服务起不来,可以查看其状态,

#/etc/init.d/vsftpd status

vsftpd dead but subsys locked

上述问题可以用下面的方法解决:

1.停止xinetd服务

#/etc/rc.d/init.d/xinetd stop

Stopping xinetd: [ OK ]

2.lock文件中删除vsftpdlock

# rm -rf  /var/lock/subsys/vsftpd

3.重启vsftpd服务

# service vsftpd restart

Shutting down vsftpd: [  OK  ]

Starting vsftpd for vsftpd: [  OK  ]

最后重启xinetd服务

#/etc/rc.d/init.d/xinetd restart

Stopping xinetd: [  OK  ]

Starting xinetd: [  OK  ]

#/etc/init.d/vsftpd status

vsftpd (pid 7317) is running…

error 530的错误

530 Must perform authentication before identifying USERgccftp有关,root登录系统修改一下gccftp文件即可。

# vi /etc/xinetd.d/gccftp

找到“server_args”这一行,删除其中的“-a”选项

# /etc/rc.d/init.d/xinetd restart

至此问题解决。

-The End-

Written by ochef

June 5th, 2009 at 9:37 am

Posted in LAMP

Tagged with

LAMP应用环境安装指南Ⅲ–PHP

leave a comment

LAMP应用环境安装指南Ⅰ–MySQL

LAMP应用环境安装指南Ⅱ–Apache

PHP的安装

1.下载安装php支持包

(1) GD2

# cd /usr/local/src

#wget http://search.cpan.org/CPAN/authors/id/L/LD/LDS/GD-2.41.tar.gz

#cd GD-2.41

#perl Makefile.PL

#make; make install

(2) LibXML2

# cd /usr/local/src

#wget http://www.xmlsoft.org/sources/libxml2-2.6.30.tar.gz

# tar xzvf libxml2-2.6.30.tar.gz

# cd libxml2-2.6.30

# ./configure –prefix=/usr/local/libxml2

# make; make install

2.编译安装

#cd /usr/local/src

#wget http://cn.php.net/distributions/php-5.2.9.tar.gz

# tar -zvxf php-5.2.9.tar.gz

# cd php-5.2.9

#./configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache2/bin/apxs –with-mysql=/usr/local/mysql –with-libxml-dir=/usr/local/libxml2 –with-gd –enable-gd-native-ttf –with-jpeg-dir –with-png-dir –with-bz2 –with-freetype-dir –with-iconv-dir –with-zlib –enable-mbstring –with-mcrypt –disable-ipv6 –disable-cgi –disable-cli

Read the rest of this entry »

Written by ochef

May 24th, 2009 at 11:15 pm

Posted in LAMP

Tagged with

LAMP应用环境安装指南Ⅱ–Apache

leave a comment

LAMP应用环境安装指南Ⅰ–MySQL

LAMP应用环境安装指南Ⅲ–PHP

Apache的安装:

1. Apache日志截断程序,Linux下运行的Web服务器Apache,默认日志文件是不分割的,一个整文件既不易于管理,也不易于分析统计。安装cronolog后,可以将日志文件按时间分割,易于管理和分析。

# cd /usr/local/src

#wget http://cronolog.org/download/cronolog-1.6.2.tar.gz

# tar xzvf cronolog-1.6.2.tar.gz

# cd cronolog-1.6.2

# ./configure –prefix=/usr/local/cronolog

# make; make install

2.下载httpd源码包

#cd /usr/local/src

#wget http://labs.xiaonei.com/apache-mirror/httpd/httpd-2.2.11.tar.gz

#tar xzvf httpd-2.2.11.tar.gz

#cd httpd-2.2.11

3. 编译安装

#./configure –prefix=/usr/local/apache2 –enable-module=so –enable-deflate=shared –enable-expires=shared –enable-rewrite=shared –enable-static-support –enable-static-htpasswd –enable-static-htdigest –enable-static-rotatelogs –enable-static-logresolve –enable-static-htdbm –enable-static-ab –enable-static-checkgid –disable-userdir

#make;make install

#echo “/usr/local/apache2/bin/apachectl start” >> /etc/rc.local (系统启动时服务自动启动)

-The End-

Written by ochef

May 24th, 2009 at 10:59 pm

Posted in LAMP

Tagged with

无觅相关文章插件,快速提升流量