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
String str="sdssds";str.replaceAll("","")
分类:
其他好文 时间:
2014-07-02 19:59:58
阅读次数:
209
PHP正则表达式 /i, /is, /s, /isU等 都是些什么东西呢?i 匹配大小写s 模式中的圆点元字符(.)匹配所有的字符,包括换行符x 模式中的空白字符除了被转义的或在字符类中的以外完全被忽略,在未转义的字符类之外的 # 以及下一个换行符之间的所有字符,包括两 头,也都被忽略A (PCRE...
分类:
Web程序 时间:
2014-07-02 19:56:41
阅读次数:
255
想写写自己日常常用的服务器操作,但是想到这个题目还是有点大的。鸟哥两本linux私房菜的书才说完了所有的服务器操作命令,这里一次性列出来也不现实。差不多这里就写写一些比较常用的命令吧。 ps aux|grep XXX 这个是最常用的命令了,查看一个进程的状态啥的。还能看到端口号,运行时间等。如果需要...
分类:
其他好文 时间:
2014-07-02 18:11:08
阅读次数:
155
decmal: "^([+-]?)\\d*\\.\\d+$", //浮点数 decmal1: "^[1-9]\\d*.\\d*|0.\\d*[1-9]\\d*$", //正浮点数 decmal2: "^-([1-9]\\d*.\\d*|0.\\d*[1-9]\\d*)$", //负浮点数...
分类:
其他好文 时间:
2014-07-02 17:32:57
阅读次数:
149
一、卸载旧版本MySql
1、rpm卸载:
1> 检查安装包:
rpm -qa | grep mysql
2> 普通删除:
rpm -e mysql-5.6.16.rpm
3> 强力删除。如果使用上面命令删除时,提示有依赖的其他文件,则使用该命令可以对其进行强力删除。
rpm -e --nodeps mysql-5.6.16.rpm
2、tar卸载:
1> 删除临时文件:
ma...
分类:
数据库 时间:
2014-07-02 16:45:17
阅读次数:
330
有一段Java代码 public final String ACode="a"; public final String BCode="b"; public final String CCode="c"; public final String DCode="d"; pub...
分类:
Web程序 时间:
2014-07-02 14:52:18
阅读次数:
209
:g/^$/d:g will execute a command on lines which match a regex. The regex is 'blank line' and the command is :d (delete)g 会执行一个正则表达式的命令,能删除文本里面的空行。
分类:
其他好文 时间:
2014-07-02 14:30:51
阅读次数:
282
Requirement-Driven Linux Shell ProgrammingRequirement-Driven Linux Shell ProgrammingTable of Contents1. Where can I find the basic Material about Linu...
分类:
系统相关 时间:
2014-07-02 13:55:48
阅读次数:
410