zoukankan      html  css  js  c++  java
  • lamp安装

    1、安装apache

    [root@localhost Desktop]# yum install -y httpd

    2、安装php

    [root@localhost Desktop]# yum -y install php php-devel php-snmp php-gd php-mysql

    3、安装mysql

    [root@localhost Desktop]# yum install -y mysql mysql-server mysql-devel

    4、开机启动

    [root@localhost Desktop]# chkconfig httpd on

    [root@localhost Desktop]# chkconfig mysqld on

    [root@localhost Desktop]# service httpd start

    [root@localhost Desktop]# service mysqld start

    5、新建php验证页面

    [root@localhost Desktop]# vi /var/www/html/index.php 

    <?php phpinfo(); ?>

    6、设置mysql数据库root用户密码

    [root@localhost Desktop]# mysqladmin -u root password '123456'


  • 相关阅读:
    php第九节课
    php第八节课
    php第七节课
    php第六讲
    php第五节课
    php第四节课
    php第三节课
    Golang Slice切片
    Golang 反射
    Golang 流程控制
  • 原文地址:https://www.cnblogs.com/fanren224/p/8457271.html
Copyright © 2011-2022 走看看