<bdo id='o1Gvj'></bdo><ul id='o1Gvj'></ul>
    1. <small id='o1Gvj'></small><noframes id='o1Gvj'>

      <i id='o1Gvj'><tr id='o1Gvj'><dt id='o1Gvj'><q id='o1Gvj'><span id='o1Gvj'><b id='o1Gvj'><form id='o1Gvj'><ins id='o1Gvj'></ins><ul id='o1Gvj'></ul><sub id='o1Gvj'></sub></form><legend id='o1Gvj'></legend><bdo id='o1Gvj'><pre id='o1Gvj'><center id='o1Gvj'></center></pre></bdo></b><th id='o1Gvj'></th></span></q></dt></tr></i><div id='o1Gvj'><tfoot id='o1Gvj'></tfoot><dl id='o1Gvj'><fieldset id='o1Gvj'></fieldset></dl></div>
      <legend id='o1Gvj'><style id='o1Gvj'><dir id='o1Gvj'><q id='o1Gvj'></q></dir></style></legend>
        <tfoot id='o1Gvj'></tfoot>

      1. CentOS 安装 php72 但命令行 php 不工作

        CentOS installed php72 but command line php isn not working(CentOS 安装 php72 但命令行 php 不工作)

              <tbody id='Fhyhd'></tbody>
            <tfoot id='Fhyhd'></tfoot>
          • <legend id='Fhyhd'><style id='Fhyhd'><dir id='Fhyhd'><q id='Fhyhd'></q></dir></style></legend>

            <small id='Fhyhd'></small><noframes id='Fhyhd'>

            <i id='Fhyhd'><tr id='Fhyhd'><dt id='Fhyhd'><q id='Fhyhd'><span id='Fhyhd'><b id='Fhyhd'><form id='Fhyhd'><ins id='Fhyhd'></ins><ul id='Fhyhd'></ul><sub id='Fhyhd'></sub></form><legend id='Fhyhd'></legend><bdo id='Fhyhd'><pre id='Fhyhd'><center id='Fhyhd'></center></pre></bdo></b><th id='Fhyhd'></th></span></q></dt></tr></i><div id='Fhyhd'><tfoot id='Fhyhd'></tfoot><dl id='Fhyhd'><fieldset id='Fhyhd'></fieldset></dl></div>

                  <bdo id='Fhyhd'></bdo><ul id='Fhyhd'></ul>
                • 本文介绍了CentOS 安装 php72 但命令行 php 不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在阅读以下关于在 CentOS 7 上安装 PHP 7.2 的教程 https://www.cyberciti.biz/faq/how-to-install-php-7-2-on-centos-7-rhel-7/

                  I'm reading the following tutorial on installing PHP 7.2 on CentOS 7 https://www.cyberciti.biz/faq/how-to-install-php-7-2-on-centos-7-rhel-7/

                  基本上是这样说的;

                  sudo yum install epel-release
                  sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
                  sudo yum install yum-utils
                  sudo yum-config-manager --enable remi-php72
                  sudo yum update
                  sudo yum install php72
                  

                  然后它说使用标准验证安装

                  Then it says to verify the installation using the standard

                  php --version
                  

                  返回以下内容;

                  -bash: php: command not found
                  

                  但是,如果我输入以下内容;

                  BUT, if i type the following;

                  php72 --version
                  

                  它工作得很好并返回版本.

                  It works just fine and returns the version.

                  问题是一切都依赖于命令 php 而不是 php72

                  The problem is that everything relies on the command php and not php72

                  知道我应该做什么吗?

                  推荐答案

                  请阅读向导说明

                  如果您需要单个版本,使用 remi-php72 存储库和 php-* 包,命令将是 php.

                  If you need a single version, using remi-php72 repository, and the php-* packages, the command will be php.

                  # yum-config-manager --enable remi-php72
                  # yum update
                  # yum install php-cli
                  # php -v
                  

                  如果需要多个版本,可以使用php72-php-*包,命令为php72

                  If you need multiples versions, the php72-php-* packages are available, and the command is php72 or

                  # yum install php72-php-cli
                  # php72 -v
                  # scl enable php72 bash
                  # php -v
                  

                  所以,根据您的问题,您已经启用了 remi-php72 存储库,但是从 remi-safe 存储库安装了 php72* 包...

                  So, according to your question, you have enable the remi-php72 repository, but installed the php72* packages from the remi-safe repository...

                  这篇关于CentOS 安装 php72 但命令行 php 不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                  <tfoot id='XMAQU'></tfoot>

                  <small id='XMAQU'></small><noframes id='XMAQU'>

                  <legend id='XMAQU'><style id='XMAQU'><dir id='XMAQU'><q id='XMAQU'></q></dir></style></legend>

                  1. <i id='XMAQU'><tr id='XMAQU'><dt id='XMAQU'><q id='XMAQU'><span id='XMAQU'><b id='XMAQU'><form id='XMAQU'><ins id='XMAQU'></ins><ul id='XMAQU'></ul><sub id='XMAQU'></sub></form><legend id='XMAQU'></legend><bdo id='XMAQU'><pre id='XMAQU'><center id='XMAQU'></center></pre></bdo></b><th id='XMAQU'></th></span></q></dt></tr></i><div id='XMAQU'><tfoot id='XMAQU'></tfoot><dl id='XMAQU'><fieldset id='XMAQU'></fieldset></dl></div>
                            <tbody id='XMAQU'></tbody>
                            <bdo id='XMAQU'></bdo><ul id='XMAQU'></ul>