Linux配置IP
配置IP
1.修改/etc/sysconfig/network/ifcfg-eth0文件
BOOTPROTO=’static’//配置静态IP非DHCP
IPADDR=192.168.1.138
NETMASK=255.255.255.0
配置网关
2.新增或修改/etc/sysconfig/network/routes 设置网关
default 192.168.1.100
配置DNS
3.修改/etc/resolv.conf 设置DNS
nameserver 8.8.8.8
nameserver 8.8.4.4
重启网络
4.重新加载网络服务
service network restart
查看进程占用的内存
top 可选参数-u按用户、-p按线程id查找
按列排序shift + < 或者 >
相关推荐
windzoone 2020-07-29
kenson 2020-05-15
dahege 2020-02-22
furongwei 2020-02-13
zealfish 2019-12-10
wqx 2016-05-31
cuixingwudi 2008-08-06
LychieFan 2007-12-09
Linuxest 2007-12-09
梦想天空分外蓝 2007-12-02
taianxiaojia 2007-11-27
wozijisunfly 2007-10-29
HeKing 2007-10-28
thone00 2007-09-19
kyssfanhui 2007-09-15
RayDon 2007-09-01
SoarFly00 2007-09-01
linuxhh 2007-09-01