1. 配置yum源:

    rpm -Uvh http://file.job520.net/linux/yum-repository/php-epel-release-latest-7.noarch.rpm
    rpm -Uvh http://file.job520.net/linux/yum-repository/php-webtatic-release.rpm
    yum repolist enabled | grep "webtatic*"
  2. 安装:

    yum -y install php71w php71w-fpm
    yum -y install php71w-mbstring php71w-common php71w-gd php71w-mcrypt
    yum -y install php71w-mysqlnd php71w-xml php71w-cli php71w-devel
    yum -y install php71w-pecl-memcached php71w-pecl-redis php71w-opcache
  3. 启动php-fpm:
    systemctl start php-fpm

文档更新时间: 2024-04-19 15:11   作者:lee