未读消息 : 忽略
查看全部
具体操作方法:
1.打开终端命令行模式。
2.输入以下命令检查是否存在5.6 版本。
apt-cachesearch php
3.如果没有可使用ppa增加源。
sudo apt-get install python-software-propertiessudo add-apt-repository ppa:ondrej/phpsudo apt-getupdate
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt-getupdate
4.再输入以下命令安装php5.6-fpm即可。
sudoapt-get-yinstallphp5.6-fpmphp5.6-mcryptphp5.6-mbstringphp5.6-curlphp5.6-cliphp5.6-mysqlphp5.6-gdphp5.6-xml
sudoapt-get-yinstallphp5.6-fpmphp5.6-mcryptphp5.6-mbstringphp5.6-curlphp5.6-cliphp5.6-mysqlphp5.6
-gdphp5.6-xml
5.安装成功后,可以通过以下方式查看当前版本。
php -v
在线客服
在线客服服务时间:9:00-18:00
客服热线
198991158157*24小时客服服务热线
关注微信