您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

PHP7在linux下的安装步骤

2025/11/25 15:38:07发布16次查看
安装mcrypt:
yum install -y php-mcrypt libmcrypt libmcrypt-devel
升级bison:
cd /var/soft/wget http://ftp.gnu.org/gnu/bison/bison-2.6.4.tar.gztar -xvzf bison-2.6.4.tar.gz cd bison-2.6.4./configuremake && make install
升级re2c,解决you will need re2c 0.13.4 or later if you want to regenerate php parsers.错误:
cd /var/soft/wget http://sourceforge.net/projects/re2c/files/re2c/0.13.5/re2c-0.13.5.tar.gz/downloadtar zxf re2c-0.13.5.tar.gz && cd re2c-0.13.5./configuremake && make install
编译php7:
# 创建目录mkdir -p /var/soft/php7cd /var/soft/php7# 下载源代码git clone http://git.php.net/repository/php-src.gitcd php-src./buildconf# 配置参数./configure
# 编译安装make && sudo make install
查看php版本:
/usr/local/php7/bin/php -v
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product