Changeset 927


Ignore:
Timestamp:
2012-06-26T06:21:04+02:00 (3 years ago)
Author:
moo
Message:

improve notes in ini

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache-zh-gb2312.ini

    r895 r927  
    11;; ±¾ÎļþÖ»ÊÇÀý×Ó, ÇëÔÚ php.ini ÀïÉèÖÃÒÔ±ãÉúЧ
    22[xcache-common]
    3 ;; °²×°³É zend extension (ÍƼö), ·¾¶Ò»°ãÊÇ "$extension_dir/xcache.so"
     3;; ¾¯¸æ: zend_extension* = *xcache* ±ØÐëÊÇËùÓÐ zend_extension*=* Ö®ÖеÚÒ»¸ö³öÏÖ
     4;; °²×°³É zend extension, ·¾¶Ò»°ãÊÇ "$extension_dir/xcache.so"
     5;; ²»ÍƼöʹÓà extension=xcache.so
     6
     7;; ·Ç windows Àý×Ó
     8;; install as zend extension, normally "$extension_dir/xcache.so"
    49zend_extension = /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so
    510;; Windows ϵͳÀý×Ó:
    611zend_extension_ts = c:/php/extensions/php_xcache.dll
    7 ;; »òÕßÄúÒ²¿É°Ñ XCache °²×°³É extension, ×¢ÒâÈ·±£ÄúµÄ extension_dir ÉèÖÃÕýÈ·, ²¢°Ñ xcache.so »òÕß php_xcache.dll ·Åµ½¸ÃĿ¼ÀïÃæ
    8 ; extension = xcache.so
    9 ;; »òÕß Win32 ϵͳ:
    10 ; extension = php_xcache.dll
     12;; ¶ÔÓÚа汾 PHP, _ts ºó׺ÒѾ­ÒƳý, ÇëʹÓÃÏÂÃæÕâÐÐ
     13zend_extension = c:/php/extensions/php_xcache.dll
    1114
    1215[xcache.admin]
     
    1417xcache.admin.user = "mOo"
    1518; xcache.admin.pass = md5($ÄúµÄÃÜÂë)
     19; µÇ¼ʹÓà $your_password
    1620xcache.admin.pass = ""
    1721
     
    2327; ½ûÓÃ: xcache.size=0
    2428; ÆôÓÃ: xcache.size=64M Ö®Àà (ÈÎÒâ>0µÄÖµ) ͬʱÇë×¢ÒâÄúµÄϵͳ mmap ÉÏÏÞ
    25 xcache.size  =                0M
     29xcache.size  =               60M
    2630; ½¨ÒéÉèÖÃΪ cpu Êý (cat /proc/cpuinfo |grep -c processor)
    2731xcache.count =                 1
     
    3438
    3539; ͬÉÏ, Ö»ÊÇÕë¶Ô±äÁ¿»º´æÉèÖÃ
    36 xcache.var_size  =            0M
     40xcache.var_size  =            4M
    3741xcache.var_count =             1
    3842xcache.var_slots =            8K
    39 ; ĬÈÏ, ÔÊÐí ini_set()
     43; xcache_*() º¯Êý ttl ²ÎÊýµÄĬÈÏÖµ
    4044xcache.var_ttl   =             0
    41 ; ×î´óttlÖµ
     45; ÏÞÖÆ xcache_*() º¯Êý ttl ²ÎÊý²»³¬¹ý´ËÉèÖÃ. 0=²»ÏÞÖÆ
    4246xcache.var_maxttl   =          0
    4347xcache.var_gc_interval =     300
    4448
    45 ; ½ö²âÊÔÓÃ
    46 xcache.test =                Off
    4749; /dev/zero ʱÎÞЧ
    4850xcache.readonly_protection = Off
    49 ; ¶ÔÓÚ *nix ϵͳ, xcache.mmap_path ÊÇÎļþ·¾¶¶ø²»ÊÇĿ¼, (¿ÉÒÔ²»´æÔÚ µ«ÊDZØÐëÄÜ´´½¨).
    50 ; Èç¹ûÄúÆÚÍûÆôÓà ReadonlyProtection, ¿ÉÒÔʹÓÃÀàËÆ "/tmp/xcache"
    51 ; 2 ¸ö php ×é²»»á¹²Ïíͬһ¸ö /tmp/xcache
     51; ¶ÔÓÚ *nix ϵͳ, xcache.mmap_path ÊÇÎļþ·¾¶¶ø²»ÊÇĿ¼. (×Ô¶¯´´½¨/¸²¸Ç)
     52; Èç¹ûÄúÆÚÍûÆôÓà ReadonlyProtection, ±ØÐë±ÜÃâʹÓà "/dev/*", ¿ÉÒÔʹÓÃÀàËÆ "/tmp/xcache"
     53; ²»Í¬ php ½ø³Ì×é²»»á¹²Ïíͬһ¸ö /tmp/xcache
    5254; ¶ÔÓÚ Win32 ϵͳ, xcache.mmap_path=ÄäÃûMAPÃû×Ö, ²»ÊÇÎļþ·¾¶. ½¨ÒéʹÓà XCache ×ÖÑÛ±ÜÃâ¸úÆäËûÈí¼þ³åÍ»
    5355xcache.mmap_path =    "/dev/zero"
     
    5961xcache.coredump_directory =   ""
    6062
     63; ÆôÓÃʵÑéÐÔ¹¦ÄÜ (Èç¹ûÓÐ)
     64xcache.experimental =        Off
     65
     66; per request settings. ¿ÉÒÔ ini_set, .htaccess µÈ
    6167xcache.cacher =               On
    6268xcache.stat   =               On
     
    6470
    6571[xcache.coverager]
     72; ±¾¹¦ÄÜ¿ªÆôºó½µµÍÔËÐÐÐÔÄÜ
     73; ¾¡ÔÚ xcache.coverager == On && xcache.coveragedump_directory == "·Ç¿ÕÖµ" ʱ±¾¹¦ÄܲŻáÆôÓÃ
    6674
    67 ; Èç¹û xcache.coveragedump_directory ÉèÖÃΪ¿ÕÔò±¾ÉèÖÃ×Ô¶¯Îª Off
     75; per request settings. ¿ÉÒÔ ini_set, .htaccess µÈ
     76; ÆôÓôúÂëÁ÷³Ì¸²¸ÇÃæÐÅÏ¢²É¼¯ÒÔ¼° xcache_coverager_start/stop/get/clean() µÈº¯Êý
    6877xcache.coverager =          Off
    6978
     79; ½öÔÚ php ini ÎļþÄÚÉèÖÃ
    7080; ÇëÈ·±£±¾Ä¿Â¼Äܱ» coverage viewer ½Å±¾¶ÁÈ¡ (×¢Òâ open_basedir)
    71 ; ÒÀÀµÓÚ xcache.coverager=On
    7281xcache.coveragedump_directory = ""
  • trunk/xcache.ini

    r895 r927  
     1;; this is an example, it won't work unless properly configured into php.ini
    12[xcache-common]
    2 ;; install as zend extension (recommended), normally "$extension_dir/xcache.so"
     3;; WARNING: zend_extension* = *xcache* MUST be the first(above) of all zend_extension*=*
     4;; using extension=xcache.so is not recommended
     5
     6;; non-windows example
     7;; update xxx accordingly
    38zend_extension = /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so
    4 ; zend_extension_ts = /usr/local/lib/php/extensions/non-debug-zts-xxx/xcache.so
    5 ;; For windows users, replace xcache.so with php_xcache.dll
     9;; windows example:
    610zend_extension_ts = c:/php/extensions/php_xcache.dll
    7 ;; or install as extension, make sure your extension_dir setting is correct
    8 ; extension = xcache.so
    9 ;; or win32:
    10 ; extension = php_xcache.dll
     11;; for newer PHP, _ts is removed, use the following line instead
     12zend_extension = c:/php/extensions/php_xcache.dll
    1113
    1214[xcache.admin]
    1315xcache.admin.enable_auth = On
    1416xcache.admin.user = "mOo"
    15 ; xcache.admin.pass = md5($your_password)
     17; set xcache.admin.pass = md5($your_password)
     18; login use $your_password
    1619xcache.admin.pass = ""
    1720
     
    3740xcache.var_count =             1
    3841xcache.var_slots =            8K
    39 ; default ttl
     42; default value for $ttl parameter of xcache_*() functions
    4043xcache.var_ttl   =             0
     44; hard limit ttl that cannot be exceed by xcache_*() functions. 0=unlimited
    4145xcache.var_maxttl   =          0
    4246xcache.var_gc_interval =     300
     
    4448; N/A for /dev/zero
    4549xcache.readonly_protection = Off
    46 ; for *nix, xcache.mmap_path is a file path, not directory.
    47 ; Use something like "/tmp/xcache" if you want to turn on ReadonlyProtection
    48 ; 2 group of php won't share the same /tmp/xcache
     50; for *nix, xcache.mmap_path is a file path, not directory. (auto create/overwrite)
     51; Use something like "/tmp/xcache" instead of "/dev/*" if you want to turn on ReadonlyProtection
     52; different process group of php won't share the same /tmp/xcache
    4953; for win32, xcache.mmap_path=anonymous map name, not file path
    5054xcache.mmap_path =    "/dev/zero"
     
    5559xcache.coredump_directory =   ""
    5660
    57 ; per request settings
     61; enable experimental documented features for each release if available
     62xcache.experimental =        Off
     63
     64; per request settings. can ini_set, .htaccess etc
    5865xcache.cacher =               On
    5966xcache.stat   =               On
    6067xcache.optimizer =           Off
    6168
    62 xcache.test =                Off
    63 xcache.experimental =        Off
     69[xcache.coverager]
     70; enabling this feature will impact performance
     71; enable only if xcache.coverager == On && xcache.coveragedump_directory == "non-empty-value"
    6472
    65 [xcache.coverager]
    66 ; per request settings
    67 ; enable coverage data collecting for xcache.coveragedump_directory and xcache_coverager_start/stop/get/clean() functions (will hurt executing performance)
     73; per request settings. can ini_set, .htaccess etc
     74; enable coverage data collecting and xcache_coverager_start/stop/get/clean() functions
    6875xcache.coverager =          Off
    6976
    70 ; ini only settings
     77; set in php ini file only
    7178; make sure it's readable (open_basedir is checked) by coverage viewer script
    72 ; requires xcache.coverager=On
    7379xcache.coveragedump_directory = ""
Note: See TracChangeset for help on using the changeset viewer.