|
|
|
@ -183,7 +183,7 @@ Copy the following example |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
[Unit] |
|
|
|
[Unit] |
|
|
|
Description=geth |
|
|
|
Description=api |
|
|
|
After=network-online.target |
|
|
|
After=network-online.target |
|
|
|
|
|
|
|
|
|
|
|
[Service] |
|
|
|
[Service] |
|
|
|
@ -199,8 +199,8 @@ WantedBy=multi-user.target |
|
|
|
``` |
|
|
|
``` |
|
|
|
Then run api by the following commands |
|
|
|
Then run api by the following commands |
|
|
|
|
|
|
|
|
|
|
|
$ sudo systemctl enable geth |
|
|
|
$ sudo systemctl enable api |
|
|
|
$ sudo systemctl start geth |
|
|
|
$ sudo systemctl start api |
|
|
|
|
|
|
|
|
|
|
|
If you want to debug the node command |
|
|
|
If you want to debug the node command |
|
|
|
|
|
|
|
|
|
|
|
|