linux基礎優化1

linux 基礎優化:linux


關閉 SElinux   /etc/selinux/configide

設置運行級別爲文本:優化

關閉 防火牆  /etc/init.d/iptables stop (status,start) ,.net

關機及重啓命令 關機:shutdwon -h now (halt,init 0)  重啓: reboot 或init 6命令行

調整字符集:  /etc/sysconfig/i18nip

設置帳號超時時間: export TMOUT=10   10秒博客

設置linux命令行顯示歷史記錄條數:  history -c  清除全部   清除某一個: history -d -5 (後邊的數字可變,用於指定第幾條)it

                                  export HISTSIZE=5 (只顯示5條)table

隱藏linux版本信息:  首先,cat /etc/issue  則會顯示信息, 直接用  > /etc/issue 清楚內容, > /etc/issue.netclass

vmware 克隆及克隆後不能獲取IP地址的解決方法:見51cto博客.

相關文章
相關標籤/搜索