#!/bin/sh
my_ip=`/sbin/ifconfig eth1 | grep 'inet addr' | awk '{print substr($2, index($2, ":")+1)}'`
recv=""
msg="not_existing, restart ..."
MONITOR_LOG="monitor.log"
#monitor procname scriptname...
分类:
系统相关 时间:
2014-10-11 23:25:07
阅读次数:
329
Host Ubuntu系统:sudo ifconfig eth0 192.168.1.2打补丁(补丁和内核在同一目录下/home/chris/temp):cd /home/chris/temp/linux-3.0patch -p1 < ../linux-3.0-s3c2440.patch开发板u-b...
分类:
系统相关 时间:
2014-10-11 16:52:15
阅读次数:
258
环境: centOS 6.5 装在U 盘中的。可以随身带 说明: 我在一台机器上在U盘上装好系统以后,网络什么的都能正常使用,然后我换到另一台机器的时候问题出现了。 就是无法使用网络。表现: # ifconfig 只显示lo # ifconfig -a 显示lo 和 eth1 没 eth...
分类:
系统相关 时间:
2014-10-11 12:03:15
阅读次数:
271
将原来的虚拟机文件迁移到另一台机子之后。
ifconfig显示只有一个lo网卡,网上找了一些文章,大多是修改/etc/network/interfaces
原来内容是
# #######################################################
# This file describes the network interfaces available...
分类:
系统相关 时间:
2014-10-10 21:27:14
阅读次数:
226
用来进行android测试时使用genymotion,genymotion是运行在virtualbox中的,virtualbox为两者建立了连接,在linux下通过ifconfig可以看到有一个叫做vboxnet0的虚拟网卡,ip为192.168.56.1,genymotion中的android分配...
分类:
其他好文 时间:
2014-10-08 15:41:45
阅读次数:
854
ubuntu下的指令:系统部份查看当前在线用户w|who系统用户users向其它在线用户发消息:先w,再writeashleytty1telnetlocalhost11211【hostport之间无冒号】web下载文件:wgethttp://filename网络部份:查看网络接口:ifconfig查看路由:route-n查看网络端口:netstat-tupn重启网..
分类:
系统相关 时间:
2014-10-07 22:44:56
阅读次数:
231
??
1 ip ad
查看网卡编号
2、ifconfig查看网卡信息
3、关闭网卡
4、启动网卡
5、给etho配置临时ip
sudo ifconfig ethoIP地址
6、ping命令
ping [选项]
主机名/IP地址
查看网络上的主机是否在工作。它向该主...
分类:
Web程序 时间:
2014-10-02 11:12:02
阅读次数:
291
月份出错可能影响shell脚本运行,还是改一下。
1
zxw@hostUbuntu1:~$ ifconfig
eth0 Link encap:浠ュお缃 纭欢鍦板潃 00:0c:29:fb:c0:4c
inet 鍦板潃: 骞挎挱: 鎺╃爜:255.255.255.0
inet6 鍦板潃: fe80::20c:29ff:fefb...
分类:
其他好文 时间:
2014-09-30 18:36:19
阅读次数:
271
今天使用hadoop时发现查看本机ip时无法使用 提示没有该命令
首先查看了Linux的版本号
uname -a 查看内核版本
接着查看Linux的版本
lsb_release -a
发现时CentOS
使用ifconfig时提示没有该命令
这时决定使用管理员权限
su 和su - 都需要密码 艹 只能冒充管理员调用没有加密的命令 sbin/ifcon...
分类:
系统相关 时间:
2014-09-30 14:05:39
阅读次数:
232
#!/bin/bash
ifconfig|grep -E 'eth|inet'|grep -Ev '(inet6|127.0.0.1)'|sed 's/ /\n/g'|awk NF|grep -Ev '(inet|encap|Link|HWaddr)'|sed 's/00:/MAC:/g';route|grep default|awk '{print "\nGATEWAY:"$2}'
cat /e...
分类:
其他好文 时间:
2014-09-29 19:51:21
阅读次数:
206