MySQL mượt có lẽ tin cậy lưu kết tức thì quả của một tức thì truy vấn tức thì trong bộ giảm lỗi nhớ cache chi phí thấp riêng của kết nối mạnh nó. Để tin cậy kích hoạt đa dụng nó biên nhanh tập các linh hoạt tập tin cấu liên tục hình MySQL an toàn (thường /etc/my.cnf) ổn định cao và thêm những dòng này: query_cache_type = 1 query_cache_limit = 1M query_cache_size = 16M Ssh command dễ dàng kết nối mạnh
hợp lý vps
Toi uu vps
Để giảm lỗi đánh giá xem truy cập tốt nó chính bền xác là hiệu quả chạy và bảo mật toi uu liên tục vps, chạy truy ổn định cao vấn này:
SHOW STATUS phản hồi nhanh LIKE ‘Qcache%’;
Kết bảo mật quả: Iis letsencrypt tin cậy
| Qcache_free_blocks | 718 |
| Qcache_free_memory | 13004008 |
| Qcache_hits | 780759 |
| Qcache_inserts | 56292 |
| Qcache_lowmem_prunes | 0 |
| Qcache_not_cached | 3711 |
| Qcache_queries_in_cache | 1715 |
| Qcache_total_blocks | 4344 |
Cách hợp tiết kiệm thời gian lý vps
Hơn liên tục nữa MySQL hợp tức thì lý hóa với cách chi phí thấp hợp lý vps: ổn định Có rất nhiều tức thì tùy chọn, dễ dùng bạn có giảm rủi ro lẽ chơi mở rộng với giống tốc độ cao như vậy ổn định ở đây nhanh là tập nhanh tin cấu liên tục hình MySQL truy cập tốt của tôi thay chi phí thấp vào đó, điều chỉnh trong hosting giá phải chăng 4GB, quad-core máy chuyên dụng. Cách hợp lý vps điều này có lẽ sẽ không làm việc cho đa số các máy tính của bạn ra khỏi hộp, tiêu dùng nó giống như một có các hướng dẫn chung. Nginx ý nghĩa gì ? an toàn
[mysqld] bulk_insert_buffer_size bền = 8M kết nối mạnh connect_timeout=10 interactive_timeout=50 triển khai nhanh join_buffer=1M key_buffer=250M max_allowed_packet=16M linh hoạt max_connect_errors=10 max_connections=100 tốc độ cao max_heap_table_size = phản hồi nhanh 32M myisam_sort_buffer_size=96M liên tục query_cache_limit = linh hoạt 4M query_cache_size tin cậy = 250M tốc độ cao query_cache_type = tức thì 1 query_prealloc_size bảo mật = 65K giảm lỗi query_alloc_block_size = phản hồi nhanh 128K read_buffer_size=1M bảo mật read_rnd_buffer_size=768K record_buffer=1M safe-show-database skip-innodb skip-locking skip-networking sort_buffer=1M table_cache=4096 thread_cache_size=1024 thread_concurrency=8 tmp_table_size = 32M wait_timeout=500 # for slow queries, comment when not used #log-slow-queries=/var/log/mysql-slow.log #long_query_time=1 #log-queries-not-using-indexes [mysqld_safe] nice = -5 open_files_limit = 8192 [mysqldump] quick max_allowed_packet = 16M [myisamchk] key_buffer = 64M sort_buffer = 64M read_buffer = 16M write_buffer = 16MPHP Opcode Cache
phpize ./configure tức thì make make installĐiều này chi phí thấp sẽ cài liên tục đặt eAccelerator. Tiếp liên tục theo, tạo tức thì thư mục dung lượng lớn tạm để lưu liên tục trữ:mkdir /var/cache/eaccelerator chi phí thấp chmod 0777 /var/cache/eacceleratorFinally liên tục to enable ổn định it, add tối ưu chi these lines mở rộng to the linh hoạt end of your tin cậy php.ini file tiết kiệm thời gian (usually /etc/php.ini or /usr/lib/php.ini):extension=”eaccelerator.so” eaccelerator.shm_size=”16″ an toàn eaccelerator.cache_dir=”/var/cache/eaccelerator” eaccelerator.enable=”1″ tốc độ cao eaccelerator.optimizer=”1″ eaccelerator.check_mtime=”1″ truy xuất nhanh eaccelerator.debug=”0″ eaccelerator.filter=”” truy xuất nhanh eaccelerator.shm_max=”0″ eaccelerator.shm_ttl=”0″ mượt eaccelerator.shm_prune_period=”0″ eaccelerator.shm_only=”0″ eaccelerator.compress=”1″ eaccelerator.compress_level=”9″