?? 第九章 啟動(dòng)lookup server服務(wù).htm
字號(hào):
<html>
<head>
<title>新時(shí)代軟件教程:操作系統(tǒng) 主頁(yè)制作 服務(wù)器 設(shè)計(jì)軟件 網(wǎng)絡(luò)技術(shù) 編程語(yǔ)言 文字編輯</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
<!--
body, table {font-size: 9pt; font-family: 宋體}
a {text-decoration:none}
a:hover {color: red;text-decoration:underline}
.1 {background-color: rgb(245,245,245)}
-->
</style>
</head>
<p align="center"><script src="../../1.js"></script></a>
<p align="center"><big><strong>第九章 啟動(dòng)Lookup Server服務(wù)</strong></big></p>
<pre><code>
1) 啟動(dòng)http server
java -jar tools-jarfile [-port port-number] -dir document-root-dir [-trees]
[-verbose]
tools-jarfile ------ tools.jar
port ------可不指定,缺省端口是8080。
-dir document-root- dir ----- http server的主目錄
-trees -verbose 在主目錄中查找類,并download
例如:
java -jar /files/jini1_0/lib/tools.jar -port 9090 -dir /files/jini1_0/lib <BR>
-trees -verbose
2) 啟動(dòng)rmi進(jìn)程
rmid [-port num] [-log dir] [- stop] [ -Coption]
[port] ---- 指定RMI注冊(cè)端口,缺省是1099
[log ] ---- 指定寫(xiě)數(shù)據(jù)庫(kù)等日志文件的目錄,缺省是當(dāng)前目錄下的log目錄。
3) 啟動(dòng)lookup server
java -jar lookup-server-jarfile lookup-client-codebase lookup-policy-file <BR>
output-log- dir lookup-service-group
lookup-server-jarfile ---- reggie.jar
lookup-client-codebase ---- 相對(duì)http服務(wù)的主目錄下reggie-dl.jar
lookup-policy-file ----- policy 或policy.all,安全控制文件
output-log-dir ---- 日志文件所在目錄,開(kāi)始必須是空的。
lookup-service-group --- 一般是public
例如:
java -jar /files/jini1_0/lib/reggie.jar http://'hostname':8080/reggie-dl.jar<BR> /files/jini1_0/example/lookup/policy /tmp/reggie_log public
4) 啟動(dòng)lookup brower
java -cp jar-file security-policy-property rmi-codebase-property <BR> com.sun.jini.example.browser.Browser [ -admin ] [group,...]
例如:
java -cp /files/jini1_0/lib/jini-examples.jar<BR> -Djava.security.policy=/files/jini1_0/example/browser/policy<BR> -Djava.rmi.server.codebase=http://host:8080/jini-examples-dl.jar<BR> com.sun.jini.example.browser.Browser
</code></pre>
</table>
<p align="center"><script src="../../2.js"></script></a>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -