• Installing Lumen -- Red Hat/CentOS


    ####To install a modern version of PHP on Red Hat and CentOS

    I recommend using the Webtatic ( https://webtatic.com/ ) yum repository.

    First, add the repository with the Webtatic release RPM; you should use the repository that matches your specific version

    # CentOS/REHL 7

    Adding the Webtatic Repository

    $ yum -y update
    $ sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

    $ sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

    Installing PHP Packages from Webtatic

    $ yum install
    php71w.x86_64
    php71w-mysql.x86_64
    php71w-mbstring.x86_64
    php71w-xml.x86_64
    php71w-pecl-xdebug.x86_64

     

    install the MySQL client and server

    Installing MySQL on REHL

    $ sudo yum install mysql-server mysql 

    (这里我用的是:

    sudo yum install mariadb-server mariadb
    执行完后, sudo systemctl status mariadb.service 

    
    
    

    (备注: 这里犯了个低级错误, 在自己的ubuntu系统里执行sudo yum install mysql-server mysql, 报错如下:

    没有已启用的仓库。
    执行 "yum repolist all" 查看您拥有的仓库。
    您可以用 yum-config-manager --enable <仓库名> 来启用仓库

    那么自己就设置仓库(To set up the repository---https://webtatic.com/projects/yum-repository/):

    rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm,结果报错:
    rpm:RPM should not be used directly install RPM packages, use Alien instead! 可笑!!我在ubuntu系统 用rpm安装rpm包, 所以
    提示让我转换 rpm为ubuntu能够识别的包。!!

    )

    Securing the MySQL Installation

    Once MySQL is installed, you should set a root password

    $sudo  /usr/bin/mysql_secure_installation  

    (备注:sudo: /usr/bin/mysql_secure_installation:找不到命令,原因是: mysql-server没有安装成功

    执行完 sudo yum install mariadb-server mariadb,之后就能找到命令了

    )

    ################

  • 相关阅读:
    微博个人中心效果
    微博弹性按钮
    ios9 3dtouch 博客
    去掉导航栏阴影
    模态全屏模式,实现半透明效果
    剪切图片
    修改push动画的方向
    数据库链接池终于搞对了,直接从100ms到3ms
    如何在Java代码中去掉烦人的“!=null”
    面试官:请讲下接口具体怎么优化!
  • 原文地址:https://www.cnblogs.com/huaerr/p/7821585.html
Copyright © 2020-2023  润新知