简体   繁体   English

更改IP后杀死Derby Network Server

[英]Kill Derby Network Server after ip change

I have some problem shutdown the Derby Engine. 我在关闭Derby Engine时遇到一些问题。

Server Start; 服务器启动;

java -jar derbyrun.jar server start -h 10.90.232.20

I have started Derby Network Server wiht above cmd command. 我已经使用cmd命令启动了Derby Network Server。 And I have stop the Network Server with below command. 我已经使用以下命令停止了网络服务器。

Server Stop; 服务器停止;

java -jar derbyrun.jar server shutdown -h 10.90.232.20

But if i change my ip of current network adapter while server up, i don't kill the current listening network server. 但是,如果我在服务器启动时更改了当前网络适配器的IP,则不会杀死当前的侦听网络服务器。 Because Network Server started on different ip before. 因为网络服务器之前在不同的IP上启动。

Also i have tried; 我也试过了;

java -jar derbyrun.jar server shutdown -h 0.0.0.0
java -jar derbyrun.jar server shutdown -h localhost

But did not help. 但是没有帮助。 I can't reach old started Network Server. 我无法访问旧的启动的网络服务器。 Is there any way kill all derby network server instantly without ip parameter? 没有ip参数,有什么办法可以立即杀死所有derby网络服务器?

Two possibilities: 两种可能性:

  1. Change your IP address back to its previous value, then perform the normal Network Server shutdown command 将您的IP地址更改回其先前的值,然后执行正常的网络服务器关闭命令
  2. Leave your IP address alone, and use an operating system command, such as 'kill' (on Linux/Mac) or Task Manager 'Stop Process' (on Windows) to terminate the java process that is running the Derby Network Server. 不用理会您的IP地址,并使用操作系统命令(例如“ kill”(在Linux / Mac上)或任务管理器“停止进程”(在Windows上)终止运行Derby Network Server的Java进程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM