跳轉到內容
View in the app

A better way to browse. Learn more.

PHP論壇人

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

精選回覆

發表於

------------------------
数据库优化
------------------------

依自己的云主机内存大小,做出相应的内存选择,宝塔面板将自动调整底下的数据

 

例如 我用2GB内存的云主机

宝塔面板 -> 软件商店 -> 已安装 -> MySQL 8.0 -> 设置 -> 性能调整 -> 优化方案 -> 2-4GB

-> 保存 -> 重启数据库

1.png

 

 

--------------------------------
宝塔面板给的数据库优化设置
--------------------------------

优化方案 2 - 4 GB
key_buffer_size = 256M
table_open_cache = 192
sort_buffer_size = 768K
read_buffer_size = 768K
read_rnd_buffer_size = 512K
thread_cache_size = 96
query_cache_size = 128M
tmp_table_size = 384M
max_connections = 200
innodb_buffer_pool_size = 384M
innodb_log_buffer_size = 16M

join_buffer_size = 2048K
thread_stack = 256K
binlog_cache_size = 64K

 

 

 

优化方案 4 - 8 GB
key_buffer_size = 384M
table_open_cache = 384
sort_buffer_size = 1024K
read_buffer_size = 1024K
read_rnd_buffer_size = 768K
thread_cache_size = 128
query_cache_size = 192M
tmp_table_size = 512M
max_connections = 300
innodb_buffer_pool_size = 512M
innodb_log_buffer_size = 16M

join_buffer_size = 2048K
thread_stack = 256K
binlog_cache_size = 128K
 

本文章最後於,由Jack編輯

建立帳號或登入後發表意見

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.