RHEL的一些基本命令

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章