------------------------------------------------------------------------------------------------首先我先做了一些更改操作:换到root用户的操作=>sudo
su输入当前用户的密码:******修改roo...
分类:
系统相关 时间:
2014-05-30 08:43:20
阅读次数:
309
一、统计脚本及代码 1 #!/bin/sh 2 3 root_dir=`pwd` 4
source_file="$root_dir"/operate0526.txt 5 single_file="$root_dir"/single0526.txt
6 result_file="$roo...
分类:
其他好文 时间:
2014-05-27 23:54:25
阅读次数:
524
看了一句话,我们都是搬运工,github的搬运工,下面这代码搬运来自各个地方,最后成型。var
classCache = {}; function getElementsByClassName(cls, root, tag){ var elems,
classRE, rs = []; roo...
分类:
其他好文 时间:
2014-05-23 11:12:19
阅读次数:
367
1.下载jdbc驱动:
http://dev.mysql.com/downloads/connector/j/
2.加入jdbc的jar包至项目的libs目录并build path
2.修改环境变量:export PATH=/usr/local/mysql/bin/:${PATH}
3.默认root@localhost没有密码
4.修改密码:
命令行:mysqladmin -u roo...
分类:
数据库 时间:
2014-05-16 01:37:15
阅读次数:
329
在linux下会出现把一些配置文件参数配错、root密码忘记等导致系统无法启动或进入root的窘迫境地,本文以redhat enterprise linux server 6.4为例介绍root身份修改root权限配置文件的参数后,root无法登录,然后通过linux的rescue模式改回配置文件,巧妙以非root身份修改了root权限的文件的解决方案。
首先,插入linux...
分类:
系统相关 时间:
2014-05-16 01:23:00
阅读次数:
549
在sql语句中,我们难免会用到单引号嵌套的时候,但是直接嵌套肯定是不行的,java中用反斜杠做转义符也是不行的,在sql中是用单引号来做转义符的。
比如下面例子是存储过程里查询时的语句示例
exec cndoup_getpageofrecords @pagesize=10,@currentpage=1,@columns='*',@tablename='ROOM',@condition='ROO...
分类:
数据库 时间:
2014-05-10 04:41:34
阅读次数:
512
二、配置haproxy实现网站的负载均衡:1、node1和node2都安装httpd,php,php-mysql:[root@node1~]#yum-yinstallhttpdphpphp-mysql[root@node2~]#yum-yinstallhttpdphpphp-mysql2、为node1和node2提供静态和动态网页:[root@node1~]#ls/var/www/html/
index.htmlindex.php
[roo..
分类:
其他好文 时间:
2014-05-05 12:30:42
阅读次数:
614
用sudo时提示"xxx is not in the sudoers file. This
incident will be
reported.其中XXX是你的用户名,也就是你的用户名没有权限使用sudo,我们只要修改一下/etc/sudoers文件就行了。
下面是修改方法:1)进入超级用户模式。也...
分类:
其他好文 时间:
2014-05-01 22:46:43
阅读次数:
465