OpenNMS を開始するには、「opennms スクリプト」を使用する必要があります。これはにあります${opennms.home}/bin
スクリプトを使用すると、次のように OpenNMS にデバッグ モードで実行するように指示できます。
sudo ./opennms -t start
次に、OpenNMS は、リモート デバッガーのポートが何であるかを通知します (デフォルトは 8001 です)。
Eclipse では、OpenNMS を「リモート デバッグ」できます。これを行う方法は、たとえば、この指示に従うことができます ( http://javarevisited.blogspot.de/2011/02/how-to-setup-remote-debugging-in.html )
私は通常、冗長モードとデバッグモードで opennms を起動します。sudo ./opennms -vt start
opennms の使用法
Usage: ./opennms [-n] [-t] [-p] [-o] [-c timeout] [-v] [-Q] <command> [<service>]
command options: start|stop|restart|status|check|pause|resume|kill
service options: all|<a service id from the etc/service-configuration.xml>
defaults to all
The following options are available:
-n "No execute" mode. Don't call Java to do anything.
-t Test mode. Enable JPDA on port 8001.
-p Enable TIJMP profiling
-o Enable OProfile profiling
-c Controller HTTP connection timeout in seconds.
-v Verbose mode. When used with the "status" command, gives the
results for all OpenNMS services. When used with "start", enables
some verbose debugging, such as details on garbage collection.
-Q Quick mode. Don't wait for OpenNMS to startup. Useful if you
want to watch the logs while OpenNMS starts up without wanting to
open another terminal window.
「opennnms スクリプト」の例
- opennms を開始するには:
sudo ./opennms start
- 詳細モードで opennms を起動するには:
sudo ./opennms -v start
- verbose および debug モードで opennms を起動するには:
sudo ./opennms -vt start
- opennms を停止するには:
sudo ./opennms stop
あなたがフォルダにいると仮定して${opennms.home}/bin