摘要: 环境:CentOS7,MySQL5.51.MySQL5.5源码下载 Oracle的网站打开较慢,http://mirrors.sohu.com/mysql/这里提供了MySQL的镜像。一般的,Linux的程序安装有两种方式:A利用RPM,YUM等工具 B手动安装。其中手动安装又有两种方式,一种是直接... 阅读全文
posted @ 2015-01-31 20:55 ghsea 阅读(3842) 评论(0) 推荐(0)
摘要: Linux:[ghsea@localhost ~]date +%Y:%m:%d[ghsea@localhost ~]date +%Y-%m%d[ghsea@localhost ~]date +%y:%m:%dRuby: t=Date.today p t.strftime("%Y:%m:%d")有两点... 阅读全文
posted @ 2015-01-12 23:34 ghsea 阅读(169) 评论(0) 推荐(0)
摘要: 场景:让用户输入一个数字,程序由1+2....一直累加到用户输入的数字为止#!/bin/bashPATH=$PATH:~/scriptexport PATH#chech whether the input is numfunction is_num(){#判断用户输入的是否是数字,是数字则返回1,否... 阅读全文
posted @ 2015-01-10 22:06 ghsea 阅读(168) 评论(0) 推荐(0)