益友网(http://www.1uu2.com) 做linux用户的良师益友、linux操作系统命令教程

当前位置: 益友网 > Linux服务器 > 文章正文

在CentOS5.2系统上为PHP5安装Lighttpd和MySQL

发表于 2010-04-02 00:50 | 来源: | 阅读 685 次

Lighttpd是一个安全,快速,符合标准,灵活的并且针对复杂的网络环境做了很多优化的web服务软件。这篇文章描述了如何在Centos5.2系统上为HPH5安装Lighttpd和MySQL支持。

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

关键字:
喜欢益友网的文章,那就通过 RSS Feed 功能订阅阅读吧!

我要评论

*

* 绝不会泄露



返回首页 | 关于我们 | 联系我们 | 广告合作 | 网站地图 | 友情链接 | 版权声明 |