1、查看机器型号 [root@local ~]# dmidecode | grep "Product Name" Product Name: VMware Virtual Platform Product Name: 440BX Desktop Reference Platform2、查询Linux...
分类:
系统相关 时间:
2014-07-02 20:12:21
阅读次数:
310
group=`cat config.properties | grep -v "^$" | grep -v "^#" | awk -F "." '!($1 in a){a[$1];print $1}'`
分类:
其他好文 时间:
2014-07-02 20:01:16
阅读次数:
217
想写写自己日常常用的服务器操作,但是想到这个题目还是有点大的。鸟哥两本linux私房菜的书才说完了所有的服务器操作命令,这里一次性列出来也不现实。差不多这里就写写一些比较常用的命令吧。 ps aux|grep XXX 这个是最常用的命令了,查看一个进程的状态啥的。还能看到端口号,运行时间等。如果需要...
分类:
其他好文 时间:
2014-07-02 18:11:08
阅读次数:
155
netstat 命令详解netstat用于显示与IP、TCP、UDP和ICMP协议相关的统计数据,一般用于检验本机各端口的网络连接情况。常用:netstat -anp | grep 进程名、pid进程号、端口号参数一般用的:-aup-anp-anltp-ano参数含义介绍-a (all)显示所有连接...
分类:
Web程序 时间:
2014-07-02 09:57:25
阅读次数:
387
ps -ef|grep ./amplxe-gui|grep -v grep|cut -c 9-15|xargs kill -9
批量杀死包含关键字“./amplxe”的进程。
"ps -ef" ——查看所有进程
"grep ./amplxe-gui" ——列出所有含有关键字"./amplxe-gui"的进程
"grep -v grep" ——在列出的进程中去除含...
分类:
系统相关 时间:
2014-07-02 09:05:06
阅读次数:
335
进入Ubuntu之后打开终端窗口的快捷键是:
ctrl + alt+T:通过这个命令可以打开终端。截图是:
关闭一个终端窗口的方式是:
Alt +F4,在Ubuntu下还可以是exit
对于terminal中的符号,其中的$标识,普通用户时显示的是$,超级管理员对应的符号是:#
截图如下:...
分类:
系统相关 时间:
2014-07-02 07:58:14
阅读次数:
788
检查系统是否安装snmp服务
# rpm -qa|grep snmp
net-snmp-5.3.2.2-17.el5
net-snmp-perl-5.3.2.2-17.el5
net-snmp-devel-5.3.2.2-17.el5
net-snmp-libs-5.3.2.2-17.el5
net-snmp-utils-5.3.2.2-17.el5
net-snmp-libs-5....
分类:
系统相关 时间:
2014-07-01 16:01:00
阅读次数:
386
1.写一个shell脚本test.sh,重新启动tomcat[java]view plaincopy#!/bin/sh./etc/profilepid=`psaux|greptomcat|grep-vgrep|grep-vretomcat|awk'{print$2}'`echo$pidif[-n"$...
分类:
系统相关 时间:
2014-07-01 12:08:38
阅读次数:
304
自动化格式分区方法----非交互---可用于脚本要先给用户一个提示,让他选择一个分区来格式化foriin`mount|grep“/dev/sdb”|awk’{print$1}’`dofuser–km$i;umount$idoneddif=/dev/zeroof=$PartDiskbs=512count=1sync;sleep3echo‘np1+20Mnp2+512Mnp3+128Mt382w’|fdisk/dev/s..
分类:
系统相关 时间:
2014-07-01 06:00:36
阅读次数:
359