Last active
December 31, 2015 05:09
-
-
Save markyun/7938614 to your computer and use it in GitHub Desktop.
linux 和unix 下 常用命令
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//修改ip地址 | |
vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
DEVICE=eth0 | |
ONBOOT="yes" | |
BOOTPROTO=none | |
IPADDR="192.168.1.80" | |
NETMASK=255.255.255.0 | |
GATEWAY=192.168.1.1 | |
TYPE=Ethernet | |
USERCTL=no | |
PEERDNS=yes | |
IPV6INIT=no | |
修改后如果是redhat系的发行版执行 | |
service network restart 重启网卡 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment