您的位置:首页 > 运维架构 > Apache

redhat linux 6.4 搭建apache+mysql+php环境

2014-11-04 21:25 357 查看
1.安装apache

yum install httpd


启动apache

/etc/init.d/httpd start


2.安装mysql

yum install mysql mysql-server


启动mysql

/etc/init.d/mysqld start


3.安装php

yum install php


重启apache

/etc/init.d/httpd restart


4.安装php的mysql模块

yum install php-mysql


重启apache
/etc/init.d/httpd restart


5.把LAMP组件设置为自动启动

chkconfig --levels 2345 httpd on
chkconfig --levels 2345 mysqld on
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: