groupadd mysql #添加mysql组 useradd -g mysql mysql
-s /bin/false #创建用户mysql并加入到mysql组,不允许mysql用户直接登录系统 mkdir -p /data/mysql
#创建MySQL数据库存放目 chown -R mysql...
分类:
数据库 时间:
2014-05-18 19:11:27
阅读次数:
406
脚本名:power.sh脚本内容:Shell代码 #!/bin/sh username3=$1
dir_name2=$2 # get existing directory file_path=$dir_name2 while true do if [ -d
$fil...
分类:
系统相关 时间:
2014-05-18 18:49:24
阅读次数:
319
用vs2010编写了动态链接库程序之后,想要查看导出函数,直接使用dumpbin命令时会提示缺少mspdb.dll文件,解决办法如下:
1. 将vs2010安装目录下Install\VC\bin下的 vcvarsall.bat 拖进命令行,回车,然后就可以使用dumpbin命令了
2.找到
Virtual Studio命令提示符(2010) ,运行之,然后也可以使用dumpb...
分类:
其他好文 时间:
2014-05-18 10:16:26
阅读次数:
251
python创建二叉树,源代码如下:
#!/usr/bin/python
class node():
def __init__(self,k=None,l=None,r=None):
self.key=k;
self.left=l;
self.right=r;
def create(root):
a=raw_input('enter a key:');
if a is '#...
分类:
编程语言 时间:
2014-05-18 09:27:13
阅读次数:
384
maven3 安装:
安装 Maven 之前要求先确定你的 JDK 已经安装配置完成。Maven是 Apache 下的一个项目,目前最新版本是 3.0.4,我用的也是这个。
首先去官网下载 Maven:http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-3.0.4-bin.tar.gz
下载...
分类:
系统相关 时间:
2014-05-18 06:56:18
阅读次数:
345
简介grep (global search regular expression(RE)
and print out the
line,全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。Unix的grep家族包括grep、egrep和fgr...
分类:
系统相关 时间:
2014-05-18 02:10:16
阅读次数:
529
Given two numbers represented as strings,
return multiplication of the numbers as a string.Note: The numbers can be
arbitrarily large and are non-nega...
分类:
其他好文 时间:
2014-05-18 01:25:07
阅读次数:
288
Tomcat 6.0的目录结构2013-05-17
20:0578人阅读评论(0)收藏举报bin:存放启动与监控Tomcat的命令文件,其中tomcat6.exe用于启动Tomcat服务器,tomcat6w.exe用于监控与设置Tomcat服务器的启动配置参数。lib:在lib目录中存放Tomcat...
分类:
其他好文 时间:
2014-05-18 00:52:14
阅读次数:
269
很久之前的事情了,微软2014实习生的在线测试题,记录下来以备后用。题目描述:DescriptionConsider
a string set that each of them consists of {0, 1} only. All strings in the set
have the sam...
分类:
其他好文 时间:
2014-05-18 00:17:25
阅读次数:
280
1、安装gconf-editor yum list | grep conf-editoryum
install gconf-editor2、运行gconf-editor设置: apps ---> gedit-2 ---> preferences
----> encodingauto-detected...
分类:
其他好文 时间:
2014-05-17 18:18:56
阅读次数:
215