optimize.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. {template 'common/header'}
  2. <div class="optimize">
  3. <ul class="we7-page-tab"></ul>
  4. <div class="alert we7-page-alert">
  5. <p><i class="wi wi-info-sign"></i> 启用内存优化功能将会大幅度提升程序性能和服务器的负载能力,内存优化功能需要服务器系统以及PHP扩展模块支持</p>
  6. <p><i class="wi wi-info-sign"></i> 目前支持的内存优化接口有 Memcache、Redis、eAccelerator、opcache<br><p>
  7. <p><i class="wi wi-info-sign"></i> 其中eAccelerator在PHP5.5版本以下可以开启,opcache在PHP5.5版本以上可以开启<p>
  8. <p><i class="wi wi-info-sign"></i> 内存接口的主要设置位于 config.php 当中,您可以通过编辑 config.php 进行高级设置<p>
  9. </div>
  10. <div class="clearfix">
  11. <div class="panel we7-panel">
  12. <div class="panel-heading">当前内存工作状态</div>
  13. <table class="table we7-table table-hover site-list">
  14. <col width="120px"/>
  15. <col width=""/>
  16. <col width=""/>
  17. <col width=""/>
  18. <tr>
  19. <th>内存接口</th>
  20. <th>PHP 扩展环境</th>
  21. <th>Config 设置</th>
  22. <th></th>
  23. </tr>
  24. {loop $extensions $key $extension}
  25. <tr>
  26. <td><span class="label label-success">{$key}</span></td>
  27. <td>
  28. {if $extension['support']}
  29. 支持
  30. {else}
  31. 不支持
  32. {/if}
  33. </td>
  34. <td>
  35. {if $extension['status']}
  36. 已开启
  37. {else}
  38. 未开启
  39. {/if}
  40. {if $key == 'opcache' && $extensions['eAccelerator']['status'] && $extensions['opcache']['status']}
  41. <span class="label label-danger">eAccelerator 不可与 opcache同时开启</span>
  42. {/if}
  43. </td>
  44. <td>
  45. {if $extension['status'] && $extension['clear']}
  46. <a href="{$extension['clear']['url']}">{$extension['clear']['title']}</a>
  47. {/if}
  48. {$extension['extra']}
  49. </td>
  50. </tr>
  51. {/loop}
  52. </table>
  53. </div>
  54. <div class="panel we7-panel">
  55. <div class="panel-heading">数据库读写分离工作状态</div>
  56. <table class="table we7-table table-hover site-list">
  57. <tr>
  58. <td width="200">读写分离状态</td>
  59. <td class="text-left">
  60. {if $slave['slave_status']}
  61. <span class="label label-success">已开启</span>
  62. {else}
  63. <span class="label label-danger">未开启</span>
  64. {/if}
  65. </td>
  66. <tr>
  67. <td>session存储方式</td>
  68. <td class="text-left">
  69. {if $extensions['memcache']['status'] && $setting['memcache']['session'] == 1}
  70. <span class="label label-danger">memcache</span>
  71. {else if $extensions['redis']['status'] && $setting['redis']['session'] == 1}
  72. <span class="label label-success">redis</span>
  73. {else}
  74. <span class="label label-success">mysql</span>
  75. {/if}
  76. </td>
  77. </tr>
  78. <tr>
  79. <td>禁用从数据库的数据表</td>
  80. <td class="text-left">
  81. {if !empty($slave['common']['slave_except_table'])}
  82. {loop $slave['common']['slave_except_table'] $row}
  83. {$row}
  84. {/loop}
  85. {else}
  86. 暂无
  87. {/if}
  88. </td>
  89. </tr>
  90. </table>
  91. </div>
  92. <div class="panel we7-panel">
  93. <div class="panel-heading">远程访问代理设置</div>
  94. <table class="table we7-table table-hover site-list">
  95. <tr>
  96. <td width="200">状态</td>
  97. <td class="text-left">
  98. {if !empty($setting['proxy']['host'])}
  99. <span class="label label-success">已开启</span>
  100. {else}
  101. <span class="label label-danger">未开启</span>
  102. {/if}
  103. </td>
  104. </tr>
  105. {if !empty($setting['proxy']['host'])}
  106. <tr>
  107. <td>远程地址</td>
  108. <td class="text-left">{$setting['proxy']['host']} 因安全原因,密码不予显示</td>
  109. </tr>
  110. {/if}
  111. </table>
  112. </div>
  113. <br />
  114. </div>
  115. </div>
  116. {template 'common/footer'}