摘要: 第一步:vim /etc/mysql/my.cnf找到bind-address = 127.0.0.1注释掉这行,如:#bind-address = 127.0.0.1或者改为:bind-address = 0.0.0.0允许任意IP访问;或者自己指定一个IP地址。重启 MySQL:sudo /et... 阅读全文
posted @ 2014-12-04 15:12 Bright Moon ‘ s Blog 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 启动mysql后,以root登录mysqlroot@Eadgar-virtual-machine:~# mysql -uroot -prootmysql> show variables like 'character%'; #执行编码显示+--------------------------+---... 阅读全文
posted @ 2014-12-04 15:02 Bright Moon ‘ s Blog 阅读(2595) 评论(0) 推荐(0) 编辑
摘要: 1、apt-get install subversion2、建个目录给svn用 /svn3、svnadmin create /svn/project建立svn用的根库4、/svn/project/conf/ 下的三个文件需要修改svnserve.conf 文件anon-access = none... 阅读全文
posted @ 2014-12-04 13:48 Bright Moon ‘ s Blog 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 前言: 为什么要用模板?有了JSTL,还需要freemarker吗? 模板技术与容器无关,同样可以应用于非Web应用程序环境。ftl文件改动之后是不需要编译的,这点不同于Jsp 。JSTL只能用在jsp中,修改了jsp,需要重新编译,从而使用模板更有效率。一、上手实例 1. 在WEB-INF/lib... 阅读全文
posted @ 2014-12-01 10:56 Bright Moon ‘ s Blog 阅读(20658) 评论(0) 推荐(1) 编辑
摘要: 正向代理的概念正向代理,也就是传说中的代理,他的工作原理就像一个跳板,简单的说,我是一个用户,我访问不了某网站,但是我能访问一个代理服务器这个代理服务器呢,他能访问那个我不能访问的网站于是我先连上代理服务器,告诉他我需要那个无法访问网站的内容代理服务器去取回来,然后返回给我从网站的角度,只在代理服务... 阅读全文
posted @ 2014-11-07 10:13 Bright Moon ‘ s Blog 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 1)安装x-windows的基础(必须) #sudoapt-getinstallx-window-system-core 2)安装gnome基础(必须) #sudoapt-getinstallgnome-core 3)安装中文显示(建议安装) #sudoapt-getins... 阅读全文
posted @ 2014-10-21 15:39 Bright Moon ‘ s Blog 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 自动关闭当前页面回到微信对话窗口WeixinJSBridge.call('closeWindow');分享功能// 需要分享的内容,请放到ready里 WeixinApi.ready(function(Api) { // 微信分享的数据 va... 阅读全文
posted @ 2014-10-13 13:18 Bright Moon ‘ s Blog 阅读(675) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-09-19 11:03 Bright Moon ‘ s Blog 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 获取单值Object obj = ((Object[])ActionContext.getContext().getParameters().get("parentCuetomerId"))[0]获取集合Object[] objs = (Object[]) ActionContext.getCont... 阅读全文
posted @ 2014-09-10 17:03 Bright Moon ‘ s Blog 阅读(159) 评论(0) 推荐(0) 编辑
摘要: hello world 阅读全文
posted @ 2014-09-05 13:25 Bright Moon ‘ s Blog 阅读(408) 评论(0) 推荐(0) 编辑