wget非交互方式下载http或ftp文件 /etc/networking/ifcfg-eth#修改网络参数 rpm -i rpm文件 安装pkg

createrepo pkg生成yum repo 或cp -r /media/cdrom /opt/RHEL以产生yum源 /etc/yum/yum.repos.d修改yum参数 采用file://形式生成本地yum源

SELinux getenforce setenforce 0 vi /etc/selinux/config 防火墙 iptables -F service iptables stop | start | restart yum修改源后 yum clean all yum makecache 安装httpd yum install httpd 修改httpd vi /etc/httpd/conf/httpd.conf

chkconfig --level 35 httpd on

iptables iptables -L --line-numbers iptables -I(A) INPUT -p tcp -s xxxx -d xxxx --sport xx --dport xx -j ACCEPT(DROP) iptable -P INPUT DROP