ECharts显示SSH框架从数据库调出的数据
通过JQueryAjax请求Action返回JSON对象
并将JSON对象填充到ECharts图表中...
分类:
数据库 时间:
2014-07-24 10:48:01
阅读次数:
19930
需要经常ssh到其它机器上,但如果每次都使用主机命名或ip地址,那挺难受的。这里有2个方法可以在ssh登陆时缩写(简写)主机名。1. 在~/.ssh中添加config文件[toughhou@hd1 ~]$ vi ~/.ssh/config#C3 HostHost hd1Hostname ...
分类:
其他好文 时间:
2014-07-24 09:50:03
阅读次数:
267
Hyper-v下安装测试环境:CentOS 6.5, 默认的Python 2.6, web2py主机Win8.1问题:远程管理显示“管理因不安全通道而关闭”,只能访问网页,不能进入管理界面。找了n多方法,不得门道,最后在stackoverflow找到可行的方法如下:# openssl genrsa ...
分类:
Web程序 时间:
2014-07-24 05:07:48
阅读次数:
404
查看一个命令属于哪个rpm包[root@node1yum.repos.d]#whichssh-copy-id
/usr/bin/ssh-copy-id
Youhavenewmailin/var/spool/mail/root
[root@node1yum.repos.d]#rpm-qf/usr/bin/ssh-copy-id
openssh-clients-4.3p2-82.el5
分类:
其他好文 时间:
2014-07-23 21:27:46
阅读次数:
204
[root@cent6~]#ssh-keygen-trsa-P‘‘
Generatingpublic/privatersakeypair.
Enterfileinwhichtosavethekey(/root/.ssh/id_rsa):
/root/.ssh/id_rsaalreadyexists.
Overwrite(y/n)?y
Youridentificationhasbeensavedin/root/.ssh/id_rsa.
Yourpublickeyhasbeensavedin/root/.ssh/..
分类:
其他好文 时间:
2014-07-23 21:27:26
阅读次数:
301
把你的本地主机用户的ssh公匙文件复制到远程主机用户的~/.ssh/文件夹中1.在本地主机的用户可以是(root,cusadmin,以及准备使用scp的user)运行:[root@root~]#ssh-keygen-trsaGeneratingpublic/privatersakeypair.Enterfileinwhichtosavethekey(/root/.ssh/id_rsa):回车Enterpa..
分类:
系统相关 时间:
2014-07-23 21:14:26
阅读次数:
270
JSch是Java Secure Channel的缩写。JSch是一个SSH2的纯Java实现。它允许你连接到一个SSH服务器,并且可以使用端口转发,X11转发,文件传输等,当然你也可以集成它的功能到你自己的应用程序。 ??本文只介绍如何...
分类:
编程语言 时间:
2014-07-23 18:12:59
阅读次数:
413
[root@redhatscript]#catback_web.sh
#!/bin/bash
#usescpnotusepassword.sodoit-->#ssh-keygen-trsa-->scp-p.ssh/id_rsa.pubroot@机器B的IP:/root/.ssh/authorized_keys
#mkdir&gotobackup
#####################################
#backupweb
myPath="/var/web_ba..
分类:
Web程序 时间:
2014-07-23 00:29:58
阅读次数:
239
最近,我收到一位研究生朋友的邮件,大致内容如下: 周老师您好,我是XXX大学软件工程专业的一名研究生我叫XXX,学习的方向是java,有些问题不知道周老师能否帮我解惑下,在此谢谢老师! 1.我应该专注于后台的学习么?我在实际学习中,感觉到前台和后台也是分不开的总要涉及到,学习的过程中我学习了SSH大量的知识,再回头看看前台的一些技术jsp,html,css,jQuery...
分类:
编程语言 时间:
2014-07-23 00:08:07
阅读次数:
283
1. 修改文件: /etc/ssh/sshd_config
#PermitRootLogin yes
修改为:
PermitRootLogin no
2. 重启ssh进程
/etc/init.d/sshd restart
Stopping sshd: [ OK ]
Starting sshd: [ OK ]
TIPS: 用root账号登陆时,如果只看到井号,输入bash,就可以正常显示,登陆账号,主机...
分类:
其他好文 时间:
2014-07-22 23:52:28
阅读次数:
229