码迷,mamicode.com
首页 >  
搜索关键字:usr    ( 26217个结果
python模块paramiko的上传下载和远程执行命令
#!/usr/bin/python #-*-coding:utf-8-*- importparamiko,os,datetime server_ip=‘192.168.1.123‘ server_user=‘root‘ server_passwd=‘10241010‘ server_port=22 #local_dir=‘C:\Python27‘ #remote_dir=‘/soft2/nba/‘ defssh_connect(): ssh=paramiko.SSHClient() ssh.set_missi..
分类:编程语言   时间:2014-05-27 03:51:40    阅读次数:283
linux下常用简写命令的全称
/bin = BINaries/dev = DEVices/etc = ETCetera 附加物或 EdiTable Configure file 配置文件/proc = PROCesses/sbin = Superuser BINaries/usr = Unix Shared Resourcesa...
分类:系统相关   时间:2014-05-23 11:13:38    阅读次数:453
linux tarball 安装建议
1 最好将 tarball 数据解压到 /usr/local/src 中 (由文件名称可以看出)cd /usr/local/srctar -zvxf softwareCode.tar.gz2 每个软件都单独安装到 /usr/local/softwareName 下面 (便于反安装)./configu...
分类:系统相关   时间:2014-05-23 10:56:52    阅读次数:376
Linux下Tomcat重新启动
原文链接:http://www.cnblogs.com/tovep/articles/2473147.htmlLinux下Tomcat重新启动在Linux系统下,重启Tomcat使用命令操作的!首先,进入Tomcat下的bin目录cd /usr/local/tomcat/bin使用Tomcat关闭命...
分类:系统相关   时间:2014-05-23 10:22:19    阅读次数:302
xdebug安装
sudo apt-get install php-pearsudo apt-get install php5-devsudo pecl install xdebug下载安装编译完后,在php.ini 中加入extension=xdebug.so[zend]zend_extension="/usr/l...
分类:其他好文   时间:2014-05-23 10:07:25    阅读次数:209
EventMachine 系列之简单的服务器
EventMachine 本文主要是 EventMachine如何建一个简单的Echo服务器post_init, unbind, receive_date 方法 EchoServer 如下代码,是建立一个简单的EchoServer #!/usr/bin/env rubyrequire 'rubygems'require 'eventmachine' class Ech...
分类:其他好文   时间:2014-05-22 11:14:26    阅读次数:181
大文件不断行分割
#! /usr/bin/python #! -*- coding:utf-8 -*- import os def SplitFile(cnt): path='e:\data' filename=path+'\\qunti_deal.txt' os.chdir(path) i=0 n=0 size=os.path.getsize(filename)/1024/cnt pr...
分类:其他好文   时间:2014-05-22 09:07:43    阅读次数:184
nagios监控设置monitor告警的用户名和密码
nagios监控设置monitor告警的用户名和密码默认在commands.cfg文件中定义:其中参数解释:Vimcommands.cfg文件:/usr/local/bin/sendEmail–fnagios@test.com–tyahoon@test.com–smail.test.com–u“fromnagios”–xunagios–xpp#3isoda–mhappy解释:-f表示发送者的邮箱-t表示?.
分类:移动开发   时间:2014-05-21 00:36:54    阅读次数:333
lighttpd 编译安装
1,下载安装lighttpd-1.4.34lighttpd官网下载最新稳定版本[root@localhostsoftware]#tar-zxvflighttpd-1.4.34.tar.gz[root@localhostsoftware]#cdlighttpd-1.4.34[root@localhostlighttpd-1.4.34]#./configure--prefix=/usr/local/lighttpd#安装默认模块[root@localhostlighttpd..
分类:其他好文   时间:2014-05-20 23:29:06    阅读次数:313
SUSE 11g SP3系统服务器NRPE配置
1.创建账号信息登录为root用户,#su–l创建nagios账号并设置密码#/usr/sbin/useraddnagios#passwdnagios2.安装nagios插件创建下载文件存放文件夹#mkdir~/downloads#cd~/downloads下载nagios插件#wgethttp://nagios-plugins.org/download/nagios-plugins-1.4.6.tar.gz解压文件#..
分类:其他好文   时间:2014-05-20 21:33:48    阅读次数:510
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!