Skip to content

Instantly share code, notes, and snippets.

@markyun
Last active December 31, 2015 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markyun/7938614 to your computer and use it in GitHub Desktop.
Save markyun/7938614 to your computer and use it in GitHub Desktop.
linux 和unix 下 常用命令
//修改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