#!/bin/bash
process=8
PWD=`pwd`
DAT=`date`
ftpip="192.168.1.1"
user="ftp_username"
password="ftp_password"
local_dir="/home/"
getlist()
{
ftp-n$ftpip<<EOF|awk‘{print$9}‘|sed‘/^$/d‘>$PWD/list
user$user$password
cdfile/
dir
bye
EOF
}
copy()
{
if[-f$P..
分类:
系统相关 时间:
2014-05-27 03:55:34
阅读次数:
378
#!/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
原文链接: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
spring 注解的分类
启动spring自动扫描功能
1.@Repository:
它用于将数据访问层 (DAO 层 ) 的类标识为 Spring Bean。具体只需将该注解标注在 DAO 类上即可。
为什么 @Repository 只能标注在 DAO 类上呢?
这是因为该注解的作用不只是将类识别为 Bean,同时它还能将所标注的类中抛出的数据访问异常封装...
分类:
编程语言 时间:
2014-05-23 08:23:51
阅读次数:
334
安装好mysql数据库后,直接在安装的目录下/usr/local/mysql下新建了一个目录data用于存放数据,建好后,直接去启动数据库,发现启动不了,出现如下报错:mysqld_safeStartingmysqlddaemonwithdatabasesfrom/usr/local/mysql/data/usr/local/mysql/libexec/mysqld:File‘./mysql-..
分类:
数据库 时间:
2014-05-21 01:32:42
阅读次数:
378
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
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
函数作用域和声明提前varscope=‘global‘;functionf(){console.info(scope);//输出undefinedvarscope=‘local‘;console.info(scope);//输出local}上述代码等价于functionf(){varscope;console.info(scope);scope=‘local‘;console.info(scope);}将函数内的变量声明“提前”至函数..
分类:
Web程序 时间:
2014-05-20 22:02:15
阅读次数:
409
大纲:一、前言二、概述三、在Windows上安装Git四、创建本地仓库五、本地仓库管理详解六、总结注,测试机CentOS5.5x86_64,Git服务器版本:gitversion1.8.2.1,客户端版本:gitversion1.9.2.msysgit.0。所有软件请到这里下载:http://msysgit.github.io/。一、前言本来呢,其实..
分类:
其他好文 时间:
2014-05-20 20:19:13
阅读次数:
442
对nutch添加中文网站抓取功能。1、中文网页抓取A、调整mysql配置,避免存入mysql的中文出现乱码。修改${APACHE_NUTCH_HOME}/runtime/local/conf/gora.properties################################MySQLproperties################################gora.sqlstore.jdbc.driver=com..
分类:
Web程序 时间:
2014-05-20 19:17:55
阅读次数:
539