🔍 登录 注册
分类:

Jetty的安装与配置

1\. 首先从Jetty的官方网站http://wiki.eclipse.org/Jetty/Starting/Downloads下载最新的Jetty,上面有两个版本7.x和8.x,7.x是运行在JDK5及以上版本,8.x是运行在JDK6及以上版本,这里我选择了8.0.4版本。 2\. 解压压缩包到指定目录,且将其目录路径定义为${JETTY\_HOME} 3\. 启动Jetty服务 3.1 进入${JETTY\_HOME}目录,然后运行“[Java](http://lib.csdn.net/base/17 "Java EE知识库") -jar start.jar”,就可以启动Jetty server了 3.2 打开浏览器,访问http://localhost:8080,此时可以看到Jetty的欢迎页面了。 4\. Jetty配置 4.1 Jetty的配置文件都是放在${JETTY\_HOME}/etc目录下; 4.2 通过${JETTY\_HOME}/etc/jetty-webapps.xml文件,可以看出Jetty中默认将所有的web app都放在了${JETTY\_

大 大苹果 2017/5/24 👍 0 ⭐ 0 💬 0

svn权限配置

配置文件passwd 配置用户名与密码,格式如下: ``` [users] harry = harryssecret sally = sallyssecret ``` harry与sally是用户名,harryssecret与sallyssecret是密码; 配置文件svnserve.conf 开启权限访问 ``` anon-access = read # auth-access = write #认证可写 ### The password-db option controls the location of the password ### database file. Unless you specify a path starting with a /, ### the file's location is relative to the directory containing ### this configuration file. ### If SASL is enabled (see below), this file will NOT be used.

大 大苹果 2017/5/24 👍 0 ⭐ 0 💬 0

svn错误:there has been a problem contacting the server

svn查看日志出现如下错误解决方案, ![blob.png](/ueditor/php/upload/image/20170601/1496282200308118.png) 查看svn下的配置文件svnserve.conf找到anon-access = none,此处必须设置为none。

大 大苹果 2017/5/24 👍 0 ⭐ 0 💬 0

javascript的三中弹框模式

``` <!DOCTYPE html><html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>三种弹出对话框的用法实例</title></head><script language="javascript">function dialog(){ //这个基本没有什么说的,就是弹出一个提醒的对话框 alert("我敢保证,你现在用的是演示一");}function comfirmbox(){ //利用对话框返回的值 (true 或者 false) if(confirm("你确信要转去zyw327的博客?")){ //如果是true ,那么就把页面转向thcjp.cnblogs.com location.href="http://blog.okgoes.com/index/blog/lists/uuid/10300003.html"; } else { //否则说明下了,呵呵 alert("你按了取消,那就是返回f

大 大苹果 2017/5/24 👍 0 ⭐ 0 💬 0

Materialize框架之modal弹框

html代码部分 ``` <!-- href绑定模态id --> <a class="waves-effect waves-light btn" href="#modal1">模态</a> <!-- 此处id与上面a标签的href一致才能触发 --> <div id="modal1" class="modal"> <div class="modal-content"> <h4>模态标题</h4> <p>一堆文本</p> </div> <div class="modal-footer"> <a href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat">同意</a> </div> </div> <!-- href绑定模态id --> <a class="modal-trigger waves-effect waves-light btn" href="#modal2">固定底部的模态</a> <!-- 此处id与

大 大苹果 2017/11/7 👍 0 ⭐ 0 💬 0

rust的编译安装

在linux下编译安装 gcc4.8以上 gcc的更新 ``` yum install gcc -y ``` cmake的更新 参考cmake的编译安装:[http://blog.okgoes.com/index/blog/detail/uuid/10300003/type/16/t/1500444926/bid/72.html](http://blog.okgoes.com/index/blog/detail/uuid/10300003/type/16/t/1500444926/bid/72.html "http://blog.okgoes.com/index/blog/detail/uuid/10300003/type/16/t/1500444926/bid/72.html") 下载rust的源码包:[https://static.rust-lang.org/dist/rustc-1.18.0-src.tar.gz](https://static.rust-lang.org/dist/rustc-1.18.0-src.tar.gz "https://static.rus

大 大苹果 2017/7/19 👍 0 ⭐ 0 💬 0

windows目录挂载到linux系统上

第一步: window上创建共享用户,设置密码 第二步: 共享Windows目录给创建的用户 第三步 在linux上执行 ``` dest="/home/zyw/share/game" src="//192.168.1.77/game" mount -t cifs -o rw,username=admin,password=1111,uid=1000,gid=1000,iocharset=cp936,file_mode=0777,dir_mode=0777 $src $dest ```

大 大苹果 2017/7/26 👍 0 ⭐ 0 💬 0

使用highcharts画饼图

1. 引入jquery 2. 引入highcharts note:注意引用的顺序 ``` <div class='container_charts'></div> ``` ``` function pie(title, seriesTitle, data) { $('.container_charts').highcharts({ chart: { type: 'pie', options3d: { enabled: true, alpha: 45, beta: 0 } }, title: { text: title }, tooltip: { pointFormat: '{series.name}: <b>{point.percentage:.2f}%</b>' }, colors:['#00A600', '#AAAAFF', '#

大 大苹果 2017/9/20 👍 0 ⭐ 0 💬 0

php中单双引号的区别

单引号 在php中单引号里面的都是字符串 双引号 双引号与单引号的区别在于双引号里面可以引用变量。 例如: ``` $a = 'abc' var_dump('$a defg'); // 输出为string(6) "$a defg" var_dump("$a defg"); // 输出为string(8) "abc defg" ```

大 大苹果 2017/10/16 👍 0 ⭐ 0 💬 0

nodejs递归创建文件夹

1. 创建mkdir.js ``` const fs = require('fs'); const path = require('path'); let mkdir = function(filePath) { if (fs.existsSync(filePath)) { return true; } if (!fs.existsSync(path.dirname(filePath))) { mkdir(path.dirname(filePath)); } fs.mkdirSync(filePath); }; module.exports = mkdir; ``` 2.创建test.js,引入mkdir.js ``` const mkdir = require('./mkdir'); mkdir('./1/2/3/4/5/6/7/8'); //执行测试 node test.js ``` 结果如下: ![image.png](/ueditor/php/upload/image/20171019/150

大 大苹果 2017/10/19 👍 0 ⭐ 0 💬 0

前端实现图片上传预览

代码如下 ``` <!DOCTYPE html> <html> <head> <title>图片上传预览</title> <meta charset="utf-8"> <script type="text/javascript" src='/lib/jquery/dist/jquery-1.9.1.min.js'></script> </head> <body> <script type="text/javascript"> $(function() { $("#file_upload").change(function() { var $file = $(this); var fileObj = $file[0]; var windowURL = window.URL || window.webkitURL; var dataURL; var $img = $("#preview"); if (fileObj && fileObj.files && fileObj.files[0]) {

大 大苹果 2017/10/20 👍 0 ⭐ 0 💬 0

Materialize css本地化(包括图标与字体)

目录结构如下: ![QQ截图20171106135305.png](/ueditor/php/upload/image/20171106/1509948109407220.png) materializecss-font.css: ``` @CHARSET "UTF-8"; /* latin-ext */ @font-face { font-family: 'Inconsolata'; font-style: normal; font-weight: 400; src: local('Inconsolata'), url(/fonts/roboto/BjAYBlHtW3CJxDcjzrnZCCYE0-AqJ3nfInTTiDXDjU4.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Inco

大 大苹果 2017/11/6 👍 0 ⭐ 0 💬 0