day1_CentOS6.5搭建lamp环境

1.yum install mysql-server mysql    //安装Mysql服务端和客户端

2.yum install httpd                       // 安装Apache

3.yum install php                         // 安装PHP

4.chkconfig mysqld on                 // 设置mysql开机启动

5.chkconfig httpd on                   // 设置Apache开机启动

6./etc/init.d/mysqld start     //  启动mysql服务

7./etc/init.d/httpd start           //  启动Apache服务

8.mysql_secure_installation         //  设置mysql的root密码

   Enter current password for root (Enter for none):回车

   set root password? [Y/N] Y

   分别输入两次密码回车

   根据提示输入Y回车

  

posted @ 2014-07-17 16:40  狗屁不通  阅读(87)  评论(0)    收藏  举报