redhat as4 linux是最小化安装,注意:我安装的时候禁用了SELinux和防火墙,安装完重启后步骤如下:
1. 关闭IPV6
# vi /etc/modprobe.conf (修改相应配置文件,添加如下行到文尾)
alias net-pf-10 off
alias ipv6 off
2. 关闭一些不需要的服务进程
# ntsysv
推荐保留的服务:
crond (定时监控程序)
irqbalance (当服务器CPU为S.M.P架构或支持双核心、HT技术时,才需开启,否则关闭。)
microcode_ctl
network (网络服务)
random
sendmail (邮件)
sshd (远程连接)
syslog (系统日志)
3. 安装gcc编译器和其它组件安装包
# rpm -ivh cpp-3.4.6-3.i386.rpm
# rpm -ivh glibc-kernheaders-2.4-9.1.98.EL.i386.rpm
# rpm -ivh glibc-headers-2.3.4-2.25.i386.rpm
# rpm -ivh glibc-devel-2.3.4-2.25.i386.rpm
# rpm -ivh gcc-3.4.6-3.i386.rpm
# rpm -ivh libstdc++-devel-3.4.6-3.i386.rpm
# rpm -ivh gcc-c++-3.4.6-3.i386.rpm
# rpm -ivh ncurses-devel-5.4-13.i386.rpm
# rpm -ivh zlib-devel-1.2.1.2-1.2.i386.rpm
# rpm -ivh libidn-0.5.6-1.i386.rpm
# rpm -ivh libidn-devel-0.5.6-1.i386.rpm
# rpm -ivh curl-7.12.1-8.rhel4.i386.rpm
# rpm -ivh e2fsprogs-devel-1.35-12.4.EL4.i386.rpm
# rpm -ivh krb5-devel-1.3.4-27.i386.rpm
# rpm -ivh openssl-devel-0.9.7a-43.10.i386.rpm
# rpm -ivh curl-devel-7.12.1-8.rhel4.i386.rpm
文章来自互联网,感谢作者。
阅读(622) | 评论(0) | 转发(0) |