High Teacher Videos Learn the dry goods
XFS File System format is highly efficient;
noatime: The Inode's access time is not updated on each access.
atime: Each access updates the Inode's access time, the default setting, and the Cancel option is noatime.
Kernel Optimizations:
vm.swappiness: Small value, reduce the swap usage, recommended% (5~10), physical memory use%90 to use swap memory;
vm.dirty_background_ratio,vm.dirty_ratio: kernel parameter, configure dirty data to write to disk size value, read and write frequentlyThe proposed value is set to Small (%5~%10), to avoid the instantaneous I/O write;
net.ipv4.tcp_tw_recycle,net.ipv4.tcp_tw_reuse: set to 1, reduce time_wait, improve TCP efficiency;
MySQL Configuration optimizations:
innodb_buffer_pool_size: If you use the InnoDB engine table, you can set it to physical memory%50~70;
innodb_file_per_table = 1: Use a separate table space;
Innodb_data_file_path = ibdata1:1g:autoextend: recommended set to 1G, in high concurrency scenarios, performance will be greatly improved;
innodb_log_file_size = 256M: set innodb_log_files_in_group=2, set log file size (for data recovery), and logthe number of copies saved;
key_buffer_size: recommended small, 32M or so, it is recommended to close Query_cache;
mp_table_size and max_heap_table_size set not too large, sort_buffer_size, join_buffer_size, read_buffer_size, read_rnd_buffer_size and other settings also do not too large;
Linux system security:
RootKit Backdoor Detection Tool, Rkhunter
https://rootkit.nl/software/rootkit-hunter/
https://rootkit.nl/software/rootkit-hunter/;
Installation:
./installer.sh--install
Rkhunter-c
Linux is attacked, troubleshooting ideas:
Vim/var/log/messages
Dmesq, based on memory information, real-time output;
Vim/var/log/secure, login log
Vim. Bash_history View user command log files;
Find the corresponding system files through the process PID:
Ps-ef
Ll/proc/25199/exe
Pidof sshd View PID
High teacher Videos Learn the dry goods