PHP 7.2 ゃ潟鴻若Linux罕膀膩

maya
篁ャ PHP 7.2 ゃ潟鴻若膣剛

 

PHP 7.2

maya
PHP 7.2 ゃ潟鴻若

 

 

 

 

篋篏罐

maya
PHP 7.2 絽 Remi’s RPM repository菴遵≪菴遵羝鴻我

 

1.Remi’s RPM repository 菴遵

# yum -y install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
茯粋昭違ゃ:fastestmirror, priorities
remi-release-7.rpm                                       |  14 kB     00:00     

祉祉祉筝ャ祉祉

ゃ潟鴻若:
  remi-release.noarch 0:7.4-1.el7.remi                                          

箴絖ч∫cゃ潟鴻若障:
  epel-release.noarch 0:7-9                                                     

絎篋障!
maya
<ゃ≪若茵腓冴<祉若吾茵腓冴翫

 

ゃ潟鴻若

maya
PHP 7.2 ゃ潟鴻若
# yum --enablerepo=remi-safe -y install php72
茯粋昭違ゃ:fastestmirror, priorities
epel/x86_64/metalink                                     | 6.7 kB     00:00     
epel                                                     | 4.7 kB     00:00     
remi-safe                                                | 2.9 kB     00:00     
(1/4): epel/x86_64/group_gz                                | 266 kB   00:00     
(2/4): epel/x86_64/updateinfo                              | 904 kB   00:00     

祉祉祉筝ャ祉祉

ゃ潟鴻若:
  php72.x86_64 0:1.0-1.el7.remi                                                 

箴絖ч∫cゃ潟鴻若障:
  audit-libs-python.x86_64 0:2.7.6-3.el7                                        
  checkpolicy.x86_64 0:2.5-4.el7                                                
  environment-modules.x86_64 0:3.2.10-10.el7                                    
  libX11.x86_64 0:1.6.5-1.el7                                                   
  libX11-common.noarch 0:1.6.5-1.el7                                            
  libXau.x86_64 0:1.0.8-2.1.el7                                                 
  libargon2.x86_64 0:20161029-2.el7                                             
  libcgroup.x86_64 0:0.41-13.el7                                                
  libsemanage-python.x86_64 0:2.5-8.el7                                         
  libxcb.x86_64 0:1.12-1.el7                                                    
  php72-php-cli.x86_64 0:7.2.3-2.el7.remi                                       
  php72-php-common.x86_64 0:7.2.3-2.el7.remi                                    
  php72-php-json.x86_64 0:7.2.3-2.el7.remi                                      
  php72-runtime.x86_64 0:1.0-1.el7.remi                                         
  policycoreutils-python.x86_64 0:2.5-17.1.el7                                  
  python-IPy.noarch 0:0.75-6.el7                                                
  scl-utils.x86_64 0:20130529-18.el7_4                                          
  setools-libs.x86_64 0:3.3.8-1.1.el7                                           
  tcl.x86_64 1:8.5.13-8.el7                                                     

絎篋障!

 

ゃ潟鴻若腆肴

maya
PHP 7.2 ゃ潟鴻若腆肴
# php72 -v
PHP 7.2.3 (cli) (built: Mar  2 2018 12:24:56) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

 

maya
PHP鴻腆肴
# which php72
/bin/php72

 

篏腆肴

maya
Hello world茵腓冴違ф荐若

 

1. vi潟潟сhello.php<ゃ篏

# vi hello.php

 

2. vic帥т札筝潟潟ュ

<?php echo"hello world \n"; ?>

 

3. PHP 7.2 絎茵

# php72 hello.php
Hello world

 

  • PHP 7.2 罔羣сゃ潟鴻若с鐚2018綛3憜鐚
  • yumсゃ潟鴻若絎純Remi’s RPM repository絎

 

鐚鐚若祉鐚鐚