zoukankan      html  css  js  c++  java
  • Linux(centos)如何安装Zend Optimizer Zend Guard Loader

    很多php开源系统都是基于Zend Optimizer的,所以我们需要先安装Zend Optimizer。
    但在php5.3之后Zend Optimizer被Zend Guard Loader 取代了,所以我们就要安装Zend Guard Loader了。

    zend官网,以下是安装 Zend Guard Loader的具体方法

    安装前准备

    uname -m #查看centos操作系统位数
    php -v   #查看PHP版本
    

    zend官网找到适合自己系统(32位或64位)的对应PHP版本的 Zend Guard Loader 下载并解压缩.

    wget http://downloads.zend.com/guard/6.0.0/ZendGuardLoader-70429-PHP-5.4-linux-glibc23-x86_64.tar.gz
    tar -zxvf ZendGuardLoader-70429-PHP-5.4-linux-glibc23-x86_64.tar.gz
    cd ZendGuardLoader/ #进入解压后的目录
    cat README.txt#查看 README 文档.

    开始安装

    复制对应PHP版本文件夹下的 ZendGuardLoader.so 到PHP安装目录(/etc/httpd/modules 目录或 /usr/lib/httpd/modules 目录, 这两个目录其实是同一个位置)

    cp ZendGuardLoader.so /usr/lib/httpd/modules
    

    编辑php配置文件.在 php.ini 文件末尾添加几行配置项.

    vim /etc/php.ini
    zend_extension=/etc/httpd/modules/ZendGuardLoader.so 
    zend_loader.enable=1
    zend_loader.disable_licensing=0 
    zend_loader.obfuscation_level_support=3
    

    检测配置文件是否配置正确 

    php -s

    重启 Apache 或 Nginx

    systemctl restart httpd 或 
    systemctl restart php-fpm
    
  • 相关阅读:
    微信小程序使用wxParse解析html
    git基本操作
    thinkphp 静态缓存设置
    phpstudy 安装memcached服务和memcache扩展
    CSS超出部分显示省略号…代码
    小程序支付
    phpstorm 快捷键2
    thinkphp session设置
    cookie与session
    微信小程序 setData动态设置数组中的数据
  • 原文地址:https://www.cnblogs.com/Beyron/p/6189418.html
Copyright © 2011-2022 走看看