zoukankan      html  css  js  c++  java
  • Linux Centos7.4 下安装 LAMP环境及配置(php5.6,mysql5.7)

    本文转载至:https://www.cnblogs.com/denghuachengle/p/10423737.html

    Data Center
    11.11.11.11
    root / password
    远程连接密码: password

    rm -f /var/run/yum.pid


    httpd -v

    service mysqld start

    yum -y install httpd

    yum -y install httpd-manual mod_ssl mod_perl mod_auth_mysql

    systemctl enable httpd.service

    yum install epel-release

    rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

    yum list --enablerepo=remi --enablerepo=remi-php56 | grep php

    yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof

    php --version

    yum install --enablerepo=remi --enablerepo=remi-php56 php-fpm

    yum install php-gd

    yum install php-gd --enablerepo=remi-php56

    yum install php-gd

    cd /usr/local/src

    wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm

    rpm -ivh mysql57-community-release-el7-11.noarch.rpm

    yum install -y mysql-server

    systemctl start mysqld

    /bin/systemctl start mysqld.service

    ps aux|grep mysqld

    systemctl enable mysqld

    cat /var/log/mysqld.log|grep 'A temporary password' 【/var/log/mysqld.log】 password

    mysql -u root -p

    use mysql;

    alter user 'root'@'localhost' identified by 'password';


    ALTER USER 'root'@'localhost' PASSWORD EXPIRE NEVER;
    flush privileges;


    GRANT ALL PRIVILEGES ON *.* TO 'db_user'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
    flush privileges;

  • 相关阅读:
    硬件基础---拆装机
    Dynamics CRM 2015 Update 1 系列(4): 自己定义主键
    Heroku第三方服务接入指南(二)
    ssh 免密登录
    CentOS 7 NAT软路由
    Nginx升级
    挖矿病毒
    安装 epel-release
    hydra 安装和使用
    Linux 安全信息查看
  • 原文地址:https://www.cnblogs.com/betobe/p/12347966.html
Copyright © 2011-2022 走看看