经常用到ftp
get命令下载东西,但是遇到大的文件不知道是挂了还是在运行,要是能显示就好了,于是就有了下文。。。注:红色字体是我敲击的命令“#”
是注释语[root@localhost server]#ftp 10.2.1.67 #登录服务器Connected to 10.2.1.67.220-F...
分类:
其他好文 时间:
2014-06-03 08:56:33
阅读次数:
1377
suchmod a+w /etc/sudoersvim /etc/sudoers[找到root
ALL=(ALL) ALL这行]复制出新的一行,并且将root改为daniel(当前用户名)chmod 0440 /etc/sudoersexit
分类:
其他好文 时间:
2014-06-03 08:50:33
阅读次数:
220
数据库常用命令
1.添加需要路径:PATH="$PATH":/usr/local/mysql/bin 2.登陆数据库系统:mysql -h localhost -u root
-p 3.创建数据库:CREATE DATABASE 数据库名 4.显示数据库:SHOW DATABASES...
分类:
数据库 时间:
2014-06-03 08:04:39
阅读次数:
317
思路: 进入/usr/local/apache2/htdocs/ipa/ 循环读取
/root/shell/wget/down.txt 每次一行,每一行直接就是一条命令,直接 $line
就可以执行,如果执行成功把脚本按日期保存下来,错误也保存到错误日志中按日期,都执行完成后,把当前时间插入到txt...
分类:
其他好文 时间:
2014-06-03 06:50:48
阅读次数:
388
网上的教程实在是太恶心了,不是太老,就是有问题,刚参考的一篇文章也有问题。自己记录下来,以后用就方便了,现在一边重新安装一遍,一边记录。笔者亲测,今天是5月29号深夜。linux用的是centos6.2,yum
install subversion,安装svn服务端。本篇操作均为root用户权限。1...
分类:
系统相关 时间:
2014-05-30 17:05:23
阅读次数:
335
由于Android是基于Linux内核的操作系统。因此,在Android上可以执行Shell命令。 chenbjin@acer:~$adbshell
shell@android:/ $ su 拿到root权限 ls 查看文件夹 cd 改变目录 cat 查看文件 rm 删除文件 mkd...
分类:
数据库 时间:
2014-05-30 16:58:36
阅读次数:
380
Ubuntusudo apt-get install nfs-kernel-serversudo
apt-get install rpcbindsudo vim /etc/exports/home/xxx *(rw, sync,
no_root_squash)sudo /etc/init.d/nfs...
分类:
其他好文 时间:
2014-05-30 16:40:55
阅读次数:
212
Given a binary tree containing digits
from0-9only, each root-to-leaf path could represent a number.An example is the
root-to-leaf path1->2->3which rep...
分类:
其他好文 时间:
2014-05-30 16:32:52
阅读次数:
226
Given a binary tree and a sum, determine if the
tree has a root-to-leaf path such that adding up all the values along the path
equals the given sum.Fo...
分类:
其他好文 时间:
2014-05-30 15:18:35
阅读次数:
246
Given a binary tree, find its maximum depth.The
maximum depth is the number of nodes along the longest path from the root node
down to the farthest le...
分类:
其他好文 时间:
2014-05-30 15:03:42
阅读次数:
237