(Five days) Summary: How is the 1:linux system optimized? 1. Using aliases (alias) alias aliases for root user, configure; for normal users on/ROOT/.BASERC:/etc/profile or/etc/. BASERC configuration; effective:source/etc/profile 2. Close selinux 3.setenforece 1 enabled; 0 (warning, not enabled) 4.gereforce See if SELinux changes are in effect 3. Using init 3 1. runsevel View current system operating level 2.init 3 4. Boot from 1.chkconfig -list View 3.chkconfig sshd on/off 5. Time and online 1.date Show time & nbsp; date-s &nbsP Modified time 2.ntpdate time.nist.gov Show time & nbsp; ntpdate time.nist.gov >/dev/null 2>&1 Do not display on screen 6. Modify the configuration of sshd (port; disable root user ...) 1, to back up the/etc/ssh/sshd_config configuration files before the system configuration operation & nbsp 2, content to be modified port default is 22 & nbsp permitrootlogin allow root telnet &NBSP ; permitemptypasswords allow blank password login usedns &NB Sp If you are using dns  3, modify the system configuration file to restart the service.  4, disconnecting an already connected SSH connection, verifying the success of the configuration 7.yum Source Update 1. Go to NetEase cloud image with 8. Hide Linux Landing version information 1. Command:>/etc/issue.net 9.history Display quantity & nbsp 1. Set Linux default history number command: Export histsize=5 & nbsp Put it on the/etc/profile, and take effect forever. 2. Set the history of ~/.bash_history Command: Expor histfilesize=5 placed in/etc/profile, permanently effective. 10. Time Out and exit 1.export tmout 300 2.echo "Export tmout" >>/etc/profile 3.source/etc/profile 11. Character set encoding 1. Backup cp 2. Modify the Sed-i ' s#lang= ' en_US. Utf-8#lang= "ZH_CN. Utf-8#g '/etc/sysconfig/i18n 3. Make configuration effective source/etc/sysconfig/i18n 4. View Code echo $LANG 12. Lock critical system files against tampering 1. Command: Chattr + I file 2. Release command: Chattr-i file you is made of what does!!!!!!!! -------kay
Linux system optimization