• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

centos 7 下安装php 7

php 搞代码 3年前 (2022-01-22) 16次浏览 已收录 0个评论

这篇文章介绍的内容是关于centos 7 下安装php 7 ,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下

1 安装nginx

 yum install nginx

2 安装epel源

  yum install epel-release    wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm && rpm -Uvh remi-release-7.rpm

3 安装php

yum –enablerepo=remi-safe -y install php71

4 安装依赖

yum install php71-php-mcrypt php71-php-mcrypt php71-php-json php71-php-mbstring php71-php-xml php71-php-soap php71-php-xmlrpc php71-php-simplexml                      php71-php-curl php71-php-mysqlnd

5 安装php-fpm

 yum --enablerepo=remi-safe -y <strong>+本文来源gao@daima#com搞(%代@#码网</strong><pre>搞代gaodaima码

install php71-php-fpm

6 设置开机启动

systemctl start php71-php-fpm     systemctl status php71-php-fpm.service    systemctl enable php71-php-fpm

7 配置文件

/etc/opt/remi/php71/
/etc/opt/remi/php71/php-fpm.d/www.conf

相关推荐:

centos7 YUM 安装PHP5.6

mac下安装php7详解

centos7手动安装PHP5.6.33详解

以上就是centos 7 下安装php 7 的详细内容,更多请关注搞代码gaodaima其它相关文章!


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:centos 7 下安装php 7

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址