原文:http://docs.oracle.com/javaee/7/tutorial/doc/usingexamples004.htm
翻译:石卓林 shizhuolin@hotmail.com
2.4 Starting and Stopping the Java DB Server
GlassFish Server includes the Java DB database server.
To start the Java DB server from the command line, open a terminal window or command prompt and execute:
asadmin start-database |
To stop the Java DB server from the command line, open a terminal window or command prompt and execute:
asadmin stop-database |
For information about the Java DB included with GlassFish Server, see http://www.oracle.com/technetwork/java/javadb/overview/index.html.
2.4 启动和停止Java DB服务器
GlassFish服务器内含Java DB数据库服务器.
要从命令行启动Java DB服务器, 打开一个终端窗口或命令提示框并执行:
asadmin start-database |
要从命令行停止Java DB服务器, 打开一个终端窗口或命令提示框并执行:
asadmin stop-database |
关于GlassFish服务器内含Java DB更多信息, 参看 http://www.oracle.com/technetwork/java/javadb/overview/index.html.
2.4.1 To Start the Database Server Using NetBeans IDE
When you start GlassFish Server using NetBeans IDE, the database server starts automatically. If you ever need to start the server manually, however, follow these steps.
- Click the Services tab.
- Expand Databases.
- Right-click Java DB and select Start Server.
Next Steps
To stop the database using NetBeans IDE, right-click Java DB and select Stop Server.
2.4.1 使用NetBeans IDE启动数据库服务器
当你使用NetBeans IDE启动GlassFish服务器时, 数据库服务器也被自动启动. 如果你需要手动启动服务器管理,执行以下这些步骤.
- 点击Services选项卡.
- 展开Databases.
- 右击Java DB并选择Start Server.
下一步骤
要使用NetBeans IDE停止数据库, 右击Java DB并选择Stop Server.
Leave a Reply