Blogger Information
Blog 91
fans 0
comment 0
visits 203529
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
你造不? Linux 切换 php 版本方法提供如下
何澤小生的博客
Original
1221 people have browsed it

1.  php -v   查看当前 php 版本

01.png2.


2.   find / -name php  查看 php 文件位置

02.png


3.  ln -s /usr/local/php7.2/bin/php   /usr/sbin/php  创建 php 软连接到系统命令中

04.png


4.  export PATH=$PATH:/usr/local/php7.2/bin/php  将 php 命令添加到环境变量中,方便调用

04.png


或者 使用 vi /etc/profile  进行末尾写入  export PATH="$PATH:/usr/local/php7.2/bin/php"  

05.png


5.  php -v   查看当前 php 版本

03.png


完成了~~



Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post