linux基本配置

1 IP地址配置:
[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0
2 關閉防火牆
[root@localhost ~]# iptables server stop
停止防火牆服務(臨時生效)
[root@localhost ~]# chkconfig iptables off
這是重啓後生效
[root@localhost ~]# reboot
重啓服務器
3 關閉selinux
root@localhost ~]# vim /etc/selinux/config
SELINUX=disabled
把enforcing改爲disabled
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章