corda/docs/source/running-a-node.rst

28 lines
1.0 KiB
ReStructuredText
Raw Normal View History

2017-06-05 12:37:23 +00:00
Running a node
==============
2016-08-23 09:25:06 +00:00
Starting your node
2016-08-23 09:25:06 +00:00
------------------
2017-07-21 11:33:31 +00:00
After following the steps in :doc:`deploying-a-node`, you should have deployed your node(s) with any chosen CorDapps
already installed. You run each node by navigating to ``<node_dir>`` in a terminal window and running:
2016-08-23 09:25:06 +00:00
.. code-block:: shell
java -jar corda.jar
2016-08-23 09:25:06 +00:00
.. warning:: If your working directory is not ``<node_dir>`` your cordapps and configuration will not be used.
2016-08-23 09:25:06 +00:00
2017-07-21 11:33:31 +00:00
The configuration file and workspace paths can be overridden on the command line. For example:
``./corda.jar --config-file=test.conf --base-directory=/opt/r3corda/nodes/test``.
Otherwise the workspace folder for the node is the current working path.
Debugging your node
-------------------
2017-07-21 11:33:31 +00:00
To enable remote debugging of the node, run the following from the terminal window:
``java -Dcapsule.jvm.args="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005" -jar corda.jar``
This command line will start the debugger on port 5005 and pause the process awaiting debugger attachment.