• SAE php 研究(2)


    1.在SAE新建项目打印出phpinfo
    <?php 
    print phpinfo();
    ?>
    2.
    可见:PHP Version 5.3.8
    【使用的是php5.3.8编译的】
    3.
    可见:
    System SAE LINUX ENVIRONMENT
    Build Date May 19 2013 
    【说明是一台共享的虚拟机,创建于2013.05.19】
    4.
    可见:Thread Safety disabled
    【可能使用的是fastcig模式】
    5.
    可见:
    Zend Memory Manager enabled
    Zend Multibyte Support disabled
    IPv6 Support disabled
    Registered PHP Streams compress.zlib, php, file, glob, data, zip, http, https, saemc, saestor, saekv
    Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
    Registered Stream Filters zlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, convert.iconv.*, mcrypt.*, mdecrypt.*
    6.
    可见:
    apache2handler
    【说明使用了--with-apxs2[=FILE]   参数】
    7.
    可见:
    Max Requests Per Child: 256 - Keep Alive: off - Max Per Connection: 100

    该apache限制为每个子进程可以处理256次请求,每个线程最大连接数为100
    进程数的最大值由MaxClients控制,在Apache1.3中最大只能设置为256,但在Apache2.0中,可以通过在配置开头增加ServerLimit项目来突破256的限制,此时必须MaxClients ≤ ServerLimit ≤ 20000
    MaxRequestsPerChild用来控制每个进程在处理了多少次请求之后自动销毁
    Keep Alive: off

    8.
    可见:
    Timeouts Connection: 20 - Keep-Alive: 5

    MaxVhostClients  100 
    Keep-Alive: 5 这个应该没意义,因为Keep Alive: off

    9.
    可见:
    Loaded Modules core prefork http_core mod_so mod_mime mod_dir mod_log_config mod_setenvif mod_headers mod_filter mod_deflate mod_rewrite mod_php5 mod_extract_forwarded mod_usertrack mod_saestat mod_saeenv mod_auth_basicx mod_authz_hostx mod_authn_memory mod_authz_user mod_appconfig mod_applimit mod_execlimit mod_appsense
    【该apache2支持上面这些模块】
    10.Configuration中开启的模块
    APC Support enabled
    BCMath support enabled
    ctype functions enabled
    cURL support enabled
    date/time support enabled
    DOM/XML enabled
    Regex Library Bundled library enabled
    EXIF Support enabled
    Input Validation and Filtering enabled
    GD Support enabled
    gmp support enabled
    hash support enabled
    iconv support enabled
    json support enabled
    kvclient support enabled
    libXML support active
    Multibyte Support enabled
    Multibyte (japanese) regex support enabled
    mcrypt support enabled
    memcache support enabled
    MySQL Support enabled
    MysqlI Support enabled
    OpenSSL support enabled
    PCRE (Perl Compatible Regular Expressions) Support enabled
    PDO support enabled
    PDO Driver for MySQL enabled
    Reflection enabled
    saecounter support enabled 【SAE自己开发的php组件】
    Session Support enabled
    Simplexml support enabled
    SPL support enabled
    Dynamic Library Support enabled
    Tokenizer Support enabled
    XML Support active
    yaf support enabled
    Zip enabled
    ZLib Support enabled
    11.支持的php 环境变量
    Variable Value
    _SERVER["MEF_PROXY_ADDR"]
    _SERVER["has_apphash"]
    _SERVER["ApplimitOutOfCon"]
    _SERVER["ApplimitOutOfMem"]
    _SERVER["SCRIPT_URL"]
    _SERVER["SCRIPT_URI"]
    _SERVER["HTTP_X_FORWARDED_FOR"]
    _SERVER["HTTP_HOST"]
    _SERVER["HTTP_APPNAME"]
    _SERVER["HTTP_APPVERSION"]
    _SERVER["HTTP_ACCESSKEY"]
    _SERVER["HTTP_APPHASH"]
    _SERVER["HTTP_MYSQLPORT"]
    _SERVER["HTTP_APPCOOKIE"]
    _SERVER["HTTP_APPSRVC"]
    _SERVER["HTTP_CONNECTION"]
    _SERVER["HTTP_ACCEPT"]
    _SERVER["HTTP_USER_AGENT"]
    _SERVER["HTTP_ACCEPT_ENCODING"]
    _SERVER["HTTP_ACCEPT_LANGUAGE"]
    _SERVER["HTTP_ACCEPT_CHARSET"]
    _SERVER["PATH"]
    _SERVER["SERVER_SIGNATURE"]
    _SERVER["SERVER_SOFTWARE"]
    _SERVER["SERVER_NAME"]
    _SERVER["SERVER_ADDR"]
    _SERVER["SERVER_PORT"]
    _SERVER["REMOTE_ADDR"]
    _SERVER["DOCUMENT_ROOT"]
    _SERVER["SERVER_ADMIN"]
    _SERVER["SCRIPT_FILENAME"]
    _SERVER["REMOTE_PORT"]
    _SERVER["GATEWAY_INTERFACE"]
    _SERVER["SERVER_PROTOCOL"]
    _SERVER["REQUEST_METHOD"]
    _SERVER["QUERY_STRING"]
    _SERVER["REQUEST_URI"]
    _SERVER["SCRIPT_NAME"]
    _SERVER["PHP_SELF"]
    _SERVER["REQUEST_TIME"]
    _SERVER["HTTP_SECRETKEY"]
    _ENV["LD_PRELOAD"]
    _ENV["LD_LIBRARY_PATH"]
    _ENV["PWD"]
    _ENV["LANG"]
    _ENV["DEBIAN_FRONTEND"]
    _ENV["APT_LISTCHANGES_FRONTEND"]
    _ENV["APT_LISTBUGS_FRONTEND"]
    _ENV["_"]
    _ENV["TMPDIR"]

  • 相关阅读:
    GIT里 SSH和HTTPS的区别
    迷宫 DFS 算法
    全排列 DFS 模板
    独立岛问题的BFS,DFS求解
    红丝绒蛋糕
    BFS,DFS伪代码
    【转】一个时代的剪影----汉
    AlbertRender --- 实时&离线全局光照渲染器(一)
    【linux驱动笔记】linux模块机制浅析
    【linux驱动笔记】字符设备驱动相关数据结构与算法
  • 原文地址:https://www.cnblogs.com/snake-hand/p/3146921.html
Copyright © 2020-2023  润新知