一、简介 JSch库可以实现Java连接Linux服务器并操作命令、文件等,支持常用的各种授权模式。网址:http://www.jcraft.com/jsch/ 类似C#中的SSH.Net框架。在Java中,类似的库还有:Apache Mina SSHD http://mina.apache.org ...
分类:
编程语言 时间:
2020-03-10 13:46:24
阅读次数:
77
1查看概要文件中设置的密码错误后限制的登录次数,默认为10次。 SQL语句为:select * from dba_profiles where profile='DEFAULT' and resource_name='FAILED_LOGIN_ATTEMPTS'; LIMIT列应为红色的数字10。 ...
分类:
数据库 时间:
2020-03-09 22:42:16
阅读次数:
231
package cn.time; import java.text.DecimalFormat; public class JdkUtilTest { public static void main(String[] args) { DecimalFormat df = new DecimalFor ...
分类:
其他好文 时间:
2020-03-09 13:41:07
阅读次数:
42
/usr/local/MySQL/bin/mysql -u root -p ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456'; ...
分类:
数据库 时间:
2020-03-08 23:19:53
阅读次数:
71
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv ...
分类:
其他好文 时间:
2020-03-08 13:57:02
阅读次数:
82
1. Spring 单例Bean的线程安全问题 单例bean存在线程安全问题,当多线程操作成员变量时会有冲突发生,如果定义在方法入参处那样在栈中则不会。避免使用成员变量或推荐使用ThreadLocal成员变量拉 Bean的生命周期 预先知识 其实在学习Spring时就有接触,没有使用就很容易忘记,见 ...
分类:
其他好文 时间:
2020-03-06 23:49:26
阅读次数:
59
原文链接:https://linuxops.org/blog/python/prettytable.html #!/usr/bin/python #**coding:utf-8** import sys from prettytable import PrettyTable reload(sys) ...
分类:
编程语言 时间:
2020-03-06 15:42:20
阅读次数:
114
for循环遍历 let array = ['a','b','c']; for (let i = 0;i < array.length;i++){ console.log(array1[i]); // a b c } 用for in的方遍历数组 for(let index in array) { co ...
分类:
编程语言 时间:
2020-03-06 15:05:39
阅读次数:
88
昨天突然接到报警说服务端口丢失,也就是服务崩溃了。 1, 先看错误日志,发现是调用json.Marshal时出错了,错误原因是:concurrent map iteration and map write,即并发读写map。 2, xxx/custom.go的85行 if jsonParamsByt ...
分类:
其他好文 时间:
2020-03-05 13:15:02
阅读次数:
74
介绍 Oracle 数据库18c 允许您使用 SELECT 语句中定义的内联外部表访问平面文件中的数据。 什么是内联外部表? 内联外部表将外部表的定义直接放在SQL语句中,不需要额外在数据字典中创建外部表对象。当使用内联外部表的时候,与创建外部表(CREATE TABLE)相同的语法可以用在一个se ...
分类:
数据库 时间:
2020-03-05 13:08:38
阅读次数:
111