码迷,mamicode.com
首页 >  
搜索关键字:grep awk sed    ( 22162个结果
linux TIME_WAIT过多的解决方法
查看TCP状态:netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'查看SOCKET状态:cat /proc/net/sockstatTIME_WAIT状态的socket一般需要等到2msl时间后,socket才会被...
分类:系统相关   时间:2014-07-16 18:28:46    阅读次数:231
Centos 安装Apache软件
检查rpm    -qa    httpd [root@luozhonghua icons]# rpm    -qa   |grep  httpd httpd-2.2.15-30.el6.centos.i686 查看安装路径 rpm -ql httpd-2.2.15-30.el6.centos.i686   确保安装完 [root@luozhonghua icons]#  yum  ...
分类:其他好文   时间:2014-07-16 17:26:14    阅读次数:161
ping wget curl
ping -n 1 -w 10000 224.0.0.0 模拟sleep wget ifconfig.me/ip -q -O - 获取你的外部ip地址 wget -S -O/dev/null "INSERT_URL_HERE" 2>&1 | grep Server 查看服务器软件(比如 Apache...
分类:其他好文   时间:2014-07-16 16:58:53    阅读次数:186
Sed替换文本中的指定内容
可以这样做:方法1:sed -i 's/被替换的内容/要替换成的内容/' file 方法2:sed 's/被替换的内容/要替换成的内容/g' file > file.outmv file.out file 这里注意:不能这样做:sed 's/被替换的内容/要替换成的内容/g' file > file...
分类:其他好文   时间:2014-07-16 16:07:56    阅读次数:301
重置mysql的root密码
重置mysql的root密码# /etc/init.d/mysql stopShutting down MySQL. [ OK ]# ps -ef |grep mysqlroot 25174 24030 0 0...
分类:数据库   时间:2014-07-16 15:54:20    阅读次数:311
Ubuntu14.04下Python3.4启动IDLE
1.在Ubuntu14.04 LTS版本中,已经自行安装了python,可以在Terminal(CTRL+ALT+T)中输入:ls /usr/bin | grep python 进行查看。如果想运行python2.7的话,直接在终端输入:python即可。如果想运行python3.4的话,直接在终端...
分类:编程语言   时间:2014-07-16 15:50:35    阅读次数:226
linux 查看端口占用情况
netstat –apn | grep 8080...
分类:系统相关   时间:2014-07-16 13:01:56    阅读次数:233
开启Ubuntu Linux下VirtualBox访问USB功能
解决方法如下:1、增加用户组usbfssudo groupadd usbfs2、查看usbfs用户组的gidcat /etc/group | grep usbfsusbfs:x:1002:3、把当前用户增加到usbfs组sudo gedit /etc/group把usbfs:x:1002:修改为us...
分类:系统相关   时间:2014-07-16 12:41:10    阅读次数:242
查找线程化的中断
参考内核kernel/irq/manage.c的代码: t = kthread_create(irq_thread, new, "irq/%d-%s", irq, new->name); 会生成名为irq/-的线程, 所以可以用如下方法查找: $ ps aux  |grep irq...
分类:编程语言   时间:2014-07-16 10:48:20    阅读次数:220
linux centos 卸载jdk
1.先看看OpenJDK的安装包 $ rpm -qa |grep java tzdata-java-2013b-1.el6.noarch java-1.6.0-openjdk-1.6.0.0-1.61.1.11.11.el6_4.x86_64 java-1.7.0-openjdk-1.7.0.19-2.3.9.1.el6_4.x86_64 2.检查OpenJDK版本 $ java -v...
分类:系统相关   时间:2014-07-16 10:47:35    阅读次数:293
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!