- 浏览: 45498 次
- 性别:
- 来自: 广州
最新评论
文章列表
jetty access log
- 博客分类:
- server
1. new xml file : jetty-logging -access.xml
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<!-- =============================================================== -->
<! ...
Linux Note
- 博客分类:
- ubuntu
1. Turned out the problem was \r\n line endings
tr -d "\r" < oldname.sh > newname
1. allow all ip access db.
mysql> CREATE USER 'root'@'%' IDENTIFIED BY '******';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
2. Linux下mysql安装完后是默认:区分表名的大小写,不区分列名的大小写;
用root帐号登录后,在/etc/my.cnf 中的[mysqld]后添加
bind-address = 192.168.1.32
lower_case_table_names = ...
1. download jdk.
2.
#!/bin/sh
JV=jdk1.7.0_55
#tar -xvf jdk-7*
sudo mkdir -p /usr/lib/jvm
sudo mv ./${JV} /usr/lib/jvm/
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/${JV}/bin/java" 1
sudo update-alternatives --install "/us ...
Css实现Div绝对右下角定位
- 博客分类:
- css
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Css实现Div绝对右下角定位</title>
<style>
#wrap {
displa ...
About Jetty
- 博客分类:
- server
1. Jetty 404 Error after working for some time
some apps maybe will clean up the system's tmp directory.
so need to change to my tmp directory: start.ini
-Djava.io.tmpdir=mytmp
error 1:
Cannot retrieve repository metadata (repomd.xml) for repository: google-chrome. Please verify its path and try again
==>
yum --disablerepo=google-chrome install xxx
Error Code Table
General Errors
Errornumber PHP Constant name Error description Generated by methods
0 API_EC_SUCCESS Success (all)
1 API_EC_UNKNOWN An unknown error occurred (all)
2 API_EC_SERVICE Service temporarily unavailable (all)
3 API_EC_METHOD Unknown method
4 API_EC_TOO_MANY_ ...
About openSSL
- 博客分类:
- opensource
1.download
2. WARNING: can’t open config file: /usr/local/ssl/openssl.cnf
Open your command prompt as Administrator (few openssl commands opens in random state), thus when openssl tries to write stuff on your disk it fails. There could be another workaround but i am not aware of that.
Now b ...
let jetty handle flex policy-file-request
jetty : org.eclipse.jetty.project-jetty-8.0.4.v20111024
1. http
a. jetty-http
add class name FlashPolicyException in package org.eclipse.jetty.http
org.eclipse.jetty.http.HttpParser add codes: line 310
// EventHandler header
...
[TCP 的包头]分析
- 博客分类:
- protocol
今天对网络数据抓包!查了一下TCP的资料!觉得对大家可能有用就放在这里吧!TCP 的包头SEQ 等于该主机选择本次连接的初始序号加上报文段中第一个字节在整个数据流中的序号。在连接建立的时候,会随机选择一个初始序号,如果发送的数据包中的字节是整个数据流中的第 256 字节到 512 字节。 WINDOW 16 个字节,接受方用来通知发送方,我的接受 buffer 的大小,发送方不能过分的发送,导致接受方的 buffer 溢出。 单位是字节。 SYN 建立连接用的。 ACK 建立连接和数据发送,关闭连接都用。 RST 连接异常。 FIN 关闭连接。 PSH 表示接受方应该尽快把数据发送给应用程 ...
1.download
Java Service Wrapper
2. cipango-distribution-2.0.0
unzip bin.rar
copy to cipango/bin/
3. unzip java service wrapper
copy wrapper-windows-x86-32-3.5.13/lib/wrapper.dll cipango/lib
copy wrapper-windows-x86-32-3.5.13/lib/wrapper.jar cipango/lib
4. run cipan ...
ant config
- 博客分类:
- server
ant config
OS:windows
download
Environment Variables
ANT_HOME ../apache-ant-1.182
ANT_OPTS -Xmx256M
PATH %ANT_HOME%\bin;
Test:
cmd window
ant -version
sailfin config
- 博客分类:
- server
sailfin config
1.sailfin http://sailfin.java.net/
2.download http://sailfin.java.net/downloads/download_windows.html
3.install
a. console(such as windows cmd) to root sailfin
1. Run: java -Xmx256m -jar filename.jar 2. cd glassfish/sailfin 3. Run: ant -f setup.xml
For GlassFish V2 wi ...