虛擬機Linux模板機配置
軟件包組:Base,Compatibility libararies,Debugging tools,Development tools
軟件包:tree nmap syssate lrzsz doc2unix telnet
2、ip地址,網關,用戶名和密碼,主機名
3、yum源,epel源
4、關閉selinux和iptables
5、ssh優化
vim /etc/ssh/ssh_config #解決有時候ssh慢的問題
PermitEmptyPasswords no
UseDNS no
GSSAPIAuthentication no
#/etc/init.d/ssh relaod
6、精簡開機系統啟動
for list in `chkconfig --list`| grep "3:on"|awk '{print $1}'|grep -VE
"crond|network|rsyslog|sshd|sysstate"`;do checkconfig $list off;done
7、時間同步
/usr/sbin/ntpdate time.nist.gov
*/5 * * * * * /usr/sbin/ntpdate time.nist.gov
8、字符集
cp /etc/sysconfig/i18n /etc/sysconfig/i18n.ori
echo 'LANG="zh_CN.UTF-8"' > echo /etc/sysconfig/i18n
. /etc/sysconfig/i18n
9、文件描述符
echo '* - nofile 65535' >> /etc/security/limits.conf
10、mysql字符集
character-set-server=utf8
init-connect='set names utf8'
collation-server=utf-8_general_ci
虛擬機Linux模板機配置