Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
2531186c
提交
2531186c
authored
17 年前
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
--no commit message
上级
f9d01256
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
8 行增加
和
18 行删除
+8
-18
Console.java
h2/src/main/org/h2/tools/Console.java
+1
-11
Server.java
h2/src/main/org/h2/tools/Server.java
+7
-7
没有找到文件。
h2/src/main/org/h2/tools/Console.java
浏览文件 @
2531186c
...
@@ -64,7 +64,7 @@ public class Console implements ActionListener, MouseListener {
...
@@ -64,7 +64,7 @@ public class Console implements ActionListener, MouseListener {
System
.
out
.
println
(
web
.
getStatus
());
System
.
out
.
println
(
web
.
getStatus
());
}
}
}
}
Server
tcp
=
null
,
odbc
=
null
,
pg
=
null
;
Server
tcp
=
null
,
pg
=
null
;
try
{
try
{
tcp
=
Server
.
createTcpServer
(
args
);
tcp
=
Server
.
createTcpServer
(
args
);
tcp
.
start
();
tcp
.
start
();
...
@@ -75,16 +75,6 @@ public class Console implements ActionListener, MouseListener {
...
@@ -75,16 +75,6 @@ public class Console implements ActionListener, MouseListener {
System
.
out
.
println
(
tcp
.
getStatus
());
System
.
out
.
println
(
tcp
.
getStatus
());
}
}
}
}
try
{
odbc
=
Server
.
createOdbcServer
(
args
);
odbc
.
start
();
}
catch
(
SQLException
e
)
{
if
(
odbc
==
null
)
{
e
.
printStackTrace
();
}
else
{
System
.
out
.
println
(
odbc
.
getStatus
());
}
}
try
{
try
{
pg
=
Server
.
createPgServer
(
args
);
pg
=
Server
.
createPgServer
(
args
);
pg
.
start
();
pg
.
start
();
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/tools/Server.java
浏览文件 @
2531186c
...
@@ -33,7 +33,7 @@ public class Server implements Runnable {
...
@@ -33,7 +33,7 @@ public class Server implements Runnable {
private
void
showUsage
()
{
private
void
showUsage
()
{
System
.
out
.
println
(
"java "
+
getClass
().
getName
()
+
" [options]"
);
System
.
out
.
println
(
"java "
+
getClass
().
getName
()
+
" [options]"
);
System
.
out
.
println
(
"By default, -tcp, -web, -browser and -
odbc
are started"
);
System
.
out
.
println
(
"By default, -tcp, -web, -browser and -
pg
are started"
);
System
.
out
.
println
(
"-tcp (start the TCP Server)"
);
System
.
out
.
println
(
"-tcp (start the TCP Server)"
);
System
.
out
.
println
(
"-tcpPort <port> (default: "
+
TcpServer
.
DEFAULT_PORT
+
")"
);
System
.
out
.
println
(
"-tcpPort <port> (default: "
+
TcpServer
.
DEFAULT_PORT
+
")"
);
System
.
out
.
println
(
"-tcpSSL [true|false]"
);
System
.
out
.
println
(
"-tcpSSL [true|false]"
);
...
@@ -48,14 +48,14 @@ public class Server implements Runnable {
...
@@ -48,14 +48,14 @@ public class Server implements Runnable {
System
.
out
.
println
(
"-webAllowOthers [true|false}"
);
System
.
out
.
println
(
"-webAllowOthers [true|false}"
);
System
.
out
.
println
(
"-browser (start a browser)"
);
System
.
out
.
println
(
"-browser (start a browser)"
);
System
.
out
.
println
(
"-odbc (start the ODBC Server)"
);
System
.
out
.
println
(
"-odbcPort <port> (default: "
+
OdbcServer
.
DEFAULT_PORT
+
")"
);
System
.
out
.
println
(
"-odbcAllowOthers [true|false]"
);
System
.
out
.
println
(
"-pg (start the PG Server)"
);
System
.
out
.
println
(
"-pg (start the PG Server)"
);
System
.
out
.
println
(
"-pgPort <port> (default: "
+
PgServer
.
DEFAULT_PORT
+
")"
);
System
.
out
.
println
(
"-pgPort <port> (default: "
+
PgServer
.
DEFAULT_PORT
+
")"
);
System
.
out
.
println
(
"-pgAllowOthers [true|false]"
);
System
.
out
.
println
(
"-pgAllowOthers [true|false]"
);
System
.
out
.
println
(
"-odbc (start the ODBC Server)"
);
System
.
out
.
println
(
"-odbcPort <port> (default: "
+
OdbcServer
.
DEFAULT_PORT
+
")"
);
System
.
out
.
println
(
"-odbcAllowOthers [true|false]"
);
System
.
out
.
println
(
"-ftp (start the FTP Server)"
);
System
.
out
.
println
(
"-ftp (start the FTP Server)"
);
System
.
out
.
println
(
"-ftpPort <port> (default: "
+
Constants
.
DEFAULT_FTP_PORT
+
")"
);
System
.
out
.
println
(
"-ftpPort <port> (default: "
+
Constants
.
DEFAULT_FTP_PORT
+
")"
);
System
.
out
.
println
(
"-ftpDir <directory> (default: "
+
FtpServer
.
DEFAULT_ROOT
+
", use jdbc:... to access a database)"
);
System
.
out
.
println
(
"-ftpDir <directory> (default: "
+
FtpServer
.
DEFAULT_ROOT
+
", use jdbc:... to access a database)"
);
...
@@ -82,8 +82,8 @@ public class Server implements Runnable {
...
@@ -82,8 +82,8 @@ public class Server implements Runnable {
* </li><li>-web (start the Web Server / H2 Console application)
* </li><li>-web (start the Web Server / H2 Console application)
* </li><li>-tcp (start the TCP Server)
* </li><li>-tcp (start the TCP Server)
* </li><li>-tcpShutdown {url} (shutdown the running TCP Server, URL example: tcp://localhost:9094)
* </li><li>-tcpShutdown {url} (shutdown the running TCP Server, URL example: tcp://localhost:9094)
* </li><li>-odbc (start the ODBC Server)
* </li><li>-pg (start the PG Server)
* </li><li>-pg (start the PG Server)
* </li><li>-odbc (start the ODBC Server)
* </li><li>-browser (start a browser and open a page to connect to the Web Server)
* </li><li>-browser (start a browser and open a page to connect to the Web Server)
* </li><li>-log [true|false] (enable or disable logging)
* </li><li>-log [true|false] (enable or disable logging)
* </li><li>-baseDir {directory} (sets the base directory for database files; not for H2 Console)
* </li><li>-baseDir {directory} (sets the base directory for database files; not for H2 Console)
...
@@ -165,7 +165,7 @@ public class Server implements Runnable {
...
@@ -165,7 +165,7 @@ public class Server implements Runnable {
if
(
startDefaultServers
)
{
if
(
startDefaultServers
)
{
tcpStart
=
true
;
tcpStart
=
true
;
pgStart
=
true
;
pgStart
=
true
;
odbcStart
=
tru
e
;
odbcStart
=
fals
e
;
webStart
=
true
;
webStart
=
true
;
browserStart
=
true
;
browserStart
=
true
;
}
}
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论