1. 安装 MySQL
[root@server ~]# yum -y install mysql mysql-server
2. 为MySQL设置系统开机启动服务
[root@server ~]# chkconfig --levels 235 mysqld on
[root@server ~]# /etc/init.d/mysqld start
3. 设置MySQL根用户密码
[root@server ~]# mysqladmin -u root password server123
4. 检测MySQL网络服务是否可用
[root@server ~]# netstat -tap | grep mysql
tcp 0 0 *:mysql *:* LISTEN 19852/mysqld
5. 设置MySQL本机用户密码
[root@server ~]# mysqladmin -h localhost -u root password server123
6. 安装Lighttpd
[root@server ~]# rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
[root@server ~]# yum -y install lighttpd
7. 为Lighttpd设置系统开机启动服务
[root@server ~]# chkconfig --levels 235 lighttpd on
[root@server ~]# /etc/init.d/lighttpd start
原文出处:
http://www.howtoforge.org/installing-lighttpd-with-php5-and-mysql-on-centos-5.2
时间:2010-04-01 10:31
来源:Linuxeden
作者:mgqw译
原文链接