Linux命令(7)adduser
adduser主要是用来添加用户的命令。 命令格式:
adduser [username] [command] 常用命令:
#adduser yy
添加一个叫yy的用户 #adduser yy –d /opt/www/
添加一个叫yy的用户,用户目录在/opt/w...
分类:
系统相关 时间:
2014-08-27 00:17:36
阅读次数:
267
1,mkdir/usr/local/proxycatproxy#!/bin/bashUser=$USERIp=${SSH_CLIENT%%*}Date="`date+%Y-%m-%d`"Logfile=/var/log/myaudit/${User}_${Ip}_${Date}.log#exportLogfile=/var/log/myaudit/${User}_${Ip}_${Date}.logexportPROMPT_COMMAND=‘{date"+%y-%m-%d%T#####$(whoami|awk"..
分类:
系统相关 时间:
2014-08-26 19:55:27
阅读次数:
226
#!/usr/bin/envpython#coding=utf-8importparamikoimporttime,datetime,threadingdefssh(ip,user,passwd,command):ssh=paramiko.SSHClient()ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())try:ssh.connect(ip,port=16333,username=user,password=passwd)exceptpar..
分类:
编程语言 时间:
2014-08-26 19:54:27
阅读次数:
237
Linux中find常见用法示例·findpath-option[-print][-exec-okcommand]{}\;find命令的参数;pathname:find命令所查找的目录路径。例如用.来表示当前目录,用/来表示系统根目录。-print:find命令将匹配的文件输出到标准输出。-exec:find命令对匹配的文件执行该参数所给出的shel..
分类:
系统相关 时间:
2014-08-26 19:49:07
阅读次数:
376
Xtreme Toolkit pro专业版集合了下面所列出的每一个产品。点击每个产品的链接可以看到相关产品的特性简介。当你了解完相关产品特性,你可以返回到本产品网页去浏览Xtreme Toolkit pro专业版余下的特性。Xtreme控制栏(Xtreme Command Bars)把需要创建的具有...
分类:
其他好文 时间:
2014-08-26 19:13:36
阅读次数:
208
PHP运行模式有4钟:1)cgi 通用网关接口(Common Gateway Interface)) 2) fast-cgi 常驻 (long-live) 型的 CGI 3) cli 命令行运行 (Command Line Interface) 4)web模块模式 (apache等web服务器运行的...
分类:
Web程序 时间:
2014-08-26 16:45:36
阅读次数:
264
Run the following command first to start the mongo servermongod run --config /usr/local/etc/mongod.confAssuming you installed mongo usingBrew.More inf...
分类:
数据库 时间:
2014-08-26 00:10:15
阅读次数:
554
http://herongyang.com/jtool/jdb.htmlhttp://www.rhcedan.com/2010/06/22/killing-a-java-thread/用处:上去杀死一个线程,!"jdb" Command"jdb": A command line tool that ...
分类:
数据库 时间:
2014-08-25 19:10:54
阅读次数:
508
setup.py install 报错
error: command 'mt.exe' failed: No such file or directory
或者 Unable to find vcvarsall.bat
于是 用 setup.py insall build --compiler=mingw32
担心没装 mingw32,但是喜悦地发现以前装 ...
分类:
其他好文 时间:
2014-08-25 02:20:13
阅读次数:
238